Update the "Who's Online" viewing location for new PHP files & Hacks
This is simple, and I apologize for it being a pathetic one...but it's useful.
Open up online.php (in your root folder), and search for this code: PHP Code:
PHP Code:
The "DESCRIPTION OF PAGE..." part will be what shows up in the location menu on the "Who's Online" page. Now, to add the final altering to make the whole thing work, find: PHP Code:
PHP Code:
I did it on my boards for "toplist.php" & "attach.php." Their codes were: Code:
case 'toplist': Code:
case 'toplist.php': |
I personally consider this more of a reference than a hack. But hey, it qaulifies. ;)
|
Or you can just install Firefly's "Who's Online Location via Admin CP" hack, and do all this via your Admin CP without needing to hack your online.php each time you have a new file. :)
|
I knew about this but it's a good idea to tell users how to do it.
|
Quote:
|
hand editing something like this is only 2 lines that need not be custminzed, otehr than the name, so fireflys hack is rather good even if you like to have more control.
|
Fireflys hack would never work for me, so ive always done it by hand.
|
Im in agreement with Anime-Loo. For quick and dirty and easy, say if you only have one page or so to add, this is a useful tool. Thanks!
|
This method is great when you need to add different names for different GET strings :)
|
All times are GMT. The time now is 02:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|