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"> </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"> </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
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.
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".
There is another option there to go directly to the forum. Make sure that is unchecked
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.
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?
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...
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.
Your version works, I guess main is broken. I put it if anyone want to look in it with me.