Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Galite padeti?

Parašė citni· 2010 Bal. 2 19:04:23
#4

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

openside("Profilio komentarai");
$result = dbquery(
   "SELECT * FROM ".DB_COMMENTS." tc
   LEFT JOIN ".DB_USERS." tu ON tc.comment_name=tu.user_id
   WHERE comment_type='PF' ORDER BY comment_datestamp DESC LIMIT 0,3"
);

if (dbrows($result)) {
   while ($data = dbarray($result)) {
      $avatar = ($data['user_avatar'] != "" ? $data['user_avatar'] : "noav.gif");
      $comment_message = preg_replace("#(\[(.*?)=(.*?)\](.*?)\[/(.*?)\]|\[(.*?)\](.*?)\[/(.*?)\])#si", "", $data['comment_message']);
                $youtube = (preg_match("#\[youtube\](.*?)\[/youtube\]#si", $comment_message) ? true : false);
      echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' alt='profile'>\n";
      echo "<img align='center' src='".IMAGES."avatars/".$avatar."' height='25' width='25' border='0' style='margin:2px' /></a>\n";
      echo "<a href='".BASEDIR."profile.php?lookup=".$data['comment_item_id']."'><b>".$data['user_name']."</b><br />\n";
      echo "<img src='".THEME."images/bullet.gif' border='0' alt='' /> ".strip_tags(trimlink($comment_message, 40))."</a><br /><br />\n";
   }
} else {
   echo "<div style='text-align:left'>Pranešimų nėra</div>";
}
closeside();
?>



tag_wall_panel.php

Redagavo citni· 2010 Bal. 2 19:04:49