TinyPortal

Development => Support => Topic started by: EasyRider on April 20, 2010, 01:32:10 PM

Title: Lost forum button In main Menu
Post by: EasyRider on April 20, 2010, 01:32:10 PM
Hi there,

After some hack attack i lost the tiny portal and i re-install it, but i cant see the Forum button next to Home button.

Is that easy to add it manual through index.template.php ..?

Thanks  :)
Title: Re: Lost forum button In main Menu
Post by: IchBin on April 20, 2010, 03:50:00 PM
Depends on what version of SMF you are using, and what theme you are using.
Title: Re: Lost forum button In main Menu
Post by: EasyRider on April 20, 2010, 04:31:23 PM
Hi IchBin,

SMF 1.1.8/ Default theme

TinyPortal v1.0 beta 4


Actually i fount this code and i add it,

// Show the [forum] button.
echo ($current_action == 'forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
[<a href="', $scripturl, '?action=forum">' , $txt[forum] ='Forum' , '</a>
</td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




but that  print 1 more character in forum text link. See below:


I look in code but i cant find where is this unnecessary Bracket..
Title: Re: Lost forum button In main Menu
Post by: IchBin on April 20, 2010, 05:07:05 PM
Change this part of your code:
[<a href="', $scripturl, '?action=forum">' , $txt[forum] ='Forum' , '</a>

to this:
<a href="', $scripturl, '?action=forum">Forum</a>
Title: Re: Lost forum button In main Menu
Post by: EasyRider on April 20, 2010, 05:31:56 PM
Works !!  thanks man !!  You are master.   O0 O0 O0


Topic Solved  :)