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.
I should have seen this one coming. The problem is sessions.php is already modified to look for the location field, and not finding it, it errors out when running mysql.php. I have revised the directions to account for this.
JJR, can you run that query via Telnet or phpMyAdmin? That should solve your problem. Just continue with the instructions from there (go to your Admin CP and create the templates).
Everyone else, please redownload the zip file (if you have already downloaded it) and make sure your instructions say "v0.2.1" at the top. Those are the updated instructions.
Is this happening for just logged-in members, just guests, or both? I mean, in the list, are the members with the triple repeated post number members, guests, or both?
That I can't fix. It's the same as when you first surf in, you don't always appear as being online on the list on the front page. In this case it's because your location is updated at the same time the page is prepared, or slightly after (by a few milliseconds). If that's the worst problem the script presents, I think we're doing pretty good, eh?
Kevin, would it be possible to fix this by doing an automatically refresh when users see online.php?
Is this happening for just logged-in members, just guests, or both? I mean, in the list, are the members with the triple repeated post number members, guests, or both?
mhmm, strange. i looked at the script this morning and now it seems to generate correct links. sorry for my bug report.
but i have another problem:
the session variable in each link is different. i think it's a better way to change the variable to the viewers session-id, or??
another enhancement idea: include a profile link in the name and make a pm link nearby, perhaps an icon or so...
Thanks tubedogg. Since I had to use the non-edited original version of sessions.php as long as I couldn't get mysql.php to work, basically the hack was not installed at all. So I just downloaded your new version and installed it as per the new instructions, and it worked fine. Thanks!
Originally posted by insdel
After installing this hack the loggedin members are no properly shown any more (as you can see in the pic I've attached)
Only after refreshing the page some 3 times it works.
Any suggestions?
This should not affect that at all. If you are the only user on the board, you may not show up on the list at first. If it shows more than one member, but they are not showing up on the list, then you may indeed have a problem but I really don't see how this could affect it.
Originally posted by furious
but sometimes when i click on the link for a thread on the who's online page i get this error message :
Fatal error: Unable to open showthread.php in Unknown on line 0
This is a problem with your server's PHP. It means for whatever reason it decided to take a break. But seriously, unknown at line 0 isn't anything to do with my hack, and it's nothing that can really be fixed in terms of the scripts.