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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 639
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Forum Button Issue

Started by Mossa TheGreat, June 24, 2007, 09:45:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mossa TheGreat

Hello everyone!

You know that little button between Home and Help in the menu? Forum button? It does not work anymore. It simply stopped appearing...

The reason is probably the if statement above the piece of code who is responsible for displaying the button.

Quote
if($settings['TPortal_front_type']!='boardindex' && !empty($context['current_forum']['TP_show_forum_button']))
   // 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['tp-forum'].'</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_last">&nbsp;</td>' : '';

If anyone can spot the reason why this if statement is not working properly, please post as soon as you possibly can. If I remove it, it works fine, the button shows again, but I think it have purpose, and I want to know where I went wrong.

If you need info, just ask.

Thanks in advance,

Mossa

Nokonium

Take a look at your front page settings, if you have 'Go directly to forum index' selected, HOME and FORUM are the same thing so TP is coded to not display the FORUM button. For other options on the front page the FORUM will show.

Mossa TheGreat

Quote from: nokonium on June 24, 2007, 09:56:44 PM
Take a look at your front page settings, if you have 'Go directly to forum index' selected, HOME and FORUM are the same thing so TP is coded to not display the FORUM button. For other options on the front page the FORUM will show.

This is what I have it show on the front page: "Forum-posts and articles - sorted on date".


tick

There is another option there to go directly to the forum.  Make sure that is unchecked

Mossa TheGreat

Quote from: Tick on June 24, 2007, 09:59:35 PM
There is another option there to go directly to the forum.  Make sure that is unchecked

I can't see that option, could you be more specific? And by the way; when I click home, I go back to a page with a big article on it and if I am logged in as a regular member, I have those panels and boxes too.

Nokonium

I have just rechecked the front page options for TP 0.98 and the only one that makes the FORUM tab/button disappear is 'Go directly to forum index' all the others will have the FORUM button on show.

What SMF version are you using?
What TP version are you using?
What theme are you using?
If it isn't the default theme, does it also happen in the default theme?


Mossa TheGreat

#6
I have just rechecked the front page options for TP 0.98 and the only one that makes the FORUM tab/button disappear is 'Go directly to forum index' all the others will have the FORUM button on show.

What SMF version are you using? Latest: 1.1.2.
What TP version are you using?   Latest: 0.9.8.3
What theme are you using? Default. The Core one. Making it ready to make other themes from it.

If it isn't the default theme, does it also happen in the default theme?
I think it used to work properly. Yes it did...


Nokonium

Try overwriting your current default/index.template with the attached (if you only have SMF and TP installed, that is no other mods).

This is the index.template file from my test site, it works as intended on my test site.

Mossa TheGreat

Your version works, I guess main is broken. I put it if anyone want to look in it with me.

This website is proudly hosted on Crocweb Cloud Website Hosting.