Agregar botones al menu en 2.0RC3, RC4

Started by mirahalo, February 16, 2009, 11:02:18 AM

Previous topic - Next topic

mirahalo

hya un tutorial osbre como hacer página en este mismo foro, o puedes usar algún mod que crea páginas  o un portal.

http://www.simplemachines.org/community/index.php?topic=371329.msg2542207#msg2542207

lesanju

gracias  130860 .. ayer estuve buscando aqui pero no lo encontre  :(   prefiero agregar manualmente, voy a ver como me va.. saludos  :D

renoik99

Donde esta el archivo index.tuidioma.php?? Mi Idioma es el español osea spain y e buscado index.spain.php en la carpeta sources y nada no me sale nada de eso nisiquiera index.otroidioma.php, porfavor contestame quiero poner un chat en el menu   :'(

mirahalo

/Themes/default/languages/index.spanish_es.php

renoik99

Gracias! Va perfectamente bien ahora voy a quitar el de ayuda  8)

ivanlariz

Que raro, en mi subs.php no encuentro

'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
         ),


:-\

lucas-ruroken

busca

'help' => array(

y arriba agrega el boton ;)
Adk Portal 3.1 is coming....

Design your universe!

ivanlariz

#147
Que raro, no existe la palabra help ni home en todo el archivo.

lucas-ruroken

Recuerda que esto es para 2.0 RC y no para 1.1.x

Adjunta tu Sources/Subs.php asi te digo
Adk Portal 3.1 is coming....

Design your universe!

ivanlariz

ahhh, ok yo tengo 1.1.12 Para mi versión como se hace?

Un saludo y gracias.

lucas-ruroken

desde el index.template.php de tu theme, pero en todos los themes es diferentes, debes buscar despues de

function template_menu y ver como estna los demas botones, copiar y pegar, y luego modificar la url y el texto
Adk Portal 3.1 is coming....

Design your universe!

ivanlariz


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

pablo24

Yo sólo cambio el index.template y me basta, no se si será por mi tema, pero no he tenido ningún problema.

¿No hay problemas en que haga eso?

Suki

Quote from: pablo24 on January 05, 2011, 02:36:35 PM
Yo sólo cambio el index.template y me basta, no se si será por mi tema, pero no he tenido ningún problema.

¿No hay problemas en que haga eso?


solo cambiaste el index.template porque usas 1.1.x,  si te fijas bien, el título de este tema es: Agregar botones al menu en 2.0RC3, RC4



en 2.0 puedes agregar botones desde tu index.template pero e smucho mas fácil hacerlo en tu arcivo Subs.php
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

pablo24

De hecho, uso smf 2.0 rc3
Por eso encuentro extraño, que ha pesar de tener esa versión, me haya servido modificar sólo el index.template

Suki

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Tamagochi

Hola

Lo hice y se ve perfecto... En firefox, en internet explorer me descuadro todo el menu superior. Mirar pero con internet explorer:

http://www.summarios.com

Alguien sabe como arreglarlo??

Salu2
Tamagochi
Version Foro SMF 2.0 RC3
Ganar Dinero en Internet
Tienda de Summarios


mirahalo

que boton agregaste y como lo agregaste?

Tamagochi

#159
Hola

Agregue Blog y Tienda y tal cual pone en el primer post. Mira este es mi subs.php si necesitais subo tambien el de idioma.

$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $home_url,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),
'forum' => array(
'title' => !empty($txt['foro']) ? $txt['foro'] : 'Forum',
'href' => $adkportal['adk_enable'] == 2 ? $scripturl : $scripturl . '?action=forum',
'show' => !empty($adkportal['adk_enable']),
'sub_buttons' => array(
),
),
'blog' => array(
              'title' => $txt['blog'],
              'href' => 'http://www.summarios.com/blog',
              'show' => true,
              'sub_buttons' => array(
        ),
    ),
'tienda' => array(
              'title' => $txt['tienda'],
              'href' => 'http://tienda.summarios.com',
              'show' => true,
              'sub_buttons' => array(
        ),
    ),
'downloads' => array(
'title' => $txt['downloads'],
'href' => $scripturl . '?action=downloads',
'show' => $adkportal['download_enable'] && allowedTo('adk_downloads_view'),
'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(
),
),


Salu2
Tamagochi
Version Foro SMF 2.0 RC3
Ganar Dinero en Internet
Tienda de Summarios


Advertisement: