Customization > Custom Theme Tutorials
YeniCeriv1 (Outdated)
(1/1)
Paragaya:
open index.template.php and
Find:
--- Code: ---// Show the [help] button.
--- End code ---
Replace With:
--- Code: --- 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 ---
Find:
--- Code: ---$current_action = 'search';
--- End code ---
Replace 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 ---
Find:
--- Code: ---, 'login', 'help', 'pm'
--- End code ---
Replace with:
--- Code: ---, 'login', 'help', 'pm', 'forum', 'spadmin'
--- End code ---
done, now the button "Forum" will be shown in Yeniceriv1 (1.1.8,)
Nathaniel:
Approved and moved to the relevant board.
There was an issue with the first edit that I have fixed.
Navigation
[0] Message Index
Go to full version