Hi , i hope you or someone can help me out here.
I've downloaded a script from phpclasses.org and its a users online script.
it doesnt seems to be difficult to set up.
But was my intention to put the script in the directory of a chat thing i have on my website and use a kind of a include to be viewed on the index page so vistors can see if there's someone in the chat.
So i put the whole script in the chat directory and the rest you can guess.
But looking at it , it sats 1 user online but infact no one is online.
But for some strange reason it can see me feel me or whatever the problem is.
The script i used in at [http://www.phpclasses.org/goto/browse.h ... /1246.html]
Hope someone can tell me what i'm doing wrong.
John[/url]
Help with this users online script
Moderator: General Moderators
ohh ... I get what your saying now
you need to just get (probably copy) part of the usersonline script into another file. The part that does *NOT* update the storage of information on who is online. Only the bits that just display the info.
The usersonline script gets info when ppl run the script and adds that info to the info kept in a file or database about who is online.
So you need the copy that usersonline script and remove the updating part and just leave in the reading part. And put THIS on the index.php page and leave the other one on the chat room script
you need to just get (probably copy) part of the usersonline script into another file. The part that does *NOT* update the storage of information on who is online. Only the bits that just display the info.
The usersonline script gets info when ppl run the script and adds that info to the info kept in a file or database about who is online.
So you need the copy that usersonline script and remove the updating part and just leave in the reading part. And put THIS on the index.php page and leave the other one on the chat room script