SimplePortal

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

Title: Black Rain 1.1.7 (Outdated)
Post by: Manu on February 03, 2009, 11:02:52 AM
Open the index.template.php of Black Rain with your text editor.

Search for
Code: [Select]
// Show the [help] button.
Replace with
Code: [Select]
// Show the [forum] button.
if(!empty($context['portalactive']))
    echo '<li', $current_action == 'forum' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=forum"><span>' . $txt['sp-forum'] . '</span></a></li>';

// Show the [help] button.

Search for
Code: [Select]
$current_action = 'search';
Replace 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 with
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin'
Done and button "Forum" will be shown in Black Rain 1.1.7
Title: Re: Black Rain 1.1.7
Post by: Nathaniel on February 04, 2009, 12:40:36 AM
Moved to the 'Custom Theme Tutorials ' board. Thanks you for making this tutorial. :)

I have corrected one issue, the first edit need <span> tags around the 'Forum' text.
SimplePortal 2.3.8 © 2008-2024, SimplePortal