Online List In Chat

Started on the old forum in July 2007 · view the original in the archive · old links redirect here

12 replies · 1,415 views · started 19 years ago · 1 min read

4 participants
Anshul Senior · 296 posts #1

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.

linkrx7 #2

if ita a lavalir try this

$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 #3

sounds like scotpaul

Anshul Senior · 296 posts #4

Lol i am taking bout chat script

alesh Lead · 604 posts #6

if ita a lavalir try this

$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");

how about 4 forums nd topics......?

eeeeerrr....

Anshul Senior · 296 posts #7

i want to know about cz script

Guest #8

i want to know about cz script

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.

Anshul Senior · 296 posts #9

thanx charlie bro i will try it

Guest #10

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

Guest #12

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..

Attachments: online.txt
Regz #13

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>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close