Customization > Custom Theme Tutorials

OverView MultiColor (1.1.7) (Outdated)

(1/1)

Manu:
Open the index.template.php of OverView MultiColor with your text editor.

Search for

--- Code: ---// Show the [help] button.
--- End code ---

Replace it with

--- Code: ---// Show the [home] button.  
if(!empty($context['portalactive']))
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum"><span>' , $txt['sp-forum'] , '</span></a></li>';

// Show the [help] button.
--- End code ---

Search for

--- Code: ---$current_action = 'search';
--- End code ---

Replace it with

--- Code: ---$current_action = 'search';
   if ((isset($_GET['board']) || isset($_GET['topic']) || in_array($context['current_action'], array('unread', 'unreadreplies'))) && !empty($context['portalactive']))
      $current_action = 'forum';
   if ($context['current_action']=='spadmin')
      $current_action = 'admin';
--- End code ---

Search for

--- Code: ---, 'login', 'help', 'pm'
--- End code ---

Replace it with

--- Code: ---, 'login', 'help', 'pm', 'forum', 'spadmin'
--- End code ---

Done, now the button "Forum" will be shown in OverView MultiColor (1.1.7)

Nathaniel:
Moved to the 'Custom Theme Tutorials' board. No issues with this tutorial, thanks for taking the time to make it. :)



Paragaya:
Thanks :)

Navigation

[0] Message Index

Go to full version