leloup31 1994
| Posté : 24-05-2006 21:09
Pour supprimer le bloc lien relatif, dans "article.php" mettre en commentaire les lignes suivantes.
$boxtitle=translate("Related Links");
$boxstuff="<ul>";
$result=mysql_query("select name, url from related where tid='$topic'");
while(list($name, $url) = mysql_fetch_row($result)) {
$boxstuff .= "<li><a href=\"$url\" target=\"new\"><span class=\"NOIR\">$name</span></a></li>";
}
$boxstuff .= "</ul>
<ul>
<li><a href=\"search.php?topic=$topic\"><span class=\"NOIR\">".translate("More about")." ".aff_langue($topictext)."</span></a></li>
<li><a href=\"search.php?member=$informant\"><span class=\"NOIR\">".translate("News by")." $informant</span></a></li>
</ul>
<br /><br /><div class=\"BOXC\">".translate("Most read story about")." ".aff_langue($topictext)." :</div>";
$xtab=news_aff("big_story","where topic=$topic",0,1);
list($topstory, $ttitle) = $xtab[0];
$boxstuff .= "<ul>
<li><a href=\"article.php?sid=$topstory\"><span class=\"NOIR\">".aff_langue($ttitle)."</span></a></li>
</ul>
<br /><br /><div class=\"BOXC\">".translate("Last news about")." ".aff_langue($topictext)." :</div>";
if (!$archive)
$xtab=news_aff("libre", "where topic=$topic and archive='0' order by sid DESC",0,5);
else
$xtab=news_aff("archive ","where topic=$topic and archive='1' order by sid DESC",0,5);
$story_limit=0;
$boxstuff .="<ul>";
while (($story_limit<10) and ($story_limit<sizeof($xtab))) {
list($sid1,$catid1,$aid 1,$title1) = $xtab[$story_limit];
$story_limit++;
$title1=aff_langue(adds lashes($title1));
$boxstuff.="<li>& lt;a href=\"article.php?sid=".$sid1."\" class=\"NOIR\">".aff_langue(stripslashes($title1))."</a></li>";
}
$boxstuff .="</ul>";
$boxstuff .= "<p align=\"center\">";
if ($anonpost==1 OR $admin OR $user) {
if ($ibid=theme_image("box/comment.gif")) {$imgtmp=$ibid;} elseif ($ibid=theme_image("box/$language/comment.gif")) {$imgtmp=$ibid;} else {$imgtmp="$userimg$language/comment.gif";}
$boxstuff .= "<a href=\"comments.php?op=Reply&pid=0&sid=$sid\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" align=\"middle\" /></a></p>\n<p align=\"center\">";
}
$boxstuff .= "<a href=\"print.php?sid=$sid\">";
if ($ibid=theme_image("box/print.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/print.gif";}
$boxstuff .= "<img src=\"$imgtmp\" border=\"0\" alt=\"".translate("Printer Friendly Page")."\" align=\"middle\"></a> ";
if ($ibid=theme_image("box/friend.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/friend.gif";}
$boxstuff .= "<a href=\"friend.php?op=FriendSend&sid=$sid\"><img src=\"$imgtmp\" border=\"0\" alt=\"".translate("Send this Story to a Friend")."\" align=\"middle\" /></a> ";
et
if ($mode != "nocomments") {
!include!("comments.php");
}
|