vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding "Current Staff Browsing" in sidebar (https://vborg.vbsupport.ru/showthread.php?t=195254)

mcyates 11-02-2008 02:01 PM

Adding "Current Staff Browsing" in sidebar
 
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:

Quote:

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.


All times are GMT. The time now is 01:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01408 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete