TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 136
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 114
  • Total: 114

Lost forum button In main Menu

Started by EasyRider, April 20, 2010, 01:32:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EasyRider

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  :)
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

IchBin

Depends on what version of SMF you are using, and what theme you are using.

EasyRider

#2
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..
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

IchBin

Change this part of your code:
[<a href="', $scripturl, '?action=forum">' , $txt[forum] ='Forum' , '</a>

to this:
<a href="', $scripturl, '?action=forum">Forum</a>

EasyRider

Works !!  thanks man !!  You are master.   O0 O0 O0


Topic Solved  :)
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

This website is proudly hosted on Crocweb Cloud Website Hosting.