vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   hide $activeusers from all but admins? (https://vborg.vbsupport.ru/showthread.php?t=66575)

dreamhost 06-26-2004 07:15 PM

hide $activeusers from all but admins?
 
I found the hack for vb2 where I was able to hide the $activeusers in the what's going on box from all but admins, but do not see such a hack for vb 3 series.
Is there such a thing built yet, or could someone please advice on how?

thank you

p.s.
We tried editing the permissions in vb as it seemed to be built in, but that had no effect.

Andreas 06-26-2004 07:43 PM

In Template FORUMHOME

FIND
Code:

<if condition="$show['loggedinusers']">
REPLACE that with
Code:

<if condition="$show['loggedinusers'] and ($permissions['wolpermissions'] & CANWHOSONLINE)">
Instead of editing the template you can also make a file edit and don't touch the template (this way you might also save processing-time):

In File index.php FIND
PHP Code:

if ($vboptions['displayloggedin']) 

REPLACE that with
PHP Code:

if ($vboptions['displayloggedin'] and ($permissions['wolpermissions'] & CANWHOSONLINE)) 

Now only users that are members of usergroups which are allowed to View Who's online can see this.

dreamhost 06-26-2004 08:40 PM

I have 2 boxes displayed
1 is the standard currently active users, and the other is who was online today
I am trying to hide the currently active users and only display the who was online today part. It's to much to show both systems to all members.

When I applied this code, it effected both systems.
Is it possible to only hide the currently active users and still display who was online today?
thnx

Andreas 06-26-2004 08:52 PM

Hmm, I don't have a "Who was online today" box, so I guess it's a hack?
Then it depends on the Hack's code/template where you have to put the additional condition.


All times are GMT. The time now is 05:17 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.00939 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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