SMF Support > SMF 2.0.x Support
Add a new Button
metallica48423:
is the variable $txt['chat'] set anywhere, such as a language file?
If you aren't using multiple language, you could just replace $txt['chat'] with 'chat',
tpet96:
THANK YOU for that. It works like a charm. Again...thanks for bearing with me. I'm a newb when it comes to some of this stuff...and can only learn by asking.
Atheo:
Hi, great tut.
I am using the Custom Action Mod. Is it possible to link to a custom action? Would this be done with href=blah/blah.php?action=blah
I could just try this...but I am really new to this and would like to be sure before I do.
Could you offer example code?
I am trying to change the home button to link to a custom page (action, i guess) and create a forum button that links to the forum page.
Thanks so much.
metallica48423:
--- Quote ---I am using the Custom Action Mod. Is it possible to link to a custom action? Would this be done with href=blah/blah.php?action=blah
--- End quote ---
'href' => 'http://example.com/path/index.php?action=blah',
Atheo:
You are the man! Thanks
One thing, now when I am in the board itself, the HOME button (link changed to custom action) remains highlighted. How do I correct this?
--- Code: ---$buttons = array(
'home' => array(
'title' =>'home',
'href' => 'http://fit-hub.com/index.php?action=index',
'show' => true,
'sub_buttons' => array(
),
),
'forum' => array(
'title' => 'forum',
'href' => 'http://fit-hub.com/index.php',
'show' => true,
'sub_buttons' => array(
),
),
//Switched home and forum--^
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version