Página 1 de 1
Links_MOD
Publicado: 29 Jun 2004, 13:13
por madelmanhouse
Tengo este Mod instalado, que viene con el Plus 1.0
Links_MOD v1.1.0 coded by OOHOO
Hacia mucho que no ponia mod y en dos dias ya llevo tres, esto es un vicio, perdon, al grano. El caso es que el mod te pone los links en el index del portal, yo lo quiero tambien en el portal.php, osea en la pagina principal.
He abierto el portal_body.tpl y he puesto al final de la pagina lo que creo que es la ventana entera del codigo:
Código: Seleccionar todo
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" width="100%" height="22"><span class="cattitle"><a href="{U_LINKS}" class="cattitle">{L_LINKS}</a></span></td>
<td class="cat" nowrap="nowrap" align="center"><span class="cattitle">PORTAL MADELMANHOUSE</span></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="no" width="100%" height="{SITE_LOGO_HEIGHT}"></iframe></td>
<td class="row2" nowrap="nowrap"><img src="{U_SITE_LOGO}" alt="{SITENAME}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" /></td>
</tr>
<br />
</table>
Pero sale todo bien menos las imagenes, lo podeis ver aqui:
http://www.madelmanhouse.com/foroplus/portal.php
Re: Links_MOD
Publicado: 30 Jun 2004, 11:16
por Francisco
í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¿El MOD es Links_MOD o Links Hack? es que con la informacií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³n que pones es difí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Âcil saberlo.
Si es Link hack puedes mirar esto:
Links Hack Integration for ezPortal
Publicado: 30 Jun 2004, 11:27
por madelmanhouse
Francisco, como ese mod venia preinstalado no tengo mas informacion de la que te indico arriba, cuando administro los links es lo que sale abajo de la pagina. El link Hack que me pones no es, tienes que ser el link_mod, pero no lo encuentro.
Re: Links_MOD
Publicado: 30 Jun 2004, 11:37
por Francisco
Es que al no tener el cí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³digo del MOD pues es difí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Âcil, haber si alguien sabe cual es o pon un poco mí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡s de cí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³digo y si hay que cambiar algo en index.php.

Re: Links_MOD
Publicado: 30 Jun 2004, 12:43
por Francisco
Mira a ver al hacer estos cambios si te funciona:
Código: Seleccionar todo
portal.php
#
#-----[ ACTION: FIND ]------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ ACTION: AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . "includes/links_constants.$phpEx"); // Links_MOD
#
#-----[ ACTION: FIND ]------------------------------------------
#
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
#
#-----[ ACTION: AFTER, ADD ]------------------------------------------
#
'L_LINKS' => $lang['Site_links'], // Links_MOD
'U_LINKS' => append_sid("links.$phpEx"), // Links_MOD
'U_LINKS_JS' => "links.js.$phpEx", // Links_MOD
'U_SITE_LOGO' => SITE_LOGO_SRC, // Links_MOD
'SITE_LOGO_WIDTH' => SITE_LOGO_WIDTH, // Links_MOD
'SITE_LOGO_HEIGHT' => SITE_LOGO_HEIGHT, // Links_MOD
#
#-----[ ACTION: OPEN ]------------------------------------------
#
templates/your_template/portal_body.tpl
#
#-----[ ACTION: FIND ]------------------------------------------
#
#
#-----[ ACTION: BEFORE, ADD ]------------------------------------------
#
{L_LINKS}
{SITENAME}
No se si serí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡ esto.

Re: Links_MOD
Publicado: 01 Jul 2004, 08:36
por madelmanhouse
Francisco, a ti í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¿donde se puede invitarte a una cerveza?
Solo he modificado el portal.php y ya funciona bien, ahora solo me falta encontrar donde ponen las modidas para hacer los logos un poco mas grandes.
Pongo el trozo de codigo de mi portal.php, tu linea no la tengo yo,
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
pero pegue el codigo en otro sitio, te pongo donde lo puse, es abajo del todo, aunque me imagino que en otros sitios tambien servira:
Código: Seleccionar todo
$template->assign_vars(array(
'WELCOME_TEXT' => $CFG['welcome_text'],
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
'TOTAL_TOPICS' => sprintf($lang['total_topics'], $total_topics),
'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''),
'L_FORUM' => $lang['Forum'],
'L_BOARD_NAVIGATION' => $lang['Board_navigation'],
'L_STATISTICS' => $lang['Statistics'],
'L_ANNOUNCEMENT' => $lang['Post_Announcement'],
'L_POSTED' => $lang['Posted'],
'L_COMMENTS' => $lang['Comments'],
'L_VIEW_COMMENTS' => $lang['View_comments'],
'L_POST_COMMENT' => $lang['Post_your_comment'],
'L_SEND_PASSWORD' => $lang['Forgotten_password'],
'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),
'L_REGISTER_NEW_ACCOUNT' => sprintf($lang['Register_new_account'], '', ''),
'L_REMEMBER_ME' => $lang['Remember_me'],
'L_VIEW_COMPLETE_LIST' => $lang['View_complete_list'],
'L_POLL' => $lang['Poll'],
'L_VOTE_BUTTON' => $lang['Vote'],
'L_LINKS' => $lang['Site_links'], // Links_MOD
'U_LINKS' => append_sid("links.$phpEx"), // Links_MOD
'U_LINKS_JS' => "links.js.$phpEx", // Links_MOD
'U_SITE_LOGO' => SITE_LOGO_SRC, // Links_MOD
'SITE_LOGO_WIDTH' => SITE_LOGO_WIDTH, // Links_MOD
'SITE_LOGO_HEIGHT' => SITE_LOGO_HEIGHT, // Links_MOD
Un millon de gracias.
Re: Links_MOD
Publicado: 01 Jul 2004, 09:05
por madelmanhouse
Este es el codigo que tengo puesto en portal_body:
Código: Seleccionar todo
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" width="100%" height="22"><span class="cattitle"><a href="{U_LINKS}" class="cattitle">{L_LINKS}</a></span></td>
<td class="cat" nowrap="nowrap" align="center"><span class="cattitle">ENLACES Y PUBLICIDAD</span></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="yes" width="100%" height="{SITE_LOGO_HEIGHT}"></iframe></td>
<td class="row2" nowrap="nowrap"><img src="{U_SITE_LOGO}" alt="{SITENAME}" width="200" height="110" border="0" /></td>
</tr>
<br />
</table>
Re: Links_MOD
Publicado: 01 Jul 2004, 10:49
por Francisco
Pues yo creo que se cambian en la Base de Datos.
No tengo instalado ese MOD pero cuando introduces uno nuevo, en el panel de Administracií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³n, no te pone í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¿ancho y alto? si no es así?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í? supongo que admitirí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡ varios tamaí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?±os, segí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?ºn sea la imagen.
Si fuerzas el tamaí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?±o de los que tienes se va a deformar la imagen.
Mira en las Tablas link_categories y link a ver si encuentras por algí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?ºn campo width y height y cambias el valor al de la nueva imagen.

Publicado: 01 Jul 2004, 11:10
por madelmanhouse
Ya esta echo, no es en la base de datos es en incluides/links_contans.php
Otra vez gracias Francisco.
Re: Links_MOD
Publicado: 01 Jul 2004, 13:44
por Francisco
Efectivamente, es que yo no tení?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Âa ni ese archivo, ni el MOD ni el phpBB plus1.0 pero ya lo he visto:
Código: Seleccionar todo
define('SITE_URL', "http://localhost/final/");
define('SITE_LOGO_SRC', "http://localhost/final/images/links/web_logo88a.gif");
define('SITE_LOGO_WIDTH', 88);
define('SITE_LOGO_HEIGHT', 31);
define('LINKS_PER_PAGE', 10);
Saludos,

Publicado: 02 Jul 2004, 09:05
por madelmanhouse
Mucha gracias por todo.