SimplePortal
Customization => Themes and Graphics => Custom Theme Tutorials => Topic started by: Paragaya on March 12, 2009, 12:25:17 PM
-
open index.template.php and
Find: // Show the [help] button.
Replace With:
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:
$current_action = 'search';
Replace with:
$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:
, 'login', 'help', 'pm'
Replace with:
, 'login', 'help', 'pm', 'forum', 'spadmin'
done, now the button "Forum" will be shown in Yeniceriv1 (1.1.8,)
-
Approved and moved to the relevant board.
There was an issue with the first edit that I have fixed.