Version: , by tubedogg
Developer Last Online: Dec 2016
Version: Unknown
Rating:
Released: 05-06-2001
Last Update: Never
Installs: 13
No support by the author.
UPDATE: v0.2.2 has been released, fixing the problem of session hashes not always being removed and replaced correctly in the URLs of where people are. It also attempts to fix the problem of members appearing on the list twice, however don't hold your breath on this one.
To upgrade, just reupload online.php to your server.
--------------------------------
Old update: v0.2.1 has been released. If you already have this hack installed and working you DO NOT NEED TO UPGRADE! The only change is I adjusted the instructions to account for an error in the order I had them in. THERE IS NO CHANGE TO THE HACK ITSELF. If you have not gotten this installed and working yet, please download the zip file (online021.zip) and work from that one.
--------------------------------
Old Update: You can now see where guests are on your board. To upgrade, simply download the new zip file, and read the UPGRADE INSTRUCTIONS in the online.txt file.
--------------------------------
Old Update: I fixed a small bug that was making one long string out of the URL To upgrade, just replace online.php on your server.
--------------------------------
Old Update: I added the missing mysql.php file.
--------------------------------
This has been requested many, many times. It produces a page that displays who's online and where they are. You can link to it from anywhere on your board, or make it just for Admins and Moderators (instructions for that included).
Hack version: v0.2.2
For version: vB2 RC2
Files needed: online.php
Files to edit: admin/sessions.php, possibly admin/index.php and mod/index.php
Templates to edit/create: online, online_userbits, online_guestbits, possibly forumhome_loggedinusers
Instructions are included in the zip file.
Feedback wanted. Please do not PM or IM me about this hack. Please post it in this thread. Thanks!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
I think that the users are listed twice (or multiple's) because you now also select the location...
When you have 2 sessions from the same user now everything will be the same (session.userid,username,invisible) except for the location...
So DISTINCT doesn't work then, because he 'sees' those 2 records as two different ones because of the locationfield...
There could be a workaround on this...Make an array or something; New record -> userid allready in the array? skip it...otherwise -> add userid to array -> list user
Only troubles would be with guests then...or you can check on the ipaddress if (s)he's allready listed
Hi. I installed this hack today and my prob is that when someone comes on, they pop on whos online quickly. But when they leave the site it takes around 15 minutes before it knows they left.
This is the exact same way the Who's Online on the front page of your forums works, and there's no way around it unless you leave your cookie timeout at a very low number (which I would not suggest). Hence, there's really no "fix", although I don't consider it a problem.
How come normally it works though? Before I did this, it worked right a way. Is there anything I may have accidentally done, that would make it take so long?
Thanks for advice on Cookie Timeout. I will put it back at a higher number.
just installed this and found there are two instances of this found in sessions.php
PHP Code:
Around line 237, find
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
and replace it with
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
Sorry, in that other thread I meant what line number...but anyway actually you should be putting it in both places - the first one should be covered by finding line 195 and the second line 237.