Customization > Custom Theme Tutorials

Enterprise

(1/1)

KTFO:


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


--- Code: ---// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</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 . '">&nbsp;</td>' : '';

--- End code ---

Below that you have to add...



--- Code: ---// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</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 . '">&nbsp;</td>' : '';

--- End code ---


Here are your before and after screen shots of the modification so you dont get confused if you are a noob  :D



And




Once you have made the add in modification, save your file and upload it and replace it.

:)

Nathaniel:
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 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.

Navigation

[0] Message Index

Go to full version