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

Reply
 
Thread Tools
Restrict Access to Your Profile from other Admins... Details »»
Restrict Access to Your Profile from other Admins...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-12-2002 Last Update: Never Installs: 15
 
No support by the author.

Quote:
Thanks to nicksaunders for help with this...

If you need any help with problems you may experience, please contact :

hellsatan


In User.php (Admin Folder)


Add :
------

Quote:
if (($userid == "aa") && ($bbuserinfo[userid] == "bb" OR $bbuserinfo[userid] == "cc")) {
show_nopermission();
}

After :
-------

Quote:
return 1;

}

cpheader();

Key :
------

aa = your userid number
bb = another admins userid
cc = another admins userid

-------

This basically restricts the other admins from being able to view your profile, meaning that they cannot edit it at all...
(Version 1.0 is still available...)

Update : Version 2.0!!!

Well...I never thought there could be an update to this, but there is, so there...

Here is the new php code to insert into "admin/user.php", in the same place as before...

Click here for the new attachment...

This time, replace any instances of "aa" with your userid, and "bb" with anyone else you would like to be able to access your profile...

This makes it easier, as you need not add all the userid's of people you DONT want to view your profile, just the userid's of the people you DO want to be able to view your profile...

Satan

P.S. - The Attachment below is Version 1.0...

Show Your Support

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

Comments
  #2  
Old 04-13-2002, 07:48 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

TestAdmin1 is the account I added to test if they could access my profile...

They get the message below...

Satan
Reply With Quote
  #3  
Old 04-13-2002, 07:50 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

This picture is when I access the Admin Cp, looking for my profile...

Satan
Reply With Quote
  #4  
Old 04-14-2002, 11:38 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why not try
PHP Code:
if(($userid "aa") && ($userid != $bbuserinfo[userid] || $bbuserinfo[userid] == "bb")) {
  echo 
"<p>You cannot edit this admins profile</p>";
  
cpfooter();
  exit;

just changed it to allow the userid to edit their own profile and so the error message looks more admin panel-ish.
Reply With Quote
  #5  
Old 04-14-2002, 02: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

Cool...

Thanks PPN...

Looks alot better now...

Satan
Reply With Quote
  #6  
Old 04-15-2002, 12:00 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

Coming Soon...

I am going to be updating this Hack very soon, and with it I am going to include a re-direct to the Find Users page, and, if my friend helps me, a password-override function incase anyone edits the admin/user.php file and makes it so you cannot access their profile, or worse yet, your own...

Satan
Reply With Quote
  #7  
Old 04-26-2002, 12:51 AM
Alan Ang Alan Ang is offline
 
Join Date: Apr 2002
Location: Singapore
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi PPN,

i tried to use your hack, but i realised that my aa cannot access to other user's profile except his own?

Quote:
Originally posted by PPN
why not try
PHP Code:
if(($userid "aa") && ($userid != $bbuserinfo[userid] || $bbuserinfo[userid] == "bb")) {
  echo 
"<p>You cannot edit this admins profile</p>";
  
cpfooter();
  exit;

just changed it to allow the userid to edit their own profile and so the error message looks more admin panel-ish.
Reply With Quote
  #8  
Old 04-26-2002, 01:08 AM
Alan Ang Alan Ang is offline
 
Join Date: Apr 2002
Location: Singapore
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway, i tried to use this instead and it works well...

Quote:
if (($userid == "aa") && ($bbuserinfo[userid] == "bb" OR $bbuserinfo[userid] == "bb")) {
echo "<p>You cannot edit this admins profile</p>";
cpfooter();
exit;

}
but one problem though... i realised that the other admin can still access to the usergroup and he can modify the admin user group to disable the administrator from accessing the CP.

is there anyway to restrict other admins from accessing or editing the "Adminstrative Permissions" panel?
Reply With Quote
  #9  
Old 04-26-2002, 01:21 AM
Alan Ang Alan Ang is offline
 
Join Date: Apr 2002
Location: Singapore
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hellsatan,

can we something similar to restrict a certain user group (eg, super moderator with CP access) from viewing and editing the admin usergroup?

Reply With Quote
  #10  
Old 04-26-2002, 01:23 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
if ($userid==&& $bbuserinfo[userid]!=1) {
  echo 
"<p>You cannot edit the main admins profile</p>";
  
cpfooter();
  exit;

this works perfect for me.
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 07:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04702 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_php
  • (5)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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