Index du Forum » » Questions

Auteur

Les dix derniers posts affichés en accueil.
la_marquise
5  

  Posté : 23-01-2008 20:19

Bonjour,

j'ai beaucoup épuré npds pour l'esthétique de mon site, le système lastforum fonctionne nickel, bravo à ses concepteurs, mais je souhaiterais retirer les icônes devant les sujets.

Pouvez vous m'indiquer les lignes à supprimer/modifier dans mon code pour qu'aucune icône n'apparaisse ?




#autodoc !lastforums! : Affiche les X derniers posts des forums avec un icone correspondant à lu/non-lu
$maxcount = "15"; //Remplacez le nombre par le nombre de sujets que vous voulez afficher
$meta_mot="!lastforums!";
global $cookie;
$mbid = mysql_fetch_row(mysql_query("SELECT uid FROM users WHERE uname='$cookie[1]'"));
$corps = "<table width=\"100%\" border=1 bordercolor=$bgcolor4 cellpadding=2 cellspacing=0 bgcolor=$bgcolorblock><tr align=center bgcolor=$bgcolor2>" ;
$corps .= "<td></td><td width=55%><font size=2><b>Sujet</b></font></td><td width=20%><font size=2><b>Date</b></font></td><td width=25%><font size=2><b>Auteur</b></font></td></tr>"; < br /> $result = mysql_query("select distinct topic_id from posts where forum_id!=99 order by post_id desc limit $maxcount");
if (!$count) $count = mysql_num_rows($result);
if ($count>$maxcount)$count=$maxcount;
$ibid=0;
$forum_limit=0;
while ($forum_limit<$count){
list($topic_id) = mysql_fetch_row($result);
list($post_id, $forum_id, $poster_id, $time) = mysql_fetch_row(mysql_query("select post_id, forum_id, poster_id, post_time from posts where topic_id = $topic_id order by post_id desc limit 1"));
$forum_limit++;
if ($topic_id!=0) list($topic_title) = mysql_fetch_row(mysql_query("select topic_title from forumtopics where topic_id=$topic_id"));
if ($poster_id!=0) list($uname) = mysql_fetch_row(mysql_query("select uname from users where uid=$poster_id"));
if ($ibid==0) {
$ibid=1;
$bcolor=$bgcolor1;
} else {
$ibid=0;
$bcolor=$bgcolor3;
}
$corps .= "<tr align=center bgcolor=$bcolor>" ;
$p="ph";
$h="p";
$sqlR = "SELECT rid FROM forum_read WHERE topicid='$topic_id' and uid='$mbid[0]'";
if ($replys >= $hot_threshold) {
if ((mysql_num_rows(mysql_query($sqlR))== 0)) { $image = "images/forum/icons/hot_red_folder.gif"; }
else { $image = "images/forum/icons/hot_folder.gif"; }
} else {
if (mysql_num_rows(mysql_query($sqlR))==0) { $image = "images/forum/icons/red_folder.gif"; }
else { $image = "images/forum/icons/folder.gif"; }
if ($myrow[topic_status] == 1) { $image = "images/forum/icons/lock.gif"; }
}
$corps .= "<td><img src=\"$image\"><td align=left><font size=2 face=\"tahoma,$site_font\" color=$textcolor1>";
$corps .= " <a href=\"viewtopic.".$p.$h."?topic=$topic_id&forum=$forum_id\& quot;> $topic_title</ a></font></td>";
$corps .= "<td align=center><font size=1 face=\"tahoma,$site_font\" color=$textcolor1>$time</font></td> " ;
$corps .= "<td><font size=2 face=\"tahoma,$site_font\" color=$textcolor1><a href=\"user.".$p.$h."?op=userinfo&uname=$uname\">$un ame</a></fo nt> </td></font></tr>";
}
$corps .="</table>";
$Xcontent=extend_meta_mot($Xcontent,$meta_mot,$corps);

?>



Merci beaucoup

http://effetmer.free.fr



Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=21018&forum=9