Hello, on the Shout do not see the color and even the smileys, I tried but I could not, thanks for the reply
PHP Code:
//////////////////////////////////chat shouts 2
else if($action=="shouts2")
{
addonline(getuid_sid($sid),"รจ nel chat shout","");
echo "<head>";
echo "<title>Chat ShoutBox</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$who = $_GET["who"];
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($who=="")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts2"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts2 WHERE shouter='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
if($who =="")
{
$sql = "SELECT id, shout, shouter, shtime FROM ibwf_shouts2 ORDER BY shtime DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, shout, shouter, shtime FROM ibwf_shouts2 WHERE shouter='".$who."'ORDER BY shtime DESC LIMIT $limit_start, $items_per_page";
}
echo "<p><small>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$shnick = getnick_uid($item[2]);
$sht = htmlspecialchars($item[1]);
$shdt = date("d m y-H:i", $item[3]);
$lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$shnick</a>: $sht<br/>$shdt";
if(ismod(getuid_sid($sid)))
{
$dlsh = "<a href=\"modproc.php?action=delsh2&sid=$sid&shid=$item[0]\">[x]</a>";
}else{
$dlsh = "";
}
echo "$lnk $dlsh<br/>";
}
}
Comment