|
||
Title: About the chat room. Post by Arimabuff on May 1st, 2008, 10:06am I think it would be nice to know how many people are in there (from the oustide that is). |
||
Title: Re: About the chat room. Post by aaaa on May 1st, 2008, 10:10am This actually used to be shown before. |
||
Title: Re: About the chat room. Post by omar on May 2nd, 2008, 3:46pm 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. |
||
Title: Re: About the chat room. Post by leo on May 4th, 2008, 12:06am 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 |
||
Title: Re: About the chat room. Post by omar on May 5th, 2008, 9:59am on 05/04/08 at 00:06:23, leo wrote:
Thanks Leo. That saved me a lot of time trying to figure out how to get the count. |
||
Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |