Simple Machines Community Forum

SMF Support => Language Specific Support => Español (Spanish) => Aiheen aloitti: SnArr0X - lokakuu 17, 2012, 03:26:29 IP

Otsikko: Posts Recientes con SSI
Kirjoitti: SnArr0X - lokakuu 17, 2012, 03:26:29 IP
Buenas , acabo de unir el include de posts recientes con ssi a mi web y funciona perfectamente , el problema es que el width es muy grande y no llega a completarse en mi web , no hay forma de quitarle la FECHA y el DIRECTORIO DE FORO? Para que me entiendan mejor aca les dejo el código , http://got.sampeando.net/asd.php , Gracias :)
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: lean - lokakuu 17, 2012, 04:09:17 IP
Solo usuarios registrados tienen ingreso a esa seccion...
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: Diego Andrés - lokakuu 17, 2012, 04:18:42 IP
Cómo lo estás añadiendo?
Puedes poner el código que usaste?
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: SnArr0X - lokakuu 17, 2012, 05:45:08 IP
Aca les dejo el código del asd.php

Lainaa<?php require("SSI.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php ssi_recentTopics(8,null,null,'echo'); ?> </body> </html>
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: XAVIER. - lokakuu 17, 2012, 08:05:33 IP
Lainaus käyttäjältä: SnArr0X - lokakuu 17, 2012, 05:45:08 IP
Aca les dejo el código del asd.php

Lainaa<?php require("SSI.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php ssi_recentTopics(8,null,null,'echo'); ?> </body> </html>

A lo mejor este código te sirva, concuerdo con este usuario.
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: Diego Andrés - lokakuu 17, 2012, 08:11:53 IP
Lainaus käyttäjältä: XAVIER. - lokakuu 17, 2012, 08:05:33 IP
A lo mejor este código te sirva, concuerdo con este usuario.

Deja de comentar spam, tu mensaje no tiene coherencia, y no puedes esperar ayudar en tu tema si ni si quiera lees todos los mensajes ni el nombre de quienes publican dichos mensajes...



En mi sitio tengo el siguiente código:
<?php
require_once("foro/SSI.php");
$variable ssi_recentTopics(5,NULL,NULL,'array');

echo
'
<table border="1" align="center" width="100%" style="-moz-border-radius: 10px;">
<tr>
<td style="font-weight: bold;">
Tema
</td>
<td style="font-weight: bold;">
Foro
</td>
<td style="font-weight: bold;">
Autor
</td>
</tr>'
;
foreach(
$variable AS $var)
{
echo'
<tr>
<td>
'
.$var['subject'].'
</td>
<td>
'
.$var['board']['name'].'
</td>
<td>
'
.$var['poster']['name'].'
</td>
</tr>'
;
}
echo
'
</table>'
;
?>


Prueba con algo así, es un poco más práctico para agregar o quitar lo que no necesitas.
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: SnArr0X - lokakuu 17, 2012, 09:18:34 IP
Lainaus käyttäjältä: Diego Andrés - lokakuu 17, 2012, 08:11:53 IP
Lainaus käyttäjältä: XAVIER. - lokakuu 17, 2012, 08:05:33 IP
A lo mejor este código te sirva, concuerdo con este usuario.

Deja de comentar spam, tu mensaje no tiene coherencia, y no puedes esperar ayudar en tu tema si ni si quiera lees todos los mensajes ni el nombre de quienes publican dichos mensajes...



En mi sitio tengo el siguiente código:
<?php
require_once("foro/SSI.php");
$variable ssi_recentTopics(5,NULL,NULL,'array');

echo
'
<table border="1" align="center" width="100%" style="-moz-border-radius: 10px;">
<tr>
<td style="font-weight: bold;">
Tema
</td>
<td style="font-weight: bold;">
Foro
</td>
<td style="font-weight: bold;">
Autor
</td>
</tr>'
;
foreach(
$variable AS $var)
{
echo'
<tr>
<td>
'
.$var['subject'].'
</td>
<td>
'
.$var['board']['name'].'
</td>
<td>
'
.$var['poster']['name'].'
</td>
</tr>'
;
}
echo
'
</table>'
;
?>


Prueba con algo así, es un poco más práctico para agregar o quitar lo que no necesitas.


Faaa sos un genio! muchas gracias me solucionastes el problema :)

EDITO: Por casualidad no se podrán poner los enlaces del tema y que al apretar en el texto del tema te redirija hacia el post?
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: 4Kstore - lokakuu 18, 2012, 05:23:25 AP
Reemplaza:
'.$var['subject'].'

Por:
<a href="'.$var['href'].'" title="'.$var['subject'].'">'.$var['subject'].'</a>
Otsikko: Re: Posts Recientes con SSI
Kirjoitti: SnArr0X - lokakuu 18, 2012, 05:59:38 AP
Listo! Muchas gracias a todos :)


TEMA SOLUCIONADO!