Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikėtų paneles

Parašė Peacemaker· 2008 Sau. 21 14:01:17
#1

Gal kur nors yra tokia panele, kuri galėtų rodyti paskutinius komentarus?(panašiai kaip paskutiniai straipsniai)
Jei kas turit ar žinot, [arašykit.

Parašė DJ-EnZoto· 2008 Sau. 21 14:01:57
#2

Kipriuxxz parašė:
Gal kur nors yra tokia panele, kuri galėtų rodyti paskutinius komentarus?(panašiai kaip paskutiniai straipsniai)
Jei kas turit ar žinot, [arašykit.





nueik i skriptu biblioteka ten turi rasti as tai bent maciau tikrai buvo B)

Parašė MaFetas· 2008 Sau. 21 14:01:52
#3

Klausyk gal pats laikas išmokti naudotis paieška? Čia jei tuoj ko užsinorėsi ir iškart kursi tema? Duokit man tą ar aną. Neišnaglėk per daug.

Pasinaudojus paieška(https://webdnd.com/search.php) radau štai ką:

@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']) {
   $name = $data['user_name'];
} else {
   $name = $data['comment_name'];
}
echo "<a href='' class='slink'></a>";
$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']."'>".$name."</a><br>";
}
else if ($data['comment_type'] == "A") {
echo "<a href='".BASEDIR."readarticle.php?article_id=".$data['comment_item_id']."'>".$name."</a><br>";
}
else if ($data['comment_type'] == "P") {
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."'>".$name."</a><br>";
}
else if ($data['comment_type'] == "C") {
echo "<a href='".BASEDIR."viewpage.php?page_id=".$data['comment_item_id']."'>".$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();



Redagavo MaFetas· 2008 Sau. 21 15:01:43

Parašė Enzo· 2008 Sau. 21 14:01:11
#4

Tas pats kas su kisphiumi buvo tik kokios nors paneles uzsinori taip ir tema jau forume

@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']) {
   $name = $data['user_name'];
} else {
   $name = $data['comment_name'];
}
echo "<a href='' class='slink'></a>";
$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']."'>".$name."</a><br>";
}
else if ($data['comment_type'] == "A") {
echo "<a href='".BASEDIR."readarticle.php?article_id=".$data['comment_item_id']."'>".$name."</a><br>";
}
else if ($data['comment_type'] == "P") {
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."'>".$name."</a><br>";
}
else if ($data['comment_type'] == "C") {
echo "<a href='".BASEDIR."viewpage.php?page_id=".$data['comment_item_id']."'>".$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();



Redagavo Enzo· 2008 Sau. 21 15:01:57

Parašė Peacemaker· 2008 Sau. 21 14:01:05
#5

Nu paskubejau, bet vistiek dėkui :)

Parašė DJ-EnZoto· 2008 Sau. 21 15:01:02
#6

Kipriuxxz parašė:
Nu paskubejau, bet vistiek dėkui :)





eik tu krc paskaityk ir pagalvok pries rasydamas ir kurdamas tema

Parašė Enzo· 2008 Sau. 21 15:01:30
#7

ta pati siulyciau ir tau padaryt:]

Parašė sniuff· 2008 Sau. 21 15:01:11
#8

Enzo parašė:
Tas pats kas su kisphiumi buvo tik kokios nors paneles uzsinori taip ir tema jau forume


Čia prieš kokį mėnesį :D
O jūs niekada nieko nepamirštą :D