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-09-2004 10:00 PM

Customize AdminCP via Admin Permissions
 
// Make AdminCP Stricter
// Made by House of Crazed on 7/10/04
// Released on vbulletin.org
// First modification released here on vB.org

-- Information --

I originally made this modification to my admincp to further lock down my admincp to any of my supermod / admin / mods. It was easier to me to do this instead of having to modify two different CP's. Then I decided "Release on vB.org, never know if someone else is looking for the same thing." I hope that this will be helpful to some people.

Support will be given as best as I can help.

HoC

Marshalus 07-10-2004 09:33 PM

Mind providing a screenshot, or explaining exactly what the hack does, like what additional features?

House_of_Crazed 07-10-2004 10:12 PM

Sure :)

Hope that the picture will help you :)

I made two arrows. One at where the default permissions ends, and the second at where the extra permissions are at.

HoC

alkatraz 07-11-2004 01:04 AM

thx!

Ryan Ashbrook 07-11-2004 01:19 AM

Nice I was looking for something like this. :)

Koutaru 07-11-2004 03:27 AM

Wow! I was definately looking for this ;) Thanks!

Reeve of shinra 07-11-2004 05:00 AM

Very much needed if this does what I think it can. Can it be set on a usergroup basis?

Oblivion Knight 07-11-2004 08:12 AM

Awesome, thanks for sharing.! I could definately use this..

House_of_Crazed 07-11-2004 08:49 AM

Ryan / Koutaru - You're welcome :) I merely did this for myself, and thought "What if someone else needs it?? Release it on vb.org" so I did.

Reeve - it probably is possible :) I didn't study the files that far. But I think the method I used is easier because you can set up different groups with specific links. For example, you'll see in my screenshot, that I have two different lines for "Users". I split the group for User into two groups because in my opinion, the supermods don't need access to some functions within the user group.

But if I recall my studies, you probably can do that but with more extensive hacking which is out of my expertise. :( However, I do intend on studying it much more further :)

HoC

DeMiNe0 07-13-2004 08:23 PM

do you need to keep adding to the permissions list as new hacks that use the admin cp are released? Or do they get added automaticly?

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 12:27 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.01215 seconds
  • Memory Usage 1,763KB
  • 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
  • (17)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