View Full Version : Adding "Current Staff Browsing" in sidebar
mcyates
11-02-2008, 02:01 PM
How can this be done
http://forums.site5.com/index.php
If you look at the site above, you will see it has a block with "staff browsing". Is this easy to add to the sidebar that I have, which is show on every page? I use the Ultimate Sidebar Column hack.
Thanks in advance
mcyates
12-30-2008, 09:30 AM
Bump :D!!!!
Lynne
12-30-2008, 02:51 PM
I would guess you can just use the query for getting the users browsing and then add in an addition where clause that only gets the users in certain (staff) usergroups (5,6, and 7?).
mcyates
12-31-2008, 07:03 AM
I asked site5 but they have said the person who created this modification is not on their site anymore. But he also told me this:
It is a forumhome_complete (hook location) plug-in. Then it looks up the user.usergroupid to see what to do.
Hope that helps . . . happy coding undefined
I'm useless with working out how these hooks work, i just don't have time to learn so I rely heavily on other people to help me out.
See the quote above, i wouldn't know what to do with it.
Thanks a lot if you can help me with this :D
Lynne
12-31-2008, 04:08 PM
The code to define who is on the site is in the index.php page around line 429 where it says "// ### LOGGED IN USERS #######" down to where it says "// ### MAX LOGGEDIN USERS #######" You want to use that query ($forumusers) and then add in a where statement - user.usergroupid IN ('x','y','z') . I'm sure you can get rid of the stuff regarding the Guests since the query should only result in Staff members. But, I'd try that out on a test page with the whole code and then get rid of the stuff you don't think you need afterward.
mcyates
12-31-2008, 04:12 PM
I contacted the admin of site5 and he gave me this code.
Might release it on here. Thanks for your help, i'll post the link in here if i'm allowed to release it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.