Update the "Who's Online" viewing location for new PHP files & Hacks
by
25 Nov 2002
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:
case 'edit':
PHP Code:
case 'TITLEOFPAGE':
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:
case 'register.php':
PHP Code:
case 'NAMEOFPHPFILE':
I did it on my boards for "toplist.php" & "attach.php." Their codes were: Code:
case 'toplist': $userinfo[where] = "Forum Top Sites"; break; case 'attach': $userinfo[where] = "Attachment Listings"; break; Code:
case 'toplist.php': $userinfo[activity] = 'toplist'; break; case 'attach.php': $userinfo[activity] = 'attach'; break; |