Version: 1.00, by KuraFire
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 01-08-2003
Last Update: Never
Installs: 28
No support by the author.
HACK: [HowTo] Categorize Who's Online on Forumhome
BY: KuraFire [www.kurafire.com]
REQUESTED BY: Xiphoid [www.creations.nl]
DESCRIPTION: Divide the active users bit on Forumhome into a Staff: section and Members: section
DIFFICULTY: Easy
INSTALL-TIME: 5 minutes
Xiphoid asked for a categorization on forumhome (Staff / Members) for vB 3, but since it's such an easy thing I decided not to wait for vB 3 but just make the hack myself
Warning / note: The || and && operators in original vB code I put in the instructions here that you need to search on MIGHT BE "or" and "and" in your version. Keep that in mind if you can't find the code!
Note: I wrote this on my own board which is currently still version 2.2.5, it might well work on any version above that but that is not yet tested or confirmed! (nor for versions below)
INSTRUCTIONS ARE IN THE ATTACHMENT
If something did not work right, you did not follow the instructions properly
Enjoy!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Also, if a staff member is online and invisible, will the staff tag still show up on the line and be blank or will it not show up to regular members? If I am the only staff member online and in Ghost mode, I really don't want the Staff: to show up, if possible. That would pretty well give it away that there is a staff member online but invisible.
Do we need to put a comma back in the line above it or anything?
Nope, thanks for pointing that out!
The comma's between usernames are added with the implode() function that I call at the end of the hack part. You should not have any comma's (string-comma's, not code-related ones) in your code anymore....
Quote:
Also, if a staff member is online and invisible, will the staff tag still show up on the line and be blank or will it not show up to regular members? If I am the only staff member online and in Ghost mode, I really don't want the Staff: to show up, if possible. That would pretty well give it away that there is a staff member online but invisible.
I do believe that it won't appear unless there is at least 1 VISIBLE member in that section (staff or members). I looked at the code and it should work that way, if it doesn't, let me know okay?
Quote:
Is it possible to adapt this for the WOL page proper?
You mean sort the display of Who's Online (online.php) into a Staff and Members (and Guests?) section as well?
That's possible but that can't be done with this hack, I'd have to write a whole different kind of hack for that. The WOL page works quite a bit differently, more complex and all.....
Thanks for the quick response. It's hard to tell if the Staff shows up since I will see it as the Admin even for invisible staff. I'll check with someone on line at the time and see if they can see it. I'll let you know what I find out.