vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Invisible users by usergroup (https://vborg.vbsupport.ru/showthread.php?t=42193)

Night Owl 08-12-2002 07:29 AM

Invisible users by usergroup
 
Would it be possible to make a hack which would enable admins to turn off the invisible user feature for some usergroups and on for others? For example, I want my "newbie" group to not have access to the invisible user feature. But I want my "veteran" usergroup members to have the option to be invisible in the who's online.

Thoughts?

Zzed 08-12-2002 10:46 PM

Sorry :( I misread your post. :(

Logician 08-22-2002 08:54 AM

Edit member.php, find:

PHP Code:

  $invisible=iif($invisible=="yes",1,0); 

After that add:

PHP Code:

if ($bbuserinfo[usergroupid]==X) {$invisible=0;} 

Replace X with the usergroupid of newbie group..

I assume that your newbie group is the group members are put into when they first register and if so dont forget to edit registration template and remove the HTML code of visibility choice (so that they cant choose to be invisible when they first register).

This hack will apply whey your members try to be invisible through edit options section but will not make visible existing invis. members. To do that you need to run a SQL query in your db..

Night Owl 08-22-2002 03:43 PM

Thank you very much!!! :)

Just a couple of questions: What is the proper format for making more than one usergroup incapable of being invisible? And can you show me what the sql query should look like?

Again, thank you sooo much for your time! :):):)

Logician 08-22-2002 04:11 PM

PHP Code:

if ($bbuserinfo[usergroupid]==OR $bbuserinfo[usergroupid]==OR $bbuserinfo[usergroupid]==Z) {$invisible=0;} 

Replace X, Y, Z with usergroupids

SQL query is:

UPDATE user SET invisible=0 WHERE usergroupid=X

Replace X with usergroupid of your newbie group and run this query more than once for every other usergroup you want to force to be visible..

and yw.. :)

Night Owl 08-22-2002 08:57 PM

Thank you very much!!! :):):)


All times are GMT. The time now is 08:42 AM.

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.01755 seconds
  • Memory Usage 1,721KB
  • 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
  • (3)bbcode_php_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