SimplePortal

Support => English Support => Topic started by: vijayrawatsan on January 16, 2010, 10:52:31 AM

Title: not Able to get forum Button..plz help
Post by: vijayrawatsan on January 16, 2010, 10:52:31 AM
I am Using !kani theme for SMF 1.1.11... I installed Sportal today only.. bt not able to get the forum button...

I am attaching the index.template.php file......

please help mods...

:)

Title: Re: not Able to get forum Button..plz help
Post by: Swagga on January 16, 2010, 10:58:30 AM
Its a beat hard in explaining
Title: Re: not Able to get forum Button..plz help
Post by: vijayrawatsan on January 16, 2010, 01:17:35 PM
Hello. Thanks For the fast reply....

Swagga I have uploaded my template.php filee too. cant u just check it out and find the solution for me.
Title: Re: not Able to get forum Button..plz help
Post by: Swagga on January 16, 2010, 03:59:15 PM
Are u using the default smf theme for 1.1.11??
Title: Re: not Able to get forum Button..plz help
Post by: Serafen on January 19, 2010, 11:05:45 AM
im pretty n00bish in all this, but if it is the forum button in the top menu you are after, i might have a fix!
i made mine with 2 steps : since the index.template calls for txt strings, i went to the corresponding language file (i think it was index.english" in default theme\language and added some txt strings. like this :

Code: [Select]
$txt[17] = 'Modify';
$txt[18] = 'Forum';
$txt[19] = 'Members';
$txt[20] = 'Board name';
$txt[21] = 'Posts';
$txt[22] = 'Last post';
$txt[998]='Media';

then i could easily go into template.index  and do this (should be around line 425)
   
Code: [Select]
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '">' , $txt[103] , '</a></li>';

// Show the [help] button.
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum">' , $txt[18] , '</a></li>';

// How about the [search] button?

echo '<li><a' , $current_action=='media' ? ' class="current"' : '' , ' href="', $scripturl, '?action=media">' , $txt[998] , '</a></li>';


this dont actually add a new button tho, it just replaces the button text and their actions after your fitting
SimplePortal 2.3.8 © 2008-2024, SimplePortal