Advertisement:

Download and Password Adpatar en RC5

Aloittaja Aportadordelmix, maaliskuu 16, 2011, 02:32:46 IP

« edellinen - seuraava »

Aportadordelmix

Hola!

Les cuento que estoy teniendo problema con el mod Dowloand and Password... Se ve asi:
http://www.aportesydescargas.com.ar/index.php?topic=15025.new#new

Creo que es problema de CSS.

Les paso el código de como lo adpate a mi foro, versión 2.0 RC5

array(
'tag' => 'download',
'before' => '<table border="0" cellspacing="0" cellpadding="0" width="50%"><tr><td height="39" colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="113" background="'.$settings['default_theme_url'].'/images/down1.gif" height="39" title="Descargar enlaces">&nbsp;</td><td background="'.$settings['default_theme_url'].'/images/down2.gif">&nbsp;</td><td width="48" background="'.$settings['default_theme_url'].'/images/down3.gif" title="sharedownload.org" height="39">&nbsp;</td></tr></table></td></tr><tr><td bgcolor="#C0DDFF" width="10">&nbsp;</td><td bgcolor="#C0DDFF"><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #007FD8" bgcolor="#FFFFFF"><tr><td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"><p style="margin: 5px">',
'after' => '</td></tr></table></td><td bgcolor="#C0DDFF" width="10">&nbsp;</td></tr><tr><td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td background="'.$settings['default_theme_url'].'/images/down4.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td bgcolor="#C0DDFF" height="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td background="'.$settings['default_theme_url'].'/images/down5.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td></tr></table></td></tr></table><!-- 250309-->',
'block_level' => true,
),
array(
'tag' => 'password',
'before' => '<table border="0" cellspacing="0" cellpadding="0"><tr><td height="39" colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="123" background="'.$settings['default_theme_url'].'/images/pwd1.gif" height="39" title="Contraseña Arhivo">&nbsp;</td><td background="'.$settings['default_theme_url'].'/images/pwd2.gif">&nbsp;</td><td width="48" background="'.$settings['default_theme_url'].'/images/pwd3.gif" height="39">&nbsp;</td></tr></table></td></tr><tr><td bgcolor="#cdf4a3" width="10">&nbsp;</td><td bgcolor="#cdf4a3"><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #69ac00" bgcolor="#FFFFFF"><tr><td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"><p style="margin: 5px">',
'after' => '</td></tr></table></td><td bgcolor="#cdf4a3" width="10">&nbsp;</td></tr><tr><td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td background="'.$settings['default_theme_url'].'/images/pwd4.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td bgcolor="#cdf4a3" height="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td background="'.$settings['default_theme_url'].'/images/pwd5.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td></tr></table></td></tr></table><!-- 250309-->',
'block_level' => true,
),


Eso lo agregué a Subs-Editor.php

Y esto a Subs.php

array(
'tag' => 'download',
'before' => '<table border="0" cellspacing="0" cellpadding="0" width="50%"><tr><td height="39" colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="113" background="'.$settings['default_theme_url'].'/images/down1.gif" height="39" title="Descargar enlaces">&nbsp;</td><td background="'.$settings['default_theme_url'].'/images/down2.gif">&nbsp;</td><td width="48" background="'.$settings['default_theme_url'].'/images/down3.gif" title="sharedownload.org" height="39">&nbsp;</td></tr></table></td></tr><tr><td bgcolor="#C0DDFF" width="10">&nbsp;</td><td bgcolor="#C0DDFF"><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #007FD8" bgcolor="#FFFFFF"><tr><td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"><p style="margin: 5px">',
'after' => '</td></tr></table></td><td bgcolor="#C0DDFF" width="10">&nbsp;</td></tr><tr><td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td background="'.$settings['default_theme_url'].'/images/down4.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td bgcolor="#C0DDFF" height="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td background="'.$settings['default_theme_url'].'/images/down5.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td></tr></table></td></tr></table><!-- 250309-->',
'block_level' => true,
),
array(
'tag' => 'password',
'before' => '<table border="0" cellspacing="0" cellpadding="0"><tr><td height="39" colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="123" background="'.$settings['default_theme_url'].'/images/pwd1.gif" height="39" title="Contraseña Arhivo">&nbsp;</td><td background="'.$settings['default_theme_url'].'/images/pwd2.gif">&nbsp;</td><td width="48" background="'.$settings['default_theme_url'].'/images/pwd3.gif" height="39">&nbsp;</td></tr></table></td></tr><tr><td bgcolor="#cdf4a3" width="10">&nbsp;</td><td bgcolor="#cdf4a3"><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #69ac00" bgcolor="#FFFFFF"><tr><td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"><p style="margin: 5px">',
'after' => '</td></tr></table></td><td bgcolor="#cdf4a3" width="10">&nbsp;</td></tr><tr><td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td background="'.$settings['default_theme_url'].'/images/pwd4.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td bgcolor="#cdf4a3" height="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td background="'.$settings['default_theme_url'].'/images/pwd5.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td></tr></table></td></tr></table><!-- 250309-->',
'block_level' => true,
),

DoctorMalboro

Intentaste pasar ese código a un estílo CSS? Muchas de las propiedades (como bgcolor) son deprecated y a veces los navegadores ya ni las soportan.

vicram10

Voy a ver para actualizar algunos mods.. que tenemos.. pero con el tiempo que tengo todo se complica...

Aportadordelmix

Lainaus käyttäjältä: DoctorMalboro - maaliskuu 16, 2011, 04:51:27 IP
Intentaste pasar ese código a un estílo CSS? Muchas de las propiedades (como bgcolor) son deprecated y a veces los navegadores ya ni las soportan.

Claro, eso pensé hacer, el tema es que no sé por dónde empezar.  :-X

El qué debo modificar es el archivo Subs-Editor.php para pasarlo al index.css? Y cómo sería?

DoctorMalboro

Yo empezaría por reescribir todo y no usar tablas... con varios <div> o <span> podes lograr lo mismo...

digamos que para el bloque con los links sería:

'before' => '<div class="fondo-links"><span class="titulo">Descargar enlaces</span><span class="contenido">',
'after' => '</span></div>',


y para la contraseña mas o menos lo mismo

'before' => '<div class="fondo-pass"><span class="titulo2">Contraseña</span><span class="contenido2">',
'after' => '</span></div>',


Y el estílo depende de cómo lo quieras hacer vos, pero tendría una estructura más o menos así:

.fondo-links {/* cosas acá */}
.fondo-links .titulo {}
.fondo-links .contenido {}

.fondo-pass {/* cosas acá */ }
.fondo-pass .titulo2 {}
.fondo-pass .contenido {}

Aportadordelmix

Lainaus käyttäjältä: DoctorMalboro - maaliskuu 17, 2011, 10:08:46 AP
Y el estílo depende de cómo lo quieras hacer vos, pero tendría una estructura más o menos así:

Al estilo que quiero llegar, es al que establecía el mod.

Lainaus käyttäjältä: DoctorMalboro - maaliskuu 17, 2011, 10:08:46 AP
.fondo-links {/* cosas acá */}
.fondo-links .titulo {}
.fondo-links .contenido {}

.fondo-pass {/* cosas acá */ }
.fondo-pass .titulo2 {}
.fondo-pass .contenido {}


Está parte es la que no entiendo bien. Como sería lo que iría en donde dice: "cosas acá"




Nadie lo adpato a la versión RC4 o RC5? Qué pueda compartir el código?

DoctorMalboro

significa que uses CSS y le des el estílo que quieras que tenga.

Diego Andrés

Yo lo adapté a RC4, pero la verdad no me acuerdo, fue ya hace unos meses, y no lo reescribí. Según recuerdo tan solo modifiqué algunas cosillas del mod, pero como dije no me acuerdo xD

Voy a probar otra ves para ver

SMF Tricks - Free & Premium Responsive Themes for SMF.

Aportadordelmix

Topic Solved!

Me faltaba agregar la variable global $settings;

Saludos.

Advertisement: