Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Posts Recientes con SSI

Aloittaja SnArr0X, lokakuu 17, 2012, 03:26:29 IP

« edellinen - seuraava »

SnArr0X

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 , hxxp:got.sampeando.net/asd.php [nonactive] , Gracias :)

lean

Solo usuarios registrados tienen ingreso a esa seccion...

Diego Andrés

Cómo lo estás añadiendo?
Puedes poner el código que usaste?

SMF Tricks - Free & Premium Responsive Themes for SMF.

SnArr0X

Aca les dejo el código del asd.php

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

XAVIER.

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 [nofollow]"> <html xmlns="http://www.w3.org/1999/xhtml [nofollow]"> <head> <?php ssi_recentTopics(8,null,null,'echo'); ?> </body> </html>

A lo mejor este código te sirva, concuerdo con este usuario.
          
Mi Foro simple-foro.com [nofollow]

Diego Andrés

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.

SMF Tricks - Free & Premium Responsive Themes for SMF.

SnArr0X

#6
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?

4Kstore

Reemplaza:
'.$var['subject'].'

Por:
<a href="'.$var['href'].'" title="'.$var['subject'].'">'.$var['subject'].'</a>

¡¡NEW MOD: Sparkles User Names!!!

SnArr0X

Listo! Muchas gracias a todos :)


TEMA SOLUCIONADO!

Advertisement: