vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   keep guests from viewing who's online (https://vborg.vbsupport.ru/showthread.php?t=44991)

pic16f84 10-25-2002 07:16 PM

keep guests from viewing who's online
 
hello m8's..

i have a question, how can i keep guests from viewing the WHO'S ONLINE at the bottom of the forum?
So i want to completely hide it from them, also the WHO WAS ONLINE TODAY would be best to kept only for members...

thanx in advance

Chris M 10-25-2002 07:25 PM

Well...

You could install Logician's " Advanced Templates: Dynamic Templates Changing according to different conditions" hack...

Then open the forumhome template, and find :

Code:

$loggedinusers
Then replace it with:

Code:

[[($bbuserinfo[usergroupid]<0)]] $loggedinusers [[/($bbuserinfo[usergroupid]<0)]]
Then open online.php
Find:
PHP Code:

require('./global.php'); 

Add below:
PHP Code:

if ($bbuserinfo['usergroupid']<0) {
  
show_nopermission();


Satan

NTLDR 10-25-2002 07:31 PM

Quote:

Originally posted by hellsatan
Then open online.php
No need to edit online.php Chris, just set the usergroup permission to so that they can't view the WOL ;)

Chris M 10-25-2002 07:34 PM

I know that...But if you edit online.php, the permission cannot accidentally be reversed;)

Satan

Logician 10-26-2002 08:45 AM

btw. the usergroup id of guests is 1

so if you refer users who is NOT a guest it is:

$bbuserinfo[usergroupid]>1

or if you want to use userid it is:
$bbuserinfo[userid]>0

pic16f84 10-26-2002 11:12 AM

Thanx guys!

I installed it and it is working... only one questions comes to me... How can i tell what $userid is i.e. moderator or user awaiting email conf....??

!!thanx!!

N9ne 10-26-2002 11:15 AM

Go to your adminCP, go to modify usergroups, and hover over the link to edit a usergroup and look at the URl on the status bar and it will give you the id.

pic16f84 10-26-2002 11:34 AM

-->> Most excellent! <<--

thanxzz


All times are GMT. The time now is 11:50 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.02028 seconds
  • Memory Usage 1,724KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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