TinyPortal

Development => International => German => Topic started by: nehcregit on April 05, 2006, 06:00:28 PM

Title: Übersicht -> Forum schaltet nicht um (Default-Template)
Post by: nehcregit on April 05, 2006, 06:00:28 PM
Nachdem die Installation recht mühelos klappte, fÃÆ'Ã,¤llt mir auf, dass beim Umschalten zwischen "ÃÆ'Ã...“bersicht" und "Forum" der Reiter nicht wechselt. Ein Schönheitsfehler, jetzt weiÃÆ'Ã...¸ ich auch, warum die index.template.php angemeckert wurde.

Seltsamerweise schaut sie aber gut aus, wenn ich mir sie anschaue. Kann mal jemand drüberschauen?
Title: Re: Übersicht -> Forum schaltet nicht um (Default-Template)
Post by: feline on April 05, 2006, 06:34:51 PM
Da ist wohl ein kleiner Fehler drin ...

ersetze:

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


durch

if($settings['TPortal_front_type']!='boardindex')
// 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">FORUM</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Damit sollte es klappen.

Fel
Title: Re: Übersicht -> Forum schaltet nicht um (Default-Template)
Post by: nehcregit on April 05, 2006, 06:53:14 PM
Nö... Er schaltet erst um, wenn ich in ein Board reingehe. Wenn ich im Index des Forums bin, bleibt der Reiter "ÃÆ'Ã...“bersicht" aktiv  ???
Title: Re: Übersicht -> Forum schaltet nicht um (Default-Template)
Post by: feline on April 05, 2006, 09:53:32 PM
Hmmm .. ich glaub da fehlt noch was ...


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm','arcade')))


da müsste wohl noch 'forum' zugefügt werden.

Fel
Title: Re: Übersicht -> Forum schaltet nicht um (Default-Template)
Post by: nehcregit on April 06, 2006, 07:14:50 AM
Das war es. Nun funzt es prima, danke sehr!  ;D