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.
I haven't found any problems. Added several outside pages and everything seems to be doing super. I've even managed to pull in a news script that ends up using various files and it works super. Ready for release as far as I can see. Thank you for the super hack.
[QUOTE]Originally posted by FireFly The major advantage is using the sessions vBulletin provides.
Other than that, checking for permission becomes easier, and also templates. You can use templates with that.
I couldn't get it to work that way either JJR. It works properly without including the sessionhash as far as I can see. The only thing I did different is I added the sessionhash to all of my links in the forum. So SiteNews.php has a link with the sessionhash included. In other words I didn't add the sessionhash to the link in the hack, I added the sessionhash to the link in the forums that takes you to that page.
My global.php (I assume this is the one in the root directory, not the ./admin/ directory) is untouched (never edited it), and my external files are in the very same directory. I keep all my external pages that extract data from my vB-database in the same directory, cos yes that's a lot easier for everything.
Anyway, no, I doubt it's a path error. The two lines (85 and 88) in my global.php are:
if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] ==
$HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);
(with the second line as 85, and the last line as 88)
Maybe I ought to try this online instead of on my own computer (set up as apache+php+mysql) - that might be it?
[QUOTE]Originally posted by KuraFire My global.php (I assume this is the one in the root directory, not the ./admin/ directory) is untouched (never edited it), and my external files are in the very same directory. I keep all my external pages that extract data from my vB-database in the same directory, cos yes that's a lot easier for everything.
Anyway, no, I doubt it's a path error. The two lines (85 and 88) in my global.php are:
if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] ==
$HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);
(with the second line as 85, and the last line as 88)
Maybe I ought to try this online instead of on my own computer (set up as apache+php+mysql) - that might be it?