News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Problemi con smf media gallery

Started by gregxxiii, February 28, 2009, 12:46:27 PM

Previous topic - Next topic

Darknico

Prego, son qua per questo ;)

ho un progetto per le traduzioni delle mod, se ti interessa mandami un PM ;)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


fotografo74

Quote from: gregxxiii on March 02, 2009, 12:13:03 PM
..........
vedo 2 pulsanti galleria nel menu, ma credo sia dovuto al continuo installare e deinstallare,.. trovero' l'inghippo

...........

Se hai due pulsanti prova a vedere in index.template.php questo codice


// [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mgallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mgallery">' , $txt['mgallery_gallery'] , '</a>
</td>' , $current_action == 'mgallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



e questo

if ($context['current_action']=='mgallery')
$current_action = 'mgallery';


e vedi se è ripetuto due volte, in caso lascia una sola istanza.
Potrebbe essere questo il problema.
Anto

gregxxiii

si grazie 1000 fotografo,.. avevo risolto e scritto  :)
ty ty

Advertisement: