SimplePortal

Customization => Themes and Graphics => Custom Theme Tutorials => Topic started by: Manu on February 03, 2009, 11:12:48 AM

Title: OverView MultiColor (1.1.7) (Outdated)
Post by: Manu on February 03, 2009, 11:12:48 AM
Open the index.template.php of OverView MultiColor with your text editor.

Search for
Code: [Select]
// Show the [help] button.
Replace it with
Code: [Select]
// 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.

Search for
Code: [Select]
$current_action = 'search';
Replace it with
Code: [Select]
$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';

Search for
Code: [Select]
, 'login', 'help', 'pm'
Replace it with
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin'
Done, now the button "Forum" will be shown in OverView MultiColor (1.1.7)
Title: Re: [Custom Theme Tutorial] OverView MultiColor (1.1.7)
Post by: Nathaniel on February 04, 2009, 12:48:27 AM
Moved to the 'Custom Theme Tutorials' board. No issues with this tutorial, thanks for taking the time to make it. :)



Title: Re: OverView MultiColor (1.1.7)
Post by: Paragaya on February 23, 2009, 02:39:59 AM
Thanks :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal