Online List In Chat
Started on the old forum in July 2007 · view the original in the archive · old links redirect here
The msql query that gives you the members in a room can give you the members in the hall to. Just the change the WHERE room=$room to where room='';
That will give you all the members online thats not in a room.
Charlie your rgt but
i know the easiest way to show which users in hall nothing to change in mysql
Charlie your rgt but
i know the easiest way to show which users in hall nothing to change in mysql
We are all very glad to hear that you know another way but why dont you share it with us? External image (may be gone)
Advertise your mobile site for FREE with AdTwirl
oops lil bit busy in work... n oh y not i am very glad to help.. let me copy paste the code here.... its just simple one...you have to add this into online.php and then add this too while ($logazz=mysql_fetch_array($logaz)) { $b=""; $bc=""; if ($logazz['moder']<>'0') $b=""; if ($logazz['moder']<>'0') $bc=""; print $data[]="$b$logazz[1]$bc, "; };
.... if its not working please pm me or just Visit My Website i will surely help..
I also have developed an online list for hall u can clk nick to see profile frm this online list .To see it working go to ma chatsiteHere
<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include "ini.php";
?>
<card title="Onlinelist">
<?php
$onlines = @mysql_query("SELECT * FROM `".$px.$utable."` WHERE `ltime`>'".intval(time()-$offline)."' AND room='".$droom['var']."' order by `posts` desc;");
while($donline = @mysql_fetch_array($onlines))
{
$data[]="<a href=\"./user.php?id=$id&pass=$pass&room=$room&dbid=".$donline[0]."&r=$r\">$donline[1]</a>
";
}};
$i=count($data);
$count=$i;
$count1=$count;
if(empty($start))
$start=0;
$start=intval($start);
if($start<0)
$start=0;
if($count>$start+10) $count=$start+10;
for($i=$start,$j=$start+1;$i<$count;++$i,++$j)
{
print $j;
print". ";
print $data["$i"]."
";
}
if($start!=0)
{
print "<a href=\"onlist1.php?id=$id&pass=$pass&start=".($start-10)."\">".htmlspecialchars("Previous")."</a>
";
}
if($count1>$start+10)
{
print "<a href=\"onlist1.php?id=$id&pass=$pass&start=".($start+10)."\">
".htmlspecialchars("Next")."</a>
";
}
print "<a href=\"./statistic.php?id=$id&pass=$pass\">Statistics</a>
";
print "<a href=\"./enter.php?id=$id&pass=$pass\">Hall</a>
";
ob_end_flush();
?>
</p>
</card>
</wml>