![]() |
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. |
Top part is the Admin CP, bottom is Who's Online.
|
Hmmm, trying it out, but I get a 404 when I submit a change ...
since the admin_online.php is in the admin folder, should this: Code:
<form action="online.php" name="name" method="post"> Code:
<form action="../online.php" name="name" method="post"> |
Sorry, that's my bad.
Download admin_online.php again and upload to your server. I changed the file name in the last minute and forgot to update the <form> tags. |
Hmmm ... still says "online.php" in the form FF :(
|
Thanks for seeing it Chen....
Going to install for testing.... |
Sounds great, going 2 install it 2
Thanks Firefly |
Edit remove isn't working for me. Anyone tried to edit or remove?
Changed: makelinkcode("edit"," online.php?s=$session[sessionhash]&action=edit&locnum=$locnum"). makelinkcode("remove",".online.php?s=$session[sessionhash]&action=remove&locnum=$locnum"). paths to reflect where the online.php exists makelinkcode("edit","../online.php?s=$session[sessionhash]&action=edit&locnum=$locnum"). makelinkcode("remove","../online.php?s=$session[sessionhash]&action=remove&locnum=$locnum"). Problems still with edit remove as mentioned by Crinos. Added a total of 3 links. Last was lastposts.php for the Filename and Viewing Last 10 Posts! for the Description. ......Will wait now. |
Ok, download admin_online.php once again and upload to your server.
Sorry again for all of this. You see, originally the filename was just online.php, but to keep you from confusing it with the regular online.php (in the forums folder), I renamed it. |
No apologies necessary. That's why we're in the beta room :D . Appreciate the work.
I am still getting 404's. The edit and remove still don't work. At least on this end. Anyone else testing this please post what you get. |
All times are GMT. The time now is 06:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|