PHP beginner |
|
Hej ik gebruik webspell en daarin heb ik een latesttopics deel gemaakt, maar nu pakt hij ook de borders en alles erbij.
Voorbeeld:
http://dma-hq.nl/belgium-esports/index.php (linksonderaan)
Hoe ik het graag wil:
Forumname - Aantal Reacties
Dat ik dan op forumname kan klikken en erheen ga. Alvast bedankt!
Code van latesttopics:
<?php
$ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_topics WHERE intern<='".isinternboarduser($userID)."' ORDER BY lastdate DESC LIMIT 0,$maxlatesttopics");
$anz=mysql_num_rows($ergebnis);
if($anz) {
eval ("\$latesttopics_head = \"".gettemplate("latesttopics_head")."\";");
echo $latesttopics_head;
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
if($n%2) {
$bg1=BG_1;
$bg2=BG_2;
}
else {
$bg1=BG_3;
$bg2=BG_4;
}
$latesticon='<img src="images/icons/'.$ds[icon].'" width="15" height="15">';
$boardlink='• <a href="index.php?site=forum&board='.$ds[boardID].'"><b>'.getboardname($ds[boardID]).'</b></a>';
$topiclink=' <a href="index.php?site=forum_topic&topic='.$ds[topicID].'&type=ASC&page='.ceil(($ds['replys']+1)/$maxposts).'">'.clearfromtags($ds[topic]).'</a>';
$replys=$ds[replys];
eval ("\$latesttopics_content = \"".gettemplate("latesttopics_content")."\";");
echo $latesttopics_content;
$n++;
}
eval ("\$latesttopics_foot = \"".gettemplate("latesttopics_foot")."\";");
echo $latesttopics_foot;
}
?>
<?php $ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_topics WHERE intern<='".isinternboarduser($userID)."' ORDER BY lastdate DESC LIMIT 0,$maxlatesttopics"); if($anz) { eval ("\$latesttopics_head = \"".gettemplate ("latesttopics_head")."\";"); $n=1; if($n%2) { $bg1=BG_1; $bg2=BG_2; } else { $bg1=BG_3; $bg2=BG_4; } $latesticon='<img src="images/icons/'.$ds[icon].'" width="15" height="15">'; $boardlink='• <a href="index.php?site=forum&board='.$ds[boardID].'"><b>'.getboardname($ds[boardID]).'</b></a>'; $topiclink=' <a href="index.php?site=forum_topic&topic='.$ds[topicID ].'&type=ASC&page='.ceil(($ds['replys']+1)/$maxposts).'">'.clearfromtags ($ds[topic ]).'</a>'; $replys=$ds[replys]; eval ("\$latesttopics_content = \"".gettemplate ("latesttopics_content")."\";"); echo $latesttopics_content; $n++; } eval ("\$latesttopics_foot = \"".gettemplate ("latesttopics_foot")."\";"); } ?>
|