SimplePortal
Customization => Themes and Graphics => Custom Theme Tutorials => Topic started by: KTFO on June 07, 2009, 10:58:43 AM
-
(http://i39.tinypic.com/11qio0h.png)
Keep in mind, you are not replacing but rather adding extra coding to make it work.
The file you are needing to modify is called the
index.template.PHP
Of
Themes/Enterprise_smf11final
Find
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Below that you have to add...
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">Forum</a>
</td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Here are your before and after screen shots of the modification so you dont get confused if you are a noob :D
(http://i39.tinypic.com/2hnysus.png)
And
(http://i39.tinypic.com/2yl1gk0.png)
Once you have made the add in modification, save your file and upload it and replace it.
:)
-
Looks good KTFO. Moved to the Custom Theme Tutorials board. :)
Don't forget that you will also need to apply the edits under the "Adding the 'Forum' action" in the General Custom Theme Tutorial (http://simpleportal.net/index.php?topic=148.0) topic. Otherwise the forum button will never be shown as active.
Also, using ', $txt['sp-forum'],' instead of Forum will give better support for other languages.