vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ADmin plugin premission (https://vborg.vbsupport.ru/showthread.php?t=311176)

Ghostt 05-08-2014 07:43 PM

ADmin plugin premission
 
How can i disable permission for admins for the custom plugin settings ?

also how can i set up the moderation log so only certain admin can check the moderation from other administrators?

kh99 05-08-2014 08:51 PM

If you're talking about access to the Plugins & Products menu, then the permission is "Can Administer Plugins" under Usergroups > Administrator Permissions.

You can also give access to the moderator log in the same place, but as far as I know it's just a yes/no setting, so I don't believe there's any way to allow users to see only certain groups.

Ghostt 05-09-2014 01:07 AM

no im talking about 2 custom plugin setting menu in the acp .

Ghostt 05-11-2014 07:28 PM

no ideas?

kh99 05-12-2014 08:54 AM

So you're saying that a custom plugin or product has added settings, and you want to limit who has access to them? I don't believe there's any way to do that unless it's supported by the product.

Simon Lloyd 05-13-2014 12:54 AM

you could add a userid check to the plugin or to the bitfield xml for it.

Ghostt 05-14-2014 12:04 AM

im not php expert .can you show me how? thank you

Simon Lloyd 05-14-2014 02:22 AM

Well as i cant see your plugin or xml...etc you need to wrap the plugin like this
PHP Code:

if (in_array($vbulletin->userinfo['userid'], array(2,8))){
ALL THE REST OF THE PLUGIN
}else{
print_no_permissiion();


you can change the 2 & 8 for whichever userid's you wish to have access or extend it by adding id's seperated by a comma like this: 2,8,10,2032 ....etc

Ghostt 05-16-2014 11:20 PM

thanks. in which file ive to edit?

Simon Lloyd 05-17-2014 04:49 PM

In the plugin not a file.


All times are GMT. The time now is 10:07 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.01002 seconds
  • Memory Usage 1,725KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete