Parašė Freedox· 2007 Geg. 9 13:05:03
#1
Sveiki, turiu tokia problema. Kai paraso komentara neregistruoti sveciai negalima pasiekti info paspaudus paneleje ant parashiusiojo vardo, o paspaudus ant registruoto nario nukialia i jo parashyta komentara. Ka rejkia keisti sioje paneleje, kad butu galima pasiekti neregistruoto nario komentara paspaudus paneleje ant jo vardo?
@openside("Paskutiniai komentarai");
$i = 0;
$result = dbquery(
"SELECT * FROM fusion_comments LEFT JOIN fusion_users
ON fusion_comments.comment_name=fusion_users.user_id
ORDER BY comment_datestamp DESC LIMIT 8"
);
if (dbrows($result)) {
echo "<table width='100%' align='center' cellpadding='0' cellspacing='0' class='tbl-border'>\n";
while ($data = dbarray($result)) {
echo "<tr>\n<td class='".($i% 2==0?"tbl1":"tbl2")."'><span class='comment-name'>";
if ($data['user_name']) {
echo "<a href='' class='slink'></a>";
} else {
echo $data['comment_name'];
}
$comment_message = nl2br(parseubb($data['comment_message']));
if ($data['comment_smileys'] == "1") $comment_message = parsesmileys($comment_message);
if ($data['comment_type'] == "N") {
echo "<a href='".BASEDIR."news.php?readmore=".$data['comment_item_id']."'>".$data['user_name']."</a><br>";
}
else if ($data['comment_type'] == "A") {
echo "<a href='".BASEDIR."readarticle.php?article_id=".$data['comment_item_id']."'>".$data['user_name']."</a><br>";
}
else if ($data['comment_type'] == "P") {
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."'>".$data['user_name']."</a><br>";
}
else if ($data['comment_type'] == "C") {
echo "<a href='".BASEDIR."viewpage.php?page_id=".$data['comment_item_id']."'>".$data['user_name']."</a><br>";
}
else {
echo "No link.";
}
echo "</td>\n</tr>\n";
$i++;
}
echo "</table>\n";
} else {
echo "<center><br>There are no comments.<br><br></center>\n";
}
@closeside();