View Full Version : Suggest ROOT categories - but not links
scanreg
08-21-2006, 01:15 PM
I'd like to allow users to suggest top-level categories (ROOT) but not top-level links.
For links, users would need to click into the categories where they want the links to go.
The idea is to be able to expand my top-level categories
Might there be a way to allow just Suggest Category at Root ?
Many thanks :)
Dave Baker
08-22-2006, 06:47 AM
Hello scanreg,
I offer following decision:
***Admin Panel ->CONFIGS->General Configuration->Categories dropdown instead of tree ->enabled***
***Open Layout.php in yours template and find code:***
if ($aCategory || $gDirConfig['categories_list'])
{
$menu['suggest-link']['caption'] = $gDirLang['suggest_link'];
$menu['suggest-link']['url'] = "{$url}suggest-link.php?id={$aCategory}";
$menu['suggest-category']['caption'] = $gDirLang['suggest_category'];
$menu['suggest-category']['url'] = "{$url}suggest-category.php?id={$aCategory}";
}
***Replace this code with following***
if ($aCategory || $gDirConfig['categories_list'])
{
if ($aCategory > 0)
{
$menu['suggest-link']['caption'] = $gDirLang['suggest_link'];
$menu['suggest-link']['url'] = "{$url}suggest-link.php?id={$aCategory}";
}
$menu['suggest-category']['caption'] = $gDirLang['suggest_category'];
$menu['suggest-category']['url'] = "{$url}suggest-category.php?id={$aCategory}";
}
***Save file***
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.