Author |
Topic: About the chat room. (Read 452 times) |
|
Arimabuff
Forum Guru
Arimaa player #2764
Gender:
Posts: 589
|
|
About the chat room.
« on: May 1st, 2008, 10:06am » |
Quote 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 Modify
|
This actually used to be shown before.
|
|
IP Logged |
|
|
|
omar
Forum Guru
Arimaa player #2
Gender:
Posts: 1003
|
|
Re: About the chat room.
« Reply #2 on: May 2nd, 2008, 3:46pm » |
Quote 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:
Posts: 278
|
|
Re: About the chat room.
« Reply #3 on: May 4th, 2008, 12:06am » |
Quote 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:
Posts: 1003
|
|
Re: About the chat room.
« Reply #4 on: May 5th, 2008, 9:59am » |
Quote 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 |
|
|
|
|