SimplePortal

Customization => Themes and Graphics => Custom Theme Tutorials => Topic started by: 130860 on January 02, 2009, 05:07:40 PM

Title: DS-Natural (Outdated)
Post 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:

Code: [Select]
$current_action = 'search';
and replace with this:

   
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 this:

Code: [Select]
, 'login', 'help', 'pm'
replace with this:

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

this is the main part,

find this:

Code: [Select]
// Show the [help] button.

and replace with this:
Code: [Select]
// 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 !!!






Title: Re: DS-Natural theme tutorial
Post by: [SiNaN] on February 03, 2009, 10:51:43 AM
Looks good, thanks mirahalo!
Title: Re: DS-Natural theme tutorial
Post by: Nathaniel on February 04, 2009, 12:46:13 AM
Fixed an error with the last edit and moved to the 'Themes and Graphics' board.

Thanks mirahalo for making this tutorial. :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal