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 06: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 07: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 12:07 AM

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

Ghostt 05-11-2014 06:28 PM

no ideas?

kh99 05-12-2014 07: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-12-2014 11:54 PM

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

Ghostt 05-13-2014 11:04 PM

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

Simon Lloyd 05-14-2014 01: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 10:20 PM

thanks. in which file ive to edit?

Simon Lloyd 05-17-2014 03:49 PM

In the plugin not a file.

Ghostt 05-17-2014 03:51 PM

but there are 5 different pluggins.. for this addon

Simon Lloyd 05-18-2014 03:53 AM

Then wrap them all!, how can i possibly comment on which plugin when you:
  1. Haven't said what the mod is
  2. Haven't supplied the plugin code
  3. Haven't told us what the plugins relate to
  4. Haven't told us what you have previously tried and where.

Ghostt 05-18-2014 12:08 PM

i dont gave this points because i think they are not needed to solve the issue

ok ill try thanks.

Simon Lloyd 05-18-2014 12:13 PM

In that case you have the solution - good luck!


All times are GMT. The time now is 05:49 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.01543 seconds
  • Memory Usage 1,733KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (14)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