SimplePortal

Customization => Themes and Graphics => Topic started by: BluRanium on June 28, 2009, 11:45:24 AM

Title: adding Forum Button
Post by: BluRanium on June 28, 2009, 11:45:24 AM
hiya, i have tried to edit my custom theme, but i really cant make it say "forum" instead of help. its reeally hard!

could someone with the time and knowledge please edit my index.template.php file for me please?

my theme is called Blink
Title: Re: adding Forum Button
Post by: 130860 on June 28, 2009, 12:12:15 PM
ok, try this one:


this is what I added:

   
Code: [Select]
// Show the [home] button.
echo '<li><a href="', ($modSettings['sp_portal_mode'] == 3 ? $modSettings['sp_standalone_url'] : $scripturl), '"><span>' , $txt[103] , '</span></a></li>';

// Show the [forum] button.
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo '<li><a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '"><span>', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</span></a></li>';
      
also I added  $modSettings in globals:

Code: [Select]
global $context, $settings, $options, $scripturl, $txt, $modSettings;
greetings!
Title: Re: adding Forum Button
Post by: BluRanium on June 28, 2009, 01:30:39 PM
i really hope this works!
Title: Re: adding Forum Button
Post by: BluRanium on June 28, 2009, 01:34:26 PM
thanks sooo much! i dont know how you knew what to do ^_^.

now all i need to do is get hackpark shoutbox code into it, and the block to work.
SimplePortal 2.3.8 © 2008-2024, SimplePortal