Welcome, Guest. Please Login or Register.
Nov 22nd, 2024, 8:33pm

Home Home Help Help Search Search Members Members Login Login Register Register
Arimaa Forum « About the chat room. »


   Arimaa Forum
   Arimaa
   Site Discussion
(Moderator: supersamu)
   About the chat room.
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: About the chat room.  (Read 452 times)
Arimabuff
Forum Guru
*****



Arimaa player #2764

   


Gender: male
Posts: 589
About the chat room.
« on: May 1st, 2008, 10:06am »
Quote Quote Modify Modify

I think it would be nice to know how many people are in there (from the oustide that is).
IP Logged
aaaa
Forum Guru
*****



Arimaa player #958

   


Posts: 768
Re: About the chat room.
« Reply #1 on: May 1st, 2008, 10:10am »
Quote Quote Modify Modify

This actually used to be shown before.
IP Logged
omar
Forum Guru
*****



Arimaa player #2

   


Gender: male
Posts: 1003
Re: About the chat room.
« Reply #2 on: May 2nd, 2008, 3:46pm »
Quote Quote Modify Modify

I had looked into that when we switch to this chat room, but found that it wasn't as simple to get that value with this version. I'll check into again later.
 
IP Logged
leo
Forum Guru
*****





   


Gender: male
Posts: 278
Re: About the chat room.
« Reply #3 on: May 4th, 2008, 12:06am »
Quote Quote Modify Modify

Ah, I forgot about that. A server script like this may do the job, although I'm not sure about the best way to call it from the (perl?) scripts that generate the gameroom page:
 
userscount.php (for instance):
require ('config.php');
$usersfile = fopen ($usersdat, 'r');
flock ($usersfile, LOCK_SH); # shared (read-only) advisory lock
print count (@unserialize (fgets ($usersfile)));
fclose ($usersfile);
 
EDIT: if it's handled by client side javascript it's simpler to call it
« Last Edit: May 4th, 2008, 12:09am by leo » IP Logged
omar
Forum Guru
*****



Arimaa player #2

   


Gender: male
Posts: 1003
Re: About the chat room.
« Reply #4 on: May 5th, 2008, 9:59am »
Quote Quote Modify Modify

on May 4th, 2008, 12:06am, leo wrote:
Ah, I forgot about that. A server script like this may do the job

 
Thanks Leo. That saved me a lot of time trying to figure out how to get the count.
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.