We can c the names of the chaters who r in the room in onlinelist.But wat is code fr viewing chaters in hall also.
Online List In Chat
Collapse
X
-
linkrx7
if ita a lavalir try this
Code:$rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'")); $rname = $rooms[1]; addonline($uid,"Chating in $rname","chat.php?rid=$rid&rpw=$rpw");
-
Guest -
Guest
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='';i want to know about cz script[/b]
That will give you all the members online thats not in a room.
Comment
-
Guest
Charlie your rgt butThe 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.[/b]
i know the easiest way to show which users in hall nothing to change in mysql
Comment
-
Guest
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..Attached Files
Comment
-
Regz
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
Code:<?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>
Comment

Comment