Customization > Custom Theme Tutorials
DS-Natural (Outdated)
(1/1)
130860:
Hi I just made this little tutorial for those who has DS-Natural designed by DzinerStudio, like me 8) ,
firt open your index.template.php with you favorite text editor
this is just like default theme so...
find this:
--- Code: ---$current_action = 'search';
--- End code ---
and replace with this:
--- 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 this:
--- Code: ---, 'login', 'help', 'pm'
--- End code ---
replace with this:
--- Code: ---, 'login', 'help', 'pm', 'forum', 'spadmin'
--- End code ---
this is the main part,
find this:
--- Code: --- // Show the [help] button.
--- End code ---
and replace with this:
--- Code: --- // Show the [forum] 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.
--- End code ---
and you are done !!!
[SiNaN]:
Looks good, thanks mirahalo!
Nathaniel:
Fixed an error with the last edit and moved to the 'Themes and Graphics' board.
Thanks mirahalo for making this tutorial. :)
Navigation
[0] Message Index
Go to full version