vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Customize AdminCP via Admin Permissions (https://vborg.vbsupport.ru/showthread.php?t=67046)

House_of_Crazed 07-14-2004 12:06 AM

You have to keep adding to the permissions list, if you desire.

Unless the hack author adds in that file change themselves in the install file.

HoC

Reeve of shinra 07-16-2004 03:04 AM

One more question if you dont mind... if I allow a mod to alter usergroups, are they prevented from adding someone into a mod or admin group?

House_of_Crazed 07-16-2004 03:44 AM

I'm confused.

This is not a mod to alter usergroups.

This is a mod to alter administrator permissions which only Super Administrators can only grant permissions to other Administrators.

HoC

Spydertech 07-29-2004 03:18 AM

Quote:

Originally Posted by Reeve of shinra
One more question if you dont mind... if I allow a mod to alter usergroups, are they prevented from adding someone into a mod or admin group?

No - this hack just further restricts the Admin Permissions you give to people who have access to the AdminCP...

Usergroups as yes will allow whoever has that access Usergroup Manager and actually change the Usergroups themselves - it deosn't give them access to the User page to change a particular Users Usergroup.

To implement what you want, you will want to keep the ModCP and modify it to allow your Mods and SuperMods to make group changes based on criteria you set in the AdminCP - see:
https://vborg.vbsupport.ru/showthread.php?t=62018

But don't give them the UserGroup access in the Administrative permissions..


edit - after actually testing it out, I edited for a better explanation.
Spydertech

SaN-DeeP 08-01-2004 02:58 PM

sorry but i am bit confused on using this hack :S

I want to restrict my Jr. Admins to only access Users Settings and post icons and smileys
can u suggest somthing ?

thnx.

Pickalo 04-17-2005 09:01 AM

~bump.

I just installed this today, and to throw my own little twist on it I edited out a few fields in the admincp/user.php file. Now, the problem is that I want to block out Usergroups because I don't want Supermods to be able to make themselves admins.

I tried blocking out this code:

PHP Code:

    // USERGROUP SECTION
    
print_table_header($vbphrase['usergroup_options']);
    
print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]''usergroup'$user['usergroupid']);
    if (!empty(
$user['membergroupids']))
    {
        
$usergroupids $user['usergroupid'] . (!empty($user['membergroupids']) ? ',' $user['membergroupids'] : '');
        
print_chooser_row($vbphrase['display_usergroup'], 'user[displaygroupid]''usergroup'iif($user['displaygroupid'] == 0, -1$user['displaygroupid']), $vbphrase['default'], 0"WHERE usergroupid IN ($usergroupids)");
    }
    
$tempgroup $user['usergroupid'];
    
$user['usergroupid'] = 0;
    
print_membergroup_row($vbphrase['additional_usergroups'], 'membergroup'0$user);
        
print_yes_no_row($vbphrase['shoutbox_cpuser_banned'], 'user[shoutbanned]'$user['shoutbanned']);
    
print_table_break(''$INNERTABLEWIDTH);
    
$user['usergroupid'] = $tempgroup

But when I do I get a database error. Does anyone have a solution for this?

Pickalo 04-18-2005 03:07 PM

...help anyone, please?


All times are GMT. The time now is 05:34 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.01099 seconds
  • Memory Usage 1,739KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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