• Hi

    I aply a mod in my smf, exactly the one to show a link to my blog:

    abrimos Subs.php y buscamos esto:

    Code: [Select]

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

    despues agregamos la estructura básica del botón que queremos, sería algo como esto:

    Code: [Select]
    ‘boton’ => array(
    ‘title’ => $txt[‘boton’],
    ‘href’ => ‘http://www.tuenlace.com’,
    ‘show’ => true,
    ‘sub_buttons’ => array(
    ),
    ),

    cambia el “boton” por lo que tu quieras, por ejem, chat, tracker, galeria, enlaces, lo que sea, de preferencia que no sean caracteres extraños o muy largos, cambia tambien el ‘title’ => $txt[‘boton’], por lo que quieras que aparezca, esto es, el titulo o nombre del boton, regularmente es la misma palabra para los dos.

    ‘href’ => ‘http://www.tuenlace.com’, el enlace que quieras que tenga el boton.

    ‘show’ => true, es el valor por defecto, lo podrán ver todos los usuarios, invitados y registrados.

    ahora abre tu archivo index.tuidioma.php y busca:
    Code: [Select]
    $txt[‘home’] = ‘Inicio’;

    agrega despues:

    Code: [Select]
    $txt[‘boton’] = ‘boton’;

    aqui cambia el boton por lo que pusiste en Subs.php, debe de ser igual o no aparecerá y por ultimo cambia el ‘boton’ por lo que quieras que aparezca, y listo !!!! ya tienes tu boton que servirá en todos los themes que tengas.
    puedes agregar todos los botones que quieras siempre y cuando no se repitan los nombres que les des.

    After that I have this error in several blocks in the wp admin:

    Notice: Undefined index: blog in /home/evitalac/public_html/foro/Sources/Subs.php on line 3882

    the line refered is:

    ‘title’ => $txt[‘blog’],

    the second line of the mod.

    I think is not your problem, but may you help me please?

    Best Regards

    http://wordpress.org/extend/plugins/wpsmf/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WPSMF – WordPress to SMF] Problem in wp admin when I aply a mod in smf’ is closed to new replies.