SimplePortal

Customization => Themes and Graphics => Custom Theme Tutorials => Topic started by: Paragaya on March 12, 2009, 12:25:17 PM

Title: YeniCeriv1 (Outdated)
Post by: Paragaya on March 12, 2009, 12:25:17 PM
open index.template.php and

Find:
Code: [Select]
// Show the [help] button.
Replace With:
Code: [Select]
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.

Find:
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';

Find:
Code: [Select]
, 'login', 'help', 'pm'
Replace with:
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin'




done, now the button "Forum" will be shown in Yeniceriv1 (1.1.8,)
Title: Re: YeniCeriv1
Post by: Nathaniel on March 31, 2009, 06:55:32 AM
Approved and moved to the relevant board.

There was an issue with the first edit that I have fixed.
SimplePortal 2.3.8 © 2008-2024, SimplePortal