Version: , by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 11-30-2001
Last Update: Never
Installs: 109
No support by the author.
This hack was requested on vBulletin.com.
It lets you add possible locations to Who's Online, directly from the Admin CP.
This is good if you are using external hacks, that use vBulletin's system. You probably know that users browsing these external files have Unknown Location (or Main Index for non-admin viewers) next to them.
With this hack, you can easily add a new custom location with ease!
It's also designed in a way that won't let you overwrite existing locations. ('dummy protection' as I like to call it )
The locations you add are not stored in their own table, because I really felt that would be waste of space and resource.
Instead, I store the locations in the template table, in one special template dedicated to this data.
It was a lot harder to do it this way, btw.
Please let me know if you find any bugs, or if this script doesn't work with files in child folders (this is my main concern).
This can be easily remove (just undo changes to online.php), so please don't fear to try it out!
A nice screen shot is in my next post.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Erwin, will that also work for pages outside of the vB directory? For example, my forums are at www.antsmarching.org/forum/
However, lets say I want to add www.antsmarching.org/setlists/Viewshow.php to the mix, afer including global.php on viewshow (with the full path), what do I put in the location box in ACP to point to that file and have it work correctly?
I just installed it. It's easy, and works as advertised. Just wish I could make it so that it would read a little more details besides the filename.php.
With the modules.php in phpPortals it would be nice if it could read more of that line to tell what their doing... For example I have the weather hack installed, but if their checking the weather, or reading the FAQ, they still will only display one location.... O'well Not that big of a deal, but would be a nice upgrade.
Sorry - I may just be dumb asking this!! If this has already been answered then please forgive me... :squareeyed:
Basically I'm trying to install this hack on the forums. We are using 2.2.9. We also have PhotoPost and PHPMyChat installed in seperate directories, which we would like to include in the WOL.
My main questions are:
What's the easiest way to make it 'see' the gallery and chat in whosonline? I've added the chat, gallery main index, show photo and show gallery urls in the WOL CP with descriptions but I have not yet managed to get the
require("../forums/global.php");
to work.
I inserted it at the top of the page, after the comment, looking at a page that already 'required' global.php to guess where to put it, and got a 'fatal error'. So.. trial and error being my plan, I moved the 'require' code down immediately below the include code and now when I go to the gallerys a blank page stares back at me. :cry: I can just presume that the require command stops the computer proccessing the code after it in some way? If this is the case... where the flippin' nora do I put it??? :ermm:
Oh and whilst I'm on the case can I just rename index.php and change the .htaccess in the photopost directory to galley.php to avoid the 'confusion' between the two index.phps or will this screw everything up... If you're following this then god bless you cos I'm now confusing myself.... :ermm:
eggz I'm getting that same problem as you, so I moved the require code down to the bottom of the page. Getting a weird error now on the WOL page, it keeps on listing my server ip address....