Uutiset:

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

Main Menu
Advertisement:

ayuda no consigo que se vea el nuevo boton

Aloittaja buzzwoody, syyskuu 25, 2012, 03:17:17 IP

« edellinen - seuraava »

buzzwoody

no consigo que se vea el boton porque puede ser



$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'tracker' => array(
            'title' => $txt['Tracker'],
            'href' => 'http://www.33333333333333333.php',
            'show' => true,
            'sub_buttons' => array(
            ),
           
         ),

'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
'admin' => array(
'title' => $txt['admin'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
'sub_buttons' => array(
'featuresettings' => array(
'title' => $txt['modSettings_title'],
'href' => $scripturl . '?action=admin;area=featuresettings',
'show' => allowedTo('admin_forum'),
),
'packages' => array(
'title' => $txt['package'],
'href' => $scripturl . '?action=admin;area=packages',
'show' => allowedTo('admin_forum'),
),
'errorlog' => array(
'title' => $txt['errlog'],
'href' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'show' => allowedTo('admin_forum') && !empty($modSettings['enableErrorLogging']),
),
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
'is_last' => true,



en index.spanish_es.php

$txt['debug_query_which_took_at'] = 'se demoró %1$s segundos en realizar %2$s peticiones.';
$txt['debug_show_queries'] = '[Mostrar Consultas]';
$txt['debug_hide_queries'] = '[Ocultar Consultas]';
$txt['tracker'] = 'Tracker';

All Colours Sam

$txt['Tracker']

y

$txt['tracker']

son dos llaves de arrays distintas  o usas $txt['Tracker']  para las dos o $txt['tracker'].
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

buzzwoody

la verdad es que empiezo ahora con todo esto y no pensaba que fuera tan dificilcon los buenos tutos que hay

uso  $txt['tracker'] = 'Tracker';

lo que quiero es que haya un boton que se llame Tracker y que me redireccione a otro sitio, pare simple pero llevo toda la dichosa tarde intentandolo


All Colours Sam

Si usas $txt['tracker'] entonces en tu botón debes de poner $txt['tracker'] también:

        'tracker' => array(
            'title' => $txt['tracker'],
            'href' => 'http://www.33333333333333333.php',
            'show' => true,
            'sub_buttons' => array(
            ),       
         ),

Nota cmo en tu ejemplo anterios estabas usando  'title' => $txt['Tracker'],  con T mayúscula.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

buzzwoody

aaaaaaaaaaaa!!!!!!

ok, muchas gracias

solucionado

Advertisement: