vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Restrict Usergroup Changing in the CP to only certain users (https://vborg.vbsupport.ru/showthread.php?t=53092)

Robert9 05-18-2003 06:08 PM

Restrict Usergroup Changing in the CP to only certain users
 
How do I make it so that in my Admin CP when you edit a user, only certain people are allowed to change the usergroup of the user?

Or what it be possible to hide the settings for it based on the userid's that are allowed?

Xenon 05-18-2003 06:28 PM

why make them admins whe you don't trust em?

that's the first mistake you can do...

if you just want them to edit users and just special usergroups, not all you can use my mods can edit users hack

Robert9 05-18-2003 07:01 PM

I trust my admins, this is for security reasons, and so that they can't move everybody around.

Instead of this in the user.php in the admin folder:

PHP Code:

makeinputcode("User Group","usergroupid","usergroup",$user[usergroupid]); 

I currently have this:
PHP Code:

      if ($bbuserinfo[userid]!=&& $bbuserinfo[userid]!=4)
      {
      
makeinputcode("User Group","usergroupid","usergroup",$user[usergroupid]);
      } 

But it doesnt show up for the specified users.... how do i get it to work?

Robert9 05-18-2003 07:05 PM

Quote:

Today at 08:28 PM Xenon said this in Post #2
why make them admins whe you don't trust em?

that's the first mistake you can do...

if you just want them to edit users and just special usergroups, not all you can use my mods can edit users hack

Ok... On second thought, how do i restrict the other admins from putting more admins into the usergroup?

Robert9 05-18-2003 07:49 PM

I got it to restrict it... How do i make it so that the admin groups are removed from the list?


All times are GMT. The time now is 08:27 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.01027 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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