TinyPortal

Development => Support => Topic started by: Nolt on June 27, 2011, 09:24:20 PM

Title: Navigation tabs
Post by: Nolt on June 27, 2011, 09:24:20 PM
Link to my site: http://www.smf.pl
SMF version: SMF 2.0
TP version: TP 1.0 RC2
Default Forum Language: Polish
Theme name and version: Inferno modyfied by Me
Browser Name and Version: All
Mods installed: TP, Karma Log
Related Error messages:

When we click on tab forum we are redirecting to forum and tab is highlighed, but when I go to message index no matter which board, tab is back again to home page and it not forum. How to fix this ?
Title: Re: Navigation tabs
Post by: IchBin on June 28, 2011, 01:05:15 AM
Subs.php

Code (find) Select
elseif ($context['current_action'] == 'groups' && $context['allow_moderation_center'])
$current_action = 'moderate';


Code (add after) Select
elseif (isset($_GET['topic']) || isset($_GET['board']))
$current_action = 'forum';


I think that should fix it.
Title: Re: Navigation tabs
Post by: Nolt on June 28, 2011, 08:22:25 AM
Fixed :) Thanks!
Title: Re: Navigation tabs
Post by: Lum-chan on July 01, 2011, 05:40:33 PM
Ow! I was thinking it was SMF related so I didn't search for a solution first, but now I am reading this and it fixed. Thanks for sharing.
Will this and other solutions found in 'Support' be included in a next release of TP?
Title: Re: Navigation tabs
Post by: IchBin on July 01, 2011, 06:14:36 PM
Quote from: Lum-chan on July 01, 2011, 05:40:33 PM
Will this and other solutions found in 'Support' be included in a next release of TP?

Most certainly! The only reason a fix wouldn't be put in, is because I forgot to add it. :)
Title: Re: Navigation tabs
Post by: Lum-chan on July 01, 2011, 06:15:37 PM
 O0