Posted on: 06/04/04 07:36pm
By: dman101
Hey i'm new here so if my question is real easy then u can beat me up.
I have a new geeklog site with a bunch of articles and news stories that will be added. I want to have a broad category such as News. Then I would like to have subcategories like: sports, culture etc.
Is this incorparated into GeekLog already or does this have to be done with hacking the code. Does anyone already have the code to do this.
Thanks all
News Categories?
Posted on: 06/04/04 08:07pm
By: dman101
Let me clarify:
-----News----
+ Sports (0/0)
+ Culture (1/0)
+ World (7/3)
-----Articles-----
+ etc
+ etc
+ etc
News Categories?
Posted on: 06/05/04 01:14am
By: Robin
Have you tried the Menu Plugin? It has the functionality that you're looking for.
News Categories?
Posted on: 06/05/04 11:58am
By: dman101
I dont think it does, because when you choose the stories as the option for a section of the menu it puts in all the topics, which should not happen. I just want the the topics for that section.
News Categories?
Posted on: 06/18/04 10:10am
By: beewee
and the blockmenu plugin...?
News Categories?
Posted on: 06/18/04 05:00pm
By: usarid
I ran into this requirement myself a few days ago, and needed to hack the menu plugin gently to prevent certain topics from showing up in the topics list. It was better to explicitly specify which topics should be excluded (because I would include explicit hyperlinks to them elsewhere in the menu) than which ones should be included, as that would change often over time.
Here's the additional line in menu/config.php:
// Array of topic id's to exclude from the topics list menu
$CONFIG_MENU['excludedtopics'] = array('Topic1','Topic2');
and here's the hack to the menu/functions.inc file: in the MNU_showTopics() function, the first for loop should get the following extra line:
if (in_array($A['tid'],$CONFIG_MENU['excludedtopics'])) continue;
Here's what the beginning of the for loop looks like with this line added:
for( $i = 0; $i < $nrows; $i++ ) {
$A = DB_fetchArray( $result );
if (in_array($A['tid'],$CONFIG_MENU['excludedtopics'])) continue;
if( SEC_hasAccess( $A['owner_id'], $A['group_id'], $A['perm_owner'], $A['perm_group'], $A['perm_members'], $A['perm_anon']) > 0 )
{
$labela = array();
$labela = explode('_',$A['tid']);
$lsz = sizeof($labela);