close× Call Us +49 (1805) 01 29 59

Datalus
Thread Author: Der Riese
Thread ID: 1542
Thread Info
Es gibt 3 Beiträge zu diesem Thema, und es wurde 2123 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Letzte Kommentare Panel?
Der Riese
gibt es ein panel das mir die letzen Kommentare ähnlich dem last forum post panel?
 
SC-Ad-Bot
 
Dat Tunes
Erstelle einfach ein Panel oder eine eigene Seite je nach wunsch und baue diesen Code ein:


opentable("Letzte Kommentare");
?>
<ilayer name="scroll1" width=700 height=150 clip="0,0,700,150">
<layer name="scroll2" width=700 height=150 bgColor="lightyellow">
<div id="scroll3" style="width:700px;height:150px;background-color:lightyellow;overflow:scroll">
<?php
$i = 0;
$result = dbquery(
"SELECT * FROM ".DB_PREFIX."comments LEFT JOIN ".$db_prefix."users
ON ".$db_prefix."comments.comment_name=".$db_prefix."users.user_id
ORDER BY comment_datestamp DESC LIMIT 50"
);
if (dbrows($result)) {
echo "<table width='100%' align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
while ($i <5) {$data = dbarray($result);
echo "<tr>\n<td class='".($i% 2==0?"tbl1":"tbl2")."'><span class='comment-name'>";
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['comment_name']."' class='slink'>".$data['user_name']."</a>";
} else {
echo $data['comment_name'];
}
$comment_message = nl2br(parseubb($data['comment_message']));
$comment_item_id = $data['comment_item_id'];
$comment_type = $data['comment_type'];
if ($data['comment_smileys'] == "1") $comment_message = parsesmileys($comment_message);
echo "</span>
<span class='small'>".$locale['041'].showdate("longdate", $data['comment_datestamp'])."</span><br>
".$comment_message."<br>";

if ($data['comment_type'] == "N") {
echo "<a href='".BASEDIR."news.php?readmore=".$data['comment_item_id']."'>[Zeige News Kommentar]</a><br>";
}
else if ($data['comment_type'] == "A") {
echo "<a href='".BASEDIR."readarticle.php?article_id=".$data['comment_item_id']."'>[Zeige Artikel Kommentar]</a><br>";
}
else if ($data['comment_type'] == "P") {
echo "<a href='".BASEDIR."photogallery.php?photo=".$data['comment_item_id']."'>[Zeige Fotoalbum Kommentar]</a><br>";
}
else if ($data['comment_type'] == "C") {
echo "<a href='".BASEDIR."viewpage.php?page_id=".$data['comment_item_id']."'>[Zeige Kommentare der eigenen Seite}</a><br>";
}
else {
echo "- Kein Link vorhanden. - ";
}

echo "</td>\n</tr>\n";
$i++;
}
echo "</table>\n";
} else {
echo "<center><br>Zur Zeit gibt es keine Kommentare.<br><br></center>\n";
}
?>

</div>
</layer>
</ilayer>

<script>

/***********************************************
* Scrollable content Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynami... for full source code
***********************************************/

var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
scrolldoc.top+=10
temp2=setTimeout("up()",50)
}
function down(){
if (!document.layers) return
if (scrolldoc.top-150>=scrolldoc.document.height*-1)
scrolldoc.top-=10
temp=setTimeout("down()",50)
}

function clearup(){
if (window.temp2)
clearInterval(temp2)
}

function cleardown(){
if (window.temp)
clearInterval(temp)
}

</script>
<br><span style="display:none" style=&{nsstyle};><a href="#" onMousedown="up()"
onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
onMousedown="down()" onMouseup="cleardown()" onClick="return false"
onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+150;return false">Bottom</a></span>
<?php closeside();
/**/?>



Gruss
Mystik
Leute ohne Macke, sind Kacke Dickeslachen
Oh Herr, schmeiss Grundwissen von Himmel !
 
gozoc

Zitat

Der Riese schrieb:
gibt es ein panel das mir die letzen Kommentare ähnlich dem last forum post panel?

Warum suchst Du nicht hier ?? Mittlerweile müsste diese Seite doch wirklich jedem bekannt sein ...
Da gibts mindestens 2 Lösungen.
http://www.phpfusion-mods.net
Bearbeitet von gozoc am 31.08.2009 00000008 05:16
Extboard, the very extended Forum.
COMBRIX CMS better, faster, safer ...
 
Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
Whats New Panel Infusionen 2 01.06.2019 00000006 22:50
Advanced Whats New Panel Allgemeine Diskussionen 3 23.10.2018 00000010 17:43
slideshow panel (mitte) Allgemeine Diskussionen 9 24.06.2018 00000006 15:08
warnuwetter panel Infusionen 5 16.01.2018 00000001 18:41
[suche] Social Networks Panel Infusionen 7 06.06.2017 00000006 15:08