[risolto]Modificare il menù sovrastante

Started by IImanuII, August 29, 2012, 12:09:09 PM

Previous topic - Next topic

IImanuII

salve a tutti, avrei bisogno di una mano. Nello specifico vorrei eliminare due voci di menù cioè "accedi" ed "esci" mi basta rimuoverle dal solo template che è quello di defoult. Mi serve rimuoverle perchè l'accesso si effettua tramite un altro pannello. stessa cosa dicasi per il logout.

Il sito è questo

www.doceda.it

Specter0

Versione SMF??

SMF2:

I pulsanti del menu li trovi nel file:

Sources/Subs.php

Partendo da:
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(


e dovresti cercare:
'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),




SMF 1.1:

File:
Themes/default/index.template.php


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';






IImanuII

Stavo per scrivere risolto, avevo trovato la wiki in inglese ^^

Advertisement: