vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Prevent supermoderators going into ModCP... (https://vborg.vbsupport.ru/showthread.php?t=247124)

JMEWLS` 07-23-2010 07:25 AM

Prevent supermoderators going into ModCP...
 
There's a control that prevents them from going into the administrator control panel but not the moderators? Basically, I don't want supermods to be able to edit profiles? It's not under user groups.

JMEWLS` 07-24-2010 09:15 AM

anyone?

borbole 07-24-2010 10:57 AM

Quote:

Originally Posted by JMEWLS` (Post 2073251)
There's a control that prevents them from going into the administrator control panel but not the moderators? Basically, I don't want supermods to be able to edit profiles? It's not under user groups.

Try this. Go to your Acp->Plugins & Products->Add New Plugin. For Hook Location choose mod_global. For Title enter whatever you want. Whereas for Plugin PHP Code enter this:

PHP Code:

if ($vbulletin->userinfo['usergroupid'] == && $_REQUEST['do'] == 'viewuser' OR $_REQUEST['do'] == 'editsig' OR $_REQUEST['do'] == 'profilepic' OR $_REQUEST['do'] == 'avatar')
       {
        
print_stop_message('no_permission');
       } 

This will prevent the supermoderators from editing users profiles. If your supermoderators have a custom gid then enter that instead of 5 when checking for usergroupid. Hope it helps.

borbole 07-28-2010 02:08 PM

Hi JMEWLS`. I am just following up, did the above suggestion work for you?

Lynne 07-28-2010 02:44 PM

You can't edit profiles from the modcp. The only user items you can edit from the modcp (if you have permission) is the signature, avatar, and profile picture. You may View the profile, but if you notice, there is no Save button there.


All times are GMT. The time now is 09:01 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.01066 seconds
  • Memory Usage 1,720KB
  • 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_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