Warning: The author of this contribution does not provide support for it anymore.

Index Tabbed

Login tab problem (on viewforum and viewtopic) - Index Tabbed

Login tab problem (on viewforum and viewtopic)

by leschek » Sat Jan 19, 2013 9:17 pm

One member of Czech support team discovered a problems with the index tabbed in classic mod:
When user is on viewtopic.php or viewforum.php and clicks on other tab than the "Login" tab, is not possible to go back on the "Login" tab again (at least without reloading a page). Here is fix:

OPEN

styles\prosilver\template\viewforum_tabbed_classic.html

FIND

Code: Select all

<li class="<!-- IF not S_USER_LOGGED_IN -->activetab<!-- ELSE --><!-- ENDIF -->" id="login-panel-tab"><a name="login" href="#login-panel-tab" onclick="subpanels_index('login-panel'); return false;"><span>{L_LOGIN}</span></a></li>

REPLACE WITH

Code: Select all

<li class="<!-- IF not S_USER_LOGGED_IN -->activetab<!-- ELSE --><!-- ENDIF -->" id="login-panel-tab"><a name="login" href="#login-panel-tab" onclick="subpanels_forum('login-panel'); return false;"><span>{L_LOGIN}</span></a></li>


OPEN

styles\prosilver\template\viewtopic_tabbed_classic.html

FIND

Code: Select all

<li class="<!-- IF not S_USER_LOGGED_IN -->activetab<!-- ELSE --><!-- ENDIF -->" id="login-panel-tab"><a name="login" href="#login-panel-tab" onclick="subpanels_index('login-panel'); return false;"><span>{L_LOGIN}</span></a></li>


REPLACE WITH

Code: Select all

<li class="<!-- IF not S_USER_LOGGED_IN -->activetab<!-- ELSE --><!-- ENDIF -->" id="login-panel-tab"><a name="login" href="#login-panel-tab" onclick="subpanels_topic('login-panel'); return false;"><span>{L_LOGIN}</span></a></li>


Another small problem is in install.xml file where should be REPLACE instead of ADD AFTER. Here is the code:

Code: Select all

    Open: language/en/viewtopic.php

    Find
    Tip: This may be a partial find and not the whole line.

    Code:Select all
       'NO_ATTACHMENT_SELECTED'=> 'You haven’t selected an attachment to download or view.',
       'NO_NEWER_TOPICS'      => 'There are no newer topics in this forum.',
       'NO_OLDER_TOPICS'      => 'There are no older topics in this forum.',
       'NO_UNREAD_POSTS'      => 'There are no new unread posts for this topic.',
       'NO_VOTE_OPTION'      => 'You must specify an option when voting.',
       'NO_VOTES'            => 'No votes',

    Add after
    Tip: Add these lines on a new blank line after the preceding line(s) to find.

    Code:Select all
    // MOD : Index Tabbed - Start
       'NEW_POSTS_HOT'         => 'New posts [ Popular ]',   // Not used anymore
       'NEW_POSTS_LOCKED'      => 'New posts [ Locked ]',   // Not used anymore
       'NO_ATTACHMENT_SELECTED'=> 'You haven’t selected an attachment to download or view.',
       'NO_NEW_POSTS_HOT'      => 'No new posts [ Popular ]',   // Not used anymore
       'NO_NEW_POSTS_LOCKED'   => 'No new posts [ Locked ]',   // Not used anymore
       'NO_NEWER_TOPICS'      => 'There are no newer topics in this forum.',
       'NO_OLDER_TOPICS'      => 'There are no older topics in this forum.',
       'NO_UNREAD_POSTS'      => 'There are no new unread posts for this topic.',
       'NO_VOTE_OPTION'      => 'You must specify an option when voting.',
       'NO_VOTES'            => 'No votes',
    // MOD : Index Tabbed - End
leschek
Registered User
Posts: 791
Joined: Tue Jul 18, 2006 12:49 pm
Contact: