SMF Support > SMF 2.0.x Support

Adding a menu button

(1/3) > >>

PacMan:
I've just installed the new v2 beta.  I have flashchat on my older 1.1 board and would like to bring it along into v2.  How do I add th button in V2.  In v1.1 it was easy to do by adding the code to index.template.php but v2 is not the same.   Any help or direction is very appreciated.  Thanks.

H:
I've been meaning to add a guide about this.

Basically open Sources / Subs.php and find:


--- Code: --- 'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
--- End code ---

You can copy one of the buttons that already exists and then modify it accordingly.

PacMan:

Awesome!  Thank you so much.



--- Quote from: H on May 03, 2008, 06:08:11 AM ---I've been meaning to add a guide about this.

Basically open Sources / Subs.php and find:


--- Code: --- 'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
--- End code ---

You can copy one of the buttons that already exists and then modify it accordingly.

--- End quote ---

Atheo:
I can add the button fine, using the Custom Action mod.  How do I change where each button links to? 

I am trying to get the HOME button to link to a custom page; create a FORUM button, link the FORUM button to the forum that is now linked (by default) to HOME.

Please help.  Thanks!

Kryptech:
I may be wrong about this but I think if u put the link in the href part it will work.



--- Code: ---'home' => array(
'title' => $txt['home'],
'href' => "www.yourHomePage.com",
'show' => true,
'sub_buttons' => array(
),
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version