SimplePortal
Customization => Themes and Graphics => Custom Theme Tutorials => Topic started by: 130860 on January 02, 2009, 05:07:40 PM
-
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:
$current_action = 'search';
and replace with this:
$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 this:
, 'login', 'help', 'pm'
replace with this:
, 'login', 'help', 'pm', 'forum', 'spadmin'
this is the main part,
find this:
// Show the [help] button.
and replace with this:
// 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.
and you are done !!!
-
Looks good, thanks mirahalo!
-
Fixed an error with the last edit and moved to the 'Themes and Graphics' board.
Thanks mirahalo for making this tutorial. :)