Hola a todos!
Creo que este es el mejor lugar donde postearlo,hoy con el Simple Portal 2.3.2 hice un bloque del staff de la web con movimiento,y al pasar el mouse el movimiento va lento,una cap:(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg525.imageshack.us%2Fimg525%2F1808%2Fcatsxcjx.jpg&hash=b142f3609036b9e33c31aceba5599483c408f61f)
Para crear el bloque vallan a:
Administración => SimplePortal => Blocks => AAD BLOCK => Custom PHP (esta abajo del todo) => Select Block Type => y pongan estos datos:
Name: Staff
Permission Settings: One Membergroup
Custom PHP:Lainaaecho'
<div class="img_aletat">
<div class="box_title" style="width: 160px;">
<div class="box_rss"><img src="/Themes/default/images/blank.gif" style="width: 16px; height: 16px;" border="0"></div></div></div>
<div class="box_icono2" id="last_comments" style="width: 150px; padding: 4px 4px 4px 4px;">
<marquee direction="up" scrollAmount="4" onMouseOver="this.scrollAmount=1" onMouseOut="this.scrollAmount=4">
<center><b>Administradores:</b></center>
<center><b><font color="#088A08"><br>admin </b></font><a href="http://localhost/index.php?action=pm;sa=send&u=admin"><img src="/mp.gif" style="width: 16px; height: 11px;" border="0"> <a href="mailto:[email protected]"><img src="/msn.gif" style="width: 12px; height: 14px;" border="0"></center></a>
<center><b><font color="#088A08"><br>Nick </b></font><a href="http://localhost/index.php?action=pm;sa=send&u=nick"><img src="/mp.gif" style="width: 16px; height: 11px;" border="0"> <a href="E-MAIL asi maito:@hot.com"><img src="/msn.gif" style="width: 12px; height: 14px;" border="0"></center></a>
<center><b><font color="#000000"><br>Moderadores: </b></font><a href="http://localhost/index.php"><img src="" style="width: 16px; height: 16px;" border="0"> <a href="http://localhost/index.php"><img src="" style="width: 16px; height: 16px;" border="0"></center></a>
<center><b><font color="#088A08"><br>Nick </b></font><a href="http://localhost/index.php?action=pm;sa=send&u=nick"><img src="/mp.gif" style="width: 16px; height: 11px;" border="0"> <a href="E-MAIL asi maito:@hot.com"><img src="/msn.gif" style="width: 12px; height: 14px;" border="0"></center></a>
<center><b><font color="#088A08"><br>Nick </b></font><a href="http://localhost/index.php?action=pm;sa=send&u=nick"><img src="/mp.gif" style="width: 16px; height: 11px;" border="0"> <a href="E-MAIL asi maito:@hot.com"><img src="/msn.gif" style="width: 12px; height: 14px;" border="0"></center></a>
<center><b><font color="#088A08"><br>Nick </b></font><a href="http://localhost/index.php?action=pm;sa=send&u=nick"><img src="/mp.gif" style="width: 16px; height: 11px;" border="0"> <a href="E-MAIL asi maito:@hot.com"><img src="/msn.gif" style="width: 12px; height: 14px;" border="0"></center></a>
<center><b><font color="#088A08"><br>Nick </b></font><a href="http://localhost/index.php?action=pm;sa=send&u=nick"><img src="/mp.gif" style="width: 16px; height: 11px;" border="0"> <a href="E-MAIL asi maito:@hot.com"><img src="/msn.gif" style="width: 12px; height: 14px;" border="0"></center></a>
</marquee></div>';
Ustedes antes de poner el codigo,editenlo con los verdaderos datos.
Despues pongan el codigo en Custom PHP,en Column eligen la columna donde va a estar el bloque,y clickean Add Block y listo.
Espero que les guste.
Chau!
DEMO: http://socialcommunity.com.ar/index.php (http://socialcommunity.com.ar/index.php)
Porque lo pones asi y no usas las variables directamente?
seria mas sencillo. ya que no tenes que poner todos los datos manualemente.
las etiquetas font y center aunque todavia las soportan los navegadores ya no es recomendable su uso, e sejor cambiarlas por stylos css: style="color:#fff; text-align:center; margin:auto;"
como no tiene ninguna variable es mejor ponerlo en un bloque de html, asi evitas llamar a php por algo que es 100% html.
y por ultimo, ya existe un bloque de staff en SimplePortal con más información.
Ami me parece bien que animes a aportar tus creaciones, simplemente toma en cuenta lo que te dijeron mas arriba y mejoralo si queres.
Muchas gracias y siempre estas cosas son bienvenidas, de a poco iras haciéndolas mejor, simplemente toma lo de arriba como consejos y no como criticas.
Saludos!
Muy interesante, yo que vos revisaría errores de validación, son elementales para su compatibilidad con los navegadores.
No seria mas facil buscar el bloque de staff del portalblocks y poner en el codigo una marquee y listo?
Aca te dejo un tutorial para utilizar el marquee como mas te guste: http://www.simplemachines.org/community/index.php?topic=403310.0
Como dijo heracles, mucho mas facil usar los datos que te brinda el foro con sus variables y depaso darle uso al bloque de staff de simple portal o el portal que sea.
Saludos!