Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
[final]Lesser Admin Cp... Details »»
[final]Lesser Admin Cp...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 07-25-2002 Last Update: Never Installs: 128
 
No support by the author.

Please do the following before attempting to install:

1.) Backup your Files before doing anything
2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files, I cannot condone your install of this hack...
3.) If you want to Backup your Database, You can - There shouldn't be any need to...

The file(s) you should have is/are:

install_lesseradmincp_txt.php
install_lesseradmincp_usergroups_txt.php

Install Info:
Hack Version: 1.4
Files to edit: 4
Templates to add: 0
Templates to edit: 0
Queries to Run: 1
Time to install: Approx 5 Minutes

Credits
Requested by - Nobody

Support - I am offering support, but only in THIS THREAD...I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread

Hack info

What does it do? - This basically will allow you to make a Lesser Control Panel for your other Admins...I know I released the "Total Admin Security" hack (link in my profile), but this will allow you to ensure that they cant delete your templates, especially if you put them in a seperate usergroup...

I know you will want a screenshot, so here is a screenshot of my Co-Admin Control Panel...The second Screenshot is of the Co-Admin Permissions...The third is of the Usergroup gone from edit user and add user...The fourth is of the Usergroup gone from search options, and the fifth is from search display options...

Live Demo/Screenshots

Co-Admin Control Panel
Co-Admin Permissions
The name "Co-Admin" is what I determine as "Lesser Admin" - The picture may differ slightly from the screenshot
Usergroup options gone from Edit user & add user
Usergroup no longer a Find option
Usergroup no longer able to be display in searches

[high]Latest Version[/high]

You can download Version 1.4 (normal) here...
You can download Version 1.4 (usergroup version) here...

Enjoy!

Satan

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 09-06-2002, 06:59 PM
adalberto adalberto is offline
 
Join Date: Aug 2002
Location: Italy
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hallo.

I'am New admin for vbulletin and my english is not very good

I have a question, where I copy this line ??

Quote:
-------DO NOT COPY THIS LINE-------

Copy this last step out as many times for as many admins as you need to protect from being deleted. To prevent them deleting other users in their usergroup, enter :

-------DO NOT COPY THIS LINE-------

if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
---------------
Please to explain better this modify:
Quote:
(NB : remember change X to the usergroupid of the Admin2 User)
----------------
Last question, for unistal this hack, this query, as I modify it:

Quote:
ALTER TABLE `usergroup` ADD `canaccesscoadmin` SMALLINT(6) DEFAULT '0' NOT NULL
Thank's, Adalberto
Reply With Quote
  #73  
Old 09-06-2002, 09:08 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@adalberto...

If I understand correctly, you want to know how to :
  • Copying the line
  • Understand what I meant with the instructions
  • Know how to Uninstall this hack

Right - Well I'll try

1.) Copying the line :

You can copy that line under this one :
PHP Code:
// ###################### Start Kill #######################

if ($HTTP_POST_VARS['action']=="kill") { 
You can copy it out as many times as you need...

2.) Understand what I meant with the instructions :

I meant that you will have to change the letter "X" that is in the code to copy, to the usergroupid of the group you want to protect...

Here is a list of the ones you might want to know :
(The Numbers in Bold are the usergroupid)
2 - Registered User
5 - Super Moderator
6 - Administrator
7 - Moderator

3.) Know how to Uninstall this hack :

To Uninstall, simply reverse the changes made, and run this query :

[sql]ALTER TABLE `usergroup` DROP `canaccesscoadmin`[/sql]

Satan
Reply With Quote
  #74  
Old 09-08-2002, 05:18 PM
adalberto adalberto is offline
 
Join Date: Aug 2002
Location: Italy
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan

If I understand correctly, you want to know how to :
Yes is correctly.

But in admin pannel, I when find, modify or add user result this error:
Parse error: parse error in /httpdocs/admin/user.php on line 308


Thank's Adalberto
Reply With Quote
  #75  
Old 09-08-2002, 05:23 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you made sure that you have changed the "X" in the code below?

PHP Code:
if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot delete this Admin.</p>";
cpfooter();
exit;

Satan
Reply With Quote
  #76  
Old 09-08-2002, 06:09 PM
adalberto adalberto is offline
 
Join Date: Aug 2002
Location: Italy
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
Have you made sure that you have changed the "X" in the code below?
Yes...

mmm... sorry, but this X is 6 ??
Reply With Quote
  #77  
Old 09-08-2002, 06:21 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

6 is usually the usergroupid of Administrators...

Therefore you will need to change this :

PHP Code:
if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot delete this Admin.</p>";
cpfooter();
exit;

to
PHP Code:
if (($usergroupid==6) and ($bbuserinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot delete this Admin.</p>";
cpfooter();
exit;

Satan
Reply With Quote
  #78  
Old 09-08-2002, 06:30 PM
adalberto adalberto is offline
 
Join Date: Aug 2002
Location: Italy
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
[B]6 is usually the usergroupid of Administrators...

Mmm... I had already change, but this error remains :bored:

Sorry, this number where I find??
Reply With Quote
  #79  
Old 09-08-2002, 06:40 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Goto your Admin Control Panel...

Scroll down until you find under "Usergroups", the Modify link...

Click it...

Hover over the group you want to protect, and look in the bottom left corner...There should be a link...

The number on the end of the link is the usergroupid...

If that does not work, post the lines that the error is occuring on...

Satan
Reply With Quote
  #80  
Old 09-08-2002, 07:10 PM
adalberto adalberto is offline
 
Join Date: Aug 2002
Location: Italy
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The usergroupid is exact 6

The error line is this:

if ($userid==42) and ($bbuserinfo[userid]!=42) {

42 is amministrator number.

Mmmm... I forgot, have a 2.2.7 vBulletin version :bored:
Reply With Quote
  #81  
Old 09-08-2002, 07:55 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need 2 sets of brackets

It should be :

PHP Code:
if (($userid==42) and ($bbuserinfo[userid]!=42)) { 
Satan
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:58 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.12821 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete