News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How does one add a new button to the navbar on SMF 2.0.4?

Started by trekkie2444, June 10, 2011, 12:36:31 AM

Previous topic - Next topic

trekkie2444

I once was able to do this, but can't figure out how. I think I need to edit subs.php? If I want to add a link to a certain board on my forum, how do I replace the php text with an HTML link?

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

trekkie2444


Ozzie


2000+ games available to download

Sir Osis of Liver


Just copy the code for another button and change the name and url.

Like this:



/// add menu button

'help' => array(
'title' => 'Google',
'href' => 'http://www.google.com' . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: