SMF Support > SMF 2.0.x Support
How to add menu item in simple machines forum
subrata:
Hi all ,
I installed simple machines forum in my website but I am unable to add menu item . So I want to add menu item "Website" so that I can go back to the website . Very urgent .
Thanks in advance
Subrata
JohnS:
Check the on line manual
http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
Assuming you are using version 2 if not then upgrade before you go any further.
K@:
As this is a support question, I'm gonna move this to the support board.
I'm gonna assume that this is for SMF v2, too. ;)
subrata:
Hi ,
I am using smf @version 2.0.2 and used the following code as given below but not working :
'mlist' => array(
'menu_action' => array(
'title' => 'CSOFT',
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
'sub_menu_action' => array(
'title' => 'text for sub-menu',
'href' => $scripturl . '?action=newaction',
'show' => true,
'is_last'=> true,
),
),
),
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
Storman™:
Instead of messing about with your code why not just add a simple mod that does all that hard work for you.
A mod like this would do the job much easier and let you add buttons to your menu.
Navigation
[0] Message Index
[#] Next page
Go to full version