View Full Version : [final]Lesser Admin Cp...
Chris M
07-25-2002, 10:00 PM
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 (http://www.darkblazes.com/vbhacks/lessercp/coadmincp.jpg)
Co-Admin Permissions (http://www.darkblazes.com/vbhacks/lessercp/coadmin.jpg)
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 (http://www.darkblazes.com/vbhacks/lessercp/nousergroup.jpg)
Usergroup no longer a Find option (http://www.darkblazes.com/vbhacks/lessercp/findscreen.jpg)
Usergroup no longer able to be display in searches (http://www.darkblazes.com/vbhacks/lessercp/displayscreen.jpg)
Latest Version
You can download Version 1.4 (normal) here (https://vborg.vbsupport.ru/attachment.php?s=&postid=389492)...
You can download Version 1.4 (usergroup version) here (https://vborg.vbsupport.ru/attachment.php?s=&postid=389493)...
Enjoy!:)
Satan
Link14716
07-26-2002, 06:26 PM
I'll proably install this. Thanks ;)
NTLDR
07-26-2002, 08:14 PM
Looks good hellsatan ;)
I don't currently have any use for it as I'm the only admin but I'm sure many will benifit from it.
Chris M
07-26-2002, 08:23 PM
Uhuh...
I am the Only Admin at my boards also...I made it really, so that my Super Mods, who I call Co-Admins, can perform some of the Admin Functions, so I dont have to...
There are of course limitations to their power;) I made it so that I dont have anyone else who might be able to access the real Admin CP and do damage...
Satan
Thewnagchung
07-26-2002, 09:05 PM
First off GREAT HACK!!
but before i install it i have a couple of questions.
could i make it were my mega mods(super mods) can access it? and can you also add a temp ban, and unban function?
edit: NM about letting them access it, i figured that out, but can you add the ban/unban function?
Chris M
07-26-2002, 09:31 PM
Yes...
You will need to make sure that you only give them the url, as any Mod can access it at this time...I am trying to sort that out...
Whatever hacks you can do to the Admin CP, you can do to this one too...
If you want to ensure that only your mega-mods can access it, enter this in the top of every php file, under :
require("./global.php");
You can enter :
if (($bbuserinfo[usergroupid]!=X) and ($bbuserinfo[usergroupid]!=Y)) {
echo "<p>You cannot perform this function.</p>";
cpfooter();
exit;
}
(Change X and Y to the Ids of your MegaMod group, and your Admin group)
So yes...In answer to your question, yes you can
Satan
Thewnagchung
07-26-2002, 09:34 PM
Originally posted by hellsatan
Yes...
You will need to make sure that you only give them the url, as any Mod can access it at this time...I am trying to sort that out...
Whatever hacks you can do to the Admin CP, you can do to this one too...
If you want to ensure that only your mega-mods can access it, enter this in the top of every php file, under :
require("./global.php");
You can enter :
if (($bbuserinfo[usergroupid]!=X) and ($bbuserinfo[usergroupid]!=Y)) {
echo "<p>You cannot perform this function.</p>";
cpfooter();
exit;
}
(Change X and Y to the Ids of your MegaMod group, and your Admin group)
So yes...In answer to your question, yes you can
Satan
Thanks!
ione more question
how would i add a ban function that worked like this.
instead of having a set timer for a ban, the mega mod would ban the user, and if that user has been a pain leave him banned under that user name for good. BUT if he just wants it to be a temp ban, he can just un-ban him at a later date.
Xenon
07-26-2002, 09:54 PM
Originally posted by hellsatan
Yes...
You will need to make sure that you only give them the url, as any Mod can access it at this time...I am trying to sort that out...
Your hack is better than you mean ;)
you check for usergrouppermission: ismoderator which actually means the usergroup is a supermod group.
so just every supermod can acces to that panel ;)
if you think that are to much users, you have to add another field to usergroup table canaccesscoadmin...
then change all ismoderator to canaccesscoadmin
Chris M
07-26-2002, 10:24 PM
Erm...
@Thewnagchung - That is an issue for the creator of the Temp Ban hack...I cannot help you there im sorry...:(
@Xenon - It does? I thought it meant any moderator...
Silly me!
I might do what you suggested, so I can have Super Mods too;)
Satan
Chris M
07-26-2002, 10:57 PM
Ok...Ive updated the first post...
Satan
Xenon
07-26-2002, 11:00 PM
you get better and better :)
good work satan
Thewnagchung
07-26-2002, 11:13 PM
im getting this error once im done installing it o.O
Parse error: parse error, unexpected T_LOGICAL_AND in /home/videogam/public_html/forum/Admin2/user.php on line 299
Thewnagchung
07-27-2002, 12:13 AM
if ($userid==X) and ($bbuserinfo[userid]!=X) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
what values do I put in for X ?
forgive me but im a n00b at this
Xenon
07-27-2002, 12:26 AM
X is your userid ;)
normally its 1
Thewnagchung
07-27-2002, 01:09 AM
I got it to work for the most part, but I have a question.
if you give them the power to make users, cant they just make an admin account and thus forth wreak havoc anyway?
Chris M
07-27-2002, 08:52 AM
Yes...That is why It is not finished;)
I am working on the Usergroup issue now:)
Satan
Chris M
07-27-2002, 09:25 AM
I have updated the hack...It is in the first post...
This attached file is version 1.1 for those of you who never got it...
Satan
Marshalus
07-29-2002, 07:47 PM
Great hack!
/me clicks install
Chris M
07-29-2002, 07:57 PM
Thanks:)
Satan
Velocd
07-30-2002, 03:28 AM
Nice hack Satan
*clicks install*
Night Owl
07-30-2002, 05:43 AM
I followed the instructions and got a blank screen when I went to admin2/index.php. What could I have done wrong?
Chris M
07-30-2002, 08:47 AM
It could be one of 2 things...
1.) You did not setup the global.php file correctly for the Admin2 directory, therefore not allowing the other files to work (as they require it)...Make sure you followed the instructions carefully:)
2.) Sometimes, and I know this is true, some files dont like being uploaded in Ascii Mode...On my server, I have to upload all vBulletin files in BINARY mode, so that they will work...Make sure you are uploading in the BINARY mode...If you are not sure which mode you are uploading in, try downloading SmartFTP (http://www.smartftp.com/), which has the option for Ascii and Binary modes when uploading...It will be on the top Quick Toolbar, and by default is Auto...Change it to Binary or Ascii, and upload...If that mode does not work, try the other...
Thats all I can suggest thats wrong...If it still does not work, email your new global.php file to me at : hellsatan@darkblazes.com
Satan
Night Owl
07-30-2002, 04:17 PM
I am confused. I made the changes in step 6. This file goes into the admin2 folder, right?
Also step 10 says to "edit the /admin/global.php (to full Admin CP version)." What does that mean?
Night Owl
07-30-2002, 04:34 PM
OK, I uploaded the edited global.php to the admin2 folder in binary mode. I can now get to the loggin screen. However, when I try to log in, either with my co-admin name or my admin name, I cannot get in. I tried uploading the other files in binary mode, but that didn't help.
Night Owl
07-30-2002, 04:56 PM
Nevermind, I figured it out. LOL I didn't have the usergroup set to allow access to the lesser admin cp. LOLOL
However, I am having another problem.
Here is the error:
Database error in vBulletin Control Panel 2.2.6:
Invalid SQL: SELECT cancontrolpanel FROM usergroup WHERE usergroupid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
I was attempting to change the title of an admin, to see if I could do it through the admin2 cp. This also happens when I try to edit any member.
Chris M
07-30-2002, 06:20 PM
Ah yes...
I found a bug...
If you using Version 1.2 of the hack, do the following :
Find in /admin2/user.php :
// check that not removing last admin
$countadmin=$DB_site->query_first("SELECT COUNT(*) AS users FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND usergroup.cancontrolpanel=1 AND user.userid<>$userid");
$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM usergroup WHERE usergroupid=$usergroupid");
if ($countadmin[users]==0 and $getperms[cancontrolpanel]!=1) {
echo "<p>You are about to edit the last user with control panel access so that they do not have control panel access. This would lock you out of the control panel, so you cannot proceed.</p></body></html>";
exit;
}
and remove it completely!
Only do it if you are using Version 1.2 - The bug will not occur in Version 1.1, because you can still update usergroups - Anyone who does not want a Security leak, should upgrade to Version 1.2...
Why is there a bug? Im not totally sure, but I think it is because that php statement above, is looking for the updating of Usergroups, and in Version 1.2, the usergroup updating options have been deleted...Therefore it is looking for something it Cannot find...It seems logical enough...I tested it myself at my co-admin panel, and all seems fine...
Reasons why not to do it with Version 1.1? - Well...For starters, you can still update Usergroups...So...If you delete that, and accidentally change your OWN usergroup, then you may be in trouble...
That should solve your problem...I have updated the first post:)
Satan
Night Owl
07-30-2002, 06:41 PM
It is working now. But it is allowing lesser admins to change the email and password of admins. Is it supposed to do that?
Chris M
07-30-2002, 06:46 PM
Well...
If you had implemented the Total Admin Security Hack, which was included in it, they wouldnt be able to Delete or update you...That way making Admin Passwords impossible to change;)
Satan
Night Owl
07-30-2002, 07:11 PM
Well, I did implement that. Not only did I already have it, but I also included protection for each admin. It isn't working.
Night Owl
07-30-2002, 07:13 PM
But let me make sure I put it all in the right place....
Well, I thought I'd put it all in there. Now, I've got to figure out where I did put it. :confused:
Chris M
07-30-2002, 07:19 PM
Well I can guarantee that it does work...
I know myself - If there was ever a time I was grateful for it, was when someone hacked into The Lyceum, and tried to delete my account 10 times...
Satan
Chris M
07-30-2002, 07:20 PM
Hmmm...
Search for :
if ($userid==X)
Replace X with the Id of a user you protected...
Satan
Night Owl
07-30-2002, 07:33 PM
Here is my code:
// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {
if (($userid==1) and ($bbuserinfo[userid]!=1)) {
echo "<p>You cannot update this Admin.</p>";
cpfooter();
exit;
}
if (($usergroupid==17) and ($bbuserinfo[usergroupid]!=6)) {
echo "<p>You cannot update this Admin.</p>";
cpfooter();
exit;
}
OK. The can't update is working on me, user 1. So, to make it work on the other admins, do I just take this part of the code:
if (($userid==1) and ($bbuserinfo[userid]!=1)) {
echo "<p>You cannot update this Admin.</p>";
cpfooter();
exit;
}
input the proper id numbers and add it below the existing piece of code?
Thank you for your time. Sorry I am being such a pain. I am feeling the pressure back at my board. :lol
Velocd
07-30-2002, 09:22 PM
In this hack Satan you state towards the beginning of the instructions (step 6) to modify global.php. Are you referring to admin2/global.php or the original admin/global.php?
Chris M
07-30-2002, 11:28 PM
The /admin2 global.php...
That is to set permissions for the co-admin, or lesser admin or whoever you want to call him/her/it/them...
@Night Owl - yes...
Satan
Hellburn
08-03-2002, 11:15 AM
I dont unterstand what for files i must change. The original files or the admin2 files. What is right?:
Step5 = admin/usergroup.php
Step6 = ?/global.php (admin or admin2)
Step7 = admin2/user.php
Step8 = ?/user.php (admin or admin2)
Step9 = ?/index.php (admin or admin2)
thx you
P.S. Where i can see the usergroupid at the cp?
Chris M
08-03-2002, 12:52 PM
All the files you must change are in the new /admin2 directory, unless stated otherwise...
I guess I did not state that clearly enough...
For the usergroupid - Goto your Control Panel, and click "Modify" in the "User Groups" subsection...
Hover over the edit button of the usergroup you want, and look at the link in the bottom left of the screen...The last digit, i.e. 6 = Admins, will be your usergroupid...
So it will appear as something like:
/usergroup.php?action=edit&usergroupid=6
Satan
Hellburn
08-03-2002, 01:23 PM
thx
by Step 8 :
// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {
-------DO NOT COPY THIS LINE-------
And add below :
-------DO NOT COPY THIS LINE-------
if ($userid==X) and ($bbuserinfo[userid]!=X) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
What id i must change for X ? My Admin id or the admin2 id?
Chris M
08-03-2002, 01:29 PM
Your id...
Hmmm...
I think you copied 2 lines, but from different areas...
Lol...
The first part is updating...The second part mentions deleting lol...
Always replace X with your Userid unless stated otherwise...
Satan
Hellburn
08-03-2002, 01:35 PM
Originally posted by hellsatan
Your id...
Hmmm...
I think you copied 2 lines, but from different areas...
Lol...
The first part is updating...The second part mentions deleting lol...
Satan
i dont know what you want, i make only that what i read.
Chris M
08-03-2002, 01:55 PM
Never mind...Replace X with your userid...
Satan
Chris M
08-03-2002, 03:00 PM
News Update:
Thanks to Xenon (:)), I will update the Lesser Admin CP, to Version 1.3, where, if you choose, you can allow users to update other member's usergroups, just not to Admin or Co-Admin...:)
Satan
Chris M
08-03-2002, 04:07 PM
Is here!:)
See the First Post for Update information...
Satan
Hellburn
08-03-2002, 04:44 PM
Step 5)
Edit admin2/usergroup.php
Sure admin2? This file is not in admin2.
Step 8) Step 8)
Open user.php : <--------- admin? or admin2?
Chris M
08-03-2002, 05:16 PM
I corrected the admin2/usergroup.php mistake - It should be admin/usergroup.php
Step 8) - It says to edit admin2/user.php...
Satan
Hellburn
08-03-2002, 05:23 PM
By Step 7) you say:
Open admin2/user.php
but by Step 8)
you say:
Open user.php :
what is right? two times the same file?
Chris M
08-03-2002, 05:30 PM
Step 8 can be done in either or both...
Though I recommend doing it in admin2/user.php immediately...
Satan
Hellburn
08-03-2002, 06:15 PM
i have installed the hack and his working fine but i have follow error at the user.php :
Parse error: parse error in /homepages/42/d4357757/htdocs/vb/admin2/user.php on line 309
Line 309 is correctly, i can not found a bug.
This is Line 309:
if ($userid==X) and ($bbuserinfo[userid]!=X) {
The X i have change to 2 (my userid)
Chris M
08-03-2002, 06:34 PM
Yes...
There should be an extra set of brackets around it :
if (($userid==2) and {$bbuserinfo[userid]!=2)) {
Satan
Hellburn
08-03-2002, 06:53 PM
i have the same error when i changed the code.
Chris M
08-03-2002, 07:02 PM
Hmmm...
Send me your admin2/user.php file...
vbhelp@darkblazes.com
Satan
Hellburn
08-03-2002, 07:11 PM
oki is ready
Chris M
08-03-2002, 07:21 PM
:)
Satan
Xenon
08-03-2002, 11:02 PM
Originally posted by hellsatan
if (($userid==2) and {$bbuserinfo[userid]!=2)) {
false type of brakets: you have a { where a ( would be right, or just use one pair of brackets:
if ($userid==2 and $bbuserinfo[userid]!=2) {
also Satan, please do not recommend Users to send you full files...
Thank you
Chris M
08-03-2002, 11:38 PM
Ok sorry...
Xenon - I must have slipped when typing (...
Satan
Hellburn
08-04-2002, 09:32 AM
the admincp for a coAdmin is very small :) not the same of the demopicture from you. He can not posting Announcements etc. Why?
Chris M
08-04-2002, 09:51 AM
Well...
The Admin Cp is only small, because this is a basic install...
To increase their abilites, you will need to copy the announcements.php file to the admin2 directory, then add a link to it in the admin2 index.php file...
:)
Satan
ExAvIoUr
08-04-2002, 03:28 PM
i don't have a admin2 folder. i am a newbie at this.
Chris M
08-04-2002, 03:45 PM
You have to create one:)
Satan
ExAvIoUr
08-04-2002, 06:19 PM
oops. i didn't read the instructions. my bad.
Chris M
08-04-2002, 09:04 PM
Lol its ok:)
Satan
I feel like a goober. I can find the userid numbers quick enaouk but can't find the usergroupid #. Where do I find this?
Night Owl
08-13-2002, 03:35 AM
I have started getting this error again:
Database error in vBulletin Control Panel 2.2.6:
Invalid SQL: SELECT usertitle FROM usergroup WHERE usergroupid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
Date: Monday 12th of August 2002 05:34:26 PM
Script: http://www....admin2/user.php
Referer: http://www....admin2/user.php?s=&action=edit&userid=439
What does this mean? And what can I do to fix it? I am using version 1.2 of this hack.
Night Owl
08-14-2002, 01:54 PM
Wugh. Still getting this error. It is weird. It only happens on a couple of users. When the co-admin goes into the cp to change an avatar or title, she will click on the change avatar button and get this message:
Database error in vBulletin Control Panel 2.2.6:
Invalid SQL: SELECT usertitle FROM usergroup WHERE usergroupid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
Date: Wednesday 14th of August 2002 10:46:50 AM
Script: http://.../admin2/user.php
Referer: http://.../admin2/user.php?s=&action=edit&userid=930
It will also happen on a couple of users when she tries to give them a new title.
Hey I'm getting a error messages that I can't make go away, any ideas? Parse error: parse error, unexpected T_LOGICAL_AND in /home/max/public_html/forums/admin2/user.php on line 297
Here is what is in that line
?if ($HTTP_POST_VARS['action']=="doupdate") {
Thankx,
244
Xenon
08-15-2002, 11:00 PM
remove the char in front of your if
Dark Shogun
08-18-2002, 01:54 AM
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$showgroup,$cansearch,$canemail,$canpo stnew,$canmove,$canopenclose,$candeletethread,$can replyown,$canreplyothers,$canviewothers,$caneditpo st,$candeletepost,$canusepm,$canpostpoll,$canvote, $canpostattachment,$ismoderator,$canaccesscoadmin, $canpublicevent,$canpublicedit,$canthreadrate,$can trackpm,$candenypmreceipts,$maxbuddypm,$maxforward pm,$canwhosonline,$canwhosonlineip,$cangetattachme nt)");
I can't find this anywhere in admin/usergroups.php
Dark Shogun
Donkeyballz
08-18-2002, 04:48 AM
This hack looks nice man :D Good job
Xenon
08-18-2002, 01:07 PM
@Shogun: If i'm right this is the part you should have in your file AFTER installing the hack.
Recheck one line in install file before
Chris M
08-31-2002, 11:16 PM
Yes Shogun...
You are looking for the line you are supposed to replace;)
Satan
adalberto
09-06-2002, 06:59 PM
Hallo.
I'am New admin for vbulletin and my english is not very good ;)
I have a question, where I copy this line ??
-------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:
(NB : remember change X to the usergroupid of the Admin2 User)
----------------
Last question, for unistal this hack, this query, as I modify it:
ALTER TABLE `usergroup` ADD `canaccesscoadmin` SMALLINT(6) DEFAULT '0' NOT NULL
Thank's, Adalberto
Chris M
09-06-2002, 09:08 PM
@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 :
// ###################### 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 :
ALTER TABLE `usergroup` DROP `canaccesscoadmin`
Satan
adalberto
09-08-2002, 05:18 PM
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
Chris M
09-08-2002, 05:23 PM
Have you made sure that you have changed the "X" in the code below?
if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
Satan
adalberto
09-08-2002, 06:09 PM
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 ?? :confused:
Chris M
09-08-2002, 06:21 PM
6 is usually the usergroupid of Administrators...
Therefore you will need to change this :
if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
to
if (($usergroupid==6) and ($bbuserinfo[usergroupid]!=6)) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
Satan
adalberto
09-08-2002, 06:30 PM
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??
Chris M
09-08-2002, 06:40 PM
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
adalberto
09-08-2002, 07:10 PM
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:
Chris M
09-08-2002, 07:55 PM
You need 2 sets of brackets;)
It should be :
if (($userid==42) and ($bbuserinfo[userid]!=42)) {
Satan
adalberto
09-08-2002, 08:22 PM
Ahhh... Now it's ok... but in your file (1.3) is:
if ($userid==42) and ($bbuserinfo[userid]!=42) {
;) ;)
Thank's very much for your help :D
TheSaint-AeD
09-15-2002, 03:03 PM
First of all I want to say Thx a lot @ Satan for this great Hack! This was exactly what I was searching for.
While hacking the files I encountered some Problems due to some Errors you made. Here they are :) :
Wrong Link in the first Post of the Thread:
The File-Attachement points to a file named 'instructionsupdate2.txt' which unfortunately is the 1.2 Version and not the newest 1.3 Version.
Script Error in the 1.2 Version:
Search this Code in instructionsupdate2.txt
if ($userid==X) and ($bbuserinfo[userid]!=X) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
This refers to users.php at about line 300. As you can see while reading this thread, the code causes problems to the Users. This is, because the hint that your user-ID is 1 is missing and two brackets () are missing. The right Code is:
if (($userid==1) and ($bbuserinfo[userid]!=1)) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
This solves the problems discussed over the last 5 pages, perhaps a Mod could delete those posts as the Solution is here and the thread gets too complicated.
With friendly greetings, TheSaint-AeD
P. S.: Now I will hack the files to 1.3 Version, I'll keep you informed if I encounter any Problems, even if they are the same.
Chris M
09-15-2002, 03:42 PM
@File attachment - I decided to leave 1.2 as the Attached Version, as either 1.2 or 1.3 can be used;) Both take different avenues of hacking:)
@Errors - 1.2 & 1.3 versions updated:)
I used "X", because your userid might not be 1;)
Thanks for the positive feedback:)
Satan
TheSaint-AeD
09-15-2002, 04:23 PM
I tried to update my 1.2 Version to 1.3 . As this Hack was the only installed Hack on my VB 2.2.7 I simply took user.php in an unchanged version and performed Step 7+8 aswell as the alternate options on the bottom. Now I get a blank screen if I try to log in the Lesser-Admin-CP on /admin2/index.php ?
Any suggestions?
Comment: I'm no Newbie and did exactly what was described in the hack.
TheSaint-AeD
09-16-2002, 01:49 PM
Dear VB-Staff, I need help with the Problem stated above, I'm not able to find a solution to this, as I hacked everything like stated from Satan.
And I have some further Questions:
How is it possible, to give some Groups Access to the LA-CP (Lesser Admin CP) and not only the Group Co Admin? Can I simply add them as Lesser Admins over the ACP or do I have to hack every single Group?
TheSaint-AeD
09-16-2002, 04:27 PM
ok.
I took a whole unmodified VBB 2.2.7 and applied the 1.3 Hack to be sure, I made no mistakes during the last tryout, and I encounter still the same problem: a blank screen on admin2/index.php
I didn't encounter this Problem in the previously applies 1.2 version, but I need the 1.3 Version as I want to ally my lesser Admins to create/change User Groups.
Chris M
09-17-2002, 02:49 PM
Hmmm...
I can suggest 2 things:
1 is that you did not hack global.php correctly...
2 is that you uploaded the files in ASCII mode, not Binary...;)
Satan
TheSaint-AeD
09-17-2002, 11:09 PM
hmm...
1. I edited global.php exactly as told in your 1.3 file
2. I uploaded it in Binary...
TheSaint-AeD
09-18-2002, 12:24 PM
Okay. I will edit global.php once again (for the third time) to make sure I did no mistakes. I'll keep you informed on the Progress.
TheSaint-AeD
09-20-2002, 02:57 PM
Ok, I got it working now. There are no errors in Satan's Script. It was just, that I made some personal Changes to it because my Lesser Admins get more Options as in his Hack, and in theses changes made an error.
Sorry.
Thx again for this great Hack, Satan. In my Opinion, the most important Hack on hole vB.org
Chris M
09-20-2002, 03:02 PM
Lol...
Glad you found out what was wrong;) I know that there was that 2 bracket error in version 1.2 & 1.3, but that was pretty much all I could find as regards errors;)
If anyone has any suggestions for 1.4, or what have you, by all means make them:)
Satan
TheSaint-AeD
09-24-2002, 10:21 PM
Do you know anything about vB3? Imo this should get a standart Feature to it as I never want a Board again without it!
Chris M
09-25-2002, 02:18 PM
Lol...
I doubt that will happen;)
I will update this for vB3 as soon as it is released, as I will still want the same kind of optionability...
Satan
Sengir
10-11-2002, 03:05 PM
Hmm I like this idea.. I would like to allow the admin to change member's usergroups.. But restrict them from adding specific ones. Will this hack allow for this? Also would like to prevent them from changing forum permissions.
Chris M
10-11-2002, 05:39 PM
Hmmm...
I will investigate into the usergroups bit:D
And the forum permissions...I shall get back to you;)
Satan
Sengir
10-12-2002, 01:08 PM
Thanks :) Seems sometimes admins like to give people access they shouldn't have.. Plus, I don't want anyone changing all the work I've done on the forums permissions.. :)
Chris M
10-12-2002, 01:55 PM
Right...
If you download Version 1.3 of this hack, it contains the instructions for allowing them to change users...
I will also be uploading an addon .txt file soon, with the instructions for just that...
As for the forum permissions...I recommend not adding that to the /admin2/ folder directory;)
Satan
!!!cyr0n_k0r
10-17-2002, 04:43 AM
why dont the pictures work?
TheSaint-AeD
10-17-2002, 07:18 AM
Originally posted by Sengir
Hmm I like this idea.. I would like to allow the admin to change member's usergroups.. But restrict them from adding specific ones. Will this hack allow for this? Also would like to prevent them from changing forum permissions.
Customizing the lesser Admin Hack to your Board ist simple :)
If you want LA's zu be able to Change the Usergroup, simply undo all Changes from Step 7.
If you don't want LA's to be able to edit User-Groups as such, be sure the file "usergroup.php" isn't in /admin2/ and check /admin2/index.php for the NAV-Options (Step9) and be sure, to kill the Usergroup-Nav-Options ^^
Hope that helps you.
spaceb
10-18-2002, 11:01 AM
why when i editing some group i dont see the lesser admin option?
TheSaint-AeD
10-18-2002, 01:13 PM
Did you run the MySQL Querry properly?
spaceb
10-18-2002, 03:27 PM
yes i did and its all working fine only when i editing another groups and leeser admin group i dont see the option of lesser admin but when i creating a new group i see it
Chris M
10-18-2002, 06:29 PM
Hmmm...
Are you sure that you made the changes to the "forum.php" file correctly?
@!!!cyr0n_k0r - Hmmm...They should work:confused:
Satan
Thanks for this awesome hack, but I have one question:
when you say open global.php (in step 6) you mean admin/global.php right?
man I cant login....can someone help?
dmark101
12-11-2002, 08:05 PM
this is the error message i get from my admin2 forum after installing and trying to look up a user:
There seems to have been a slight problem with the *********.com Forums database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
i'm not sure what the problem is, but i haven't installed any mods on the lesser admin area at all. it's only with admin2/user.php as well.
any clues?
Chris M
12-12-2002, 12:48 PM
@Koss - The changes refer to the admin2/global.php file - Not the admin/global.php file
@dmark101 - Have you made sure to run the Queries?
Satan
Strider Xero
12-15-2002, 09:26 AM
i'd like the Lesser admin to be able to upload/modify avatars too...how can I add this option to their cp?
dmark101
12-15-2002, 11:20 AM
Originally posted by hellsatan
[B@dmark101 - Have you made sure to run the Queries?[/B]
i'm not entirely sure what you mean by this.
when i first installed this mod, it worked great. now, my lesser admins can access all of the other functions, but they cannot look up a user.
thanks.
Chris M
12-15-2002, 02:57 PM
Sorry...I wasnt thinking straight;)
A database error suggests one of two things:
a.) You have removed a hack, which affects the database and admin/user.php...You may have forgotten to remove the part of code in the admin2/user.php, and therefore it is trying to search the database for a field that doesnt exist...
b.) You have installed a new hack that affects admin/user.php, and havent made the changes to admin2/user.php...
:)
Satan
Bison
12-18-2002, 11:01 PM
Tested this and all I get is a blank screen after uploading the files.
The "admin2/index.php" pages doesn't show up at all!
PS: and I did upload this in binary ... toggled every file from binary/ascii ... no luck! :(
Chris M
12-18-2002, 11:29 PM
That suggests to me that you didnt edit global.php in the admin2 folder;)
Satan
Bison
12-18-2002, 11:49 PM
I did ... I'll show you the file ... check your pm's! ;)
Chris M
12-19-2002, 12:02 AM
Already noticed one thing:
//load config
require("./config.php");
Should be:
//load config
require("./../admin/config.php");
Other than that it looks ok:)
Satan
Chris M
12-19-2002, 12:05 AM
vB2.2.9 Update
Ok...
For 2.2.9, there is one thing that isnt included in this file change...
Now, there is an extra change to make to the new global.php file:
Find:
//load config
require("./config.php");
Replace with:
//load config
require("./../admin/config.php");
:)
Satan
Bison
12-19-2002, 01:29 AM
Thanks for the fix ... worked well! :D
Chris M
12-19-2002, 08:57 AM
Thats ok!:)
I forgot to check for the vB updates;)
Now I should really update my admin2/global.php to the 2.2.9 one;)
Satan
Bison
12-19-2002, 10:27 AM
Did you update the hack version?
Chris M
12-19-2002, 10:42 AM
Nope;)
I must do:)
Satan
The instructions for this hack are impossible :(
Sometimes you refer to the files just as they are, e.g. "index.php", and sometimes with directories, e.g. "/admin2/filename.php" - you never stick with one system, so I don't know which files to edit :(
Chris M
01-03-2003, 11:17 PM
Sorry...Unless I state /admin/, assume it is /admin2/:)
Satan
Thanks for the quick reply :)
Also there's a mistake in the instructions - search the txt file for
ismoderator,canpublicevent,,canpublicedit,canthrea drate,cantrackpm
(Note the double comma)
Also, in vB 2.2.9:
Find:
//load config
require("./config.php");
// init db **********************
// load db class
$dbservertype = strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
In vB 2.2.9 you won't be able to find that bit of code. The config.php part is higher up in the file.
And it doesn't work!! :'(
Trying to log in at forum/admin2 - and it just takes me back to admin2/index.php :S
Chris M
01-04-2003, 12:42 PM
Firstly - There is such a thing as an "edit" button;)
Secondly - I explained about this and vB 2.2.9 - This was not originally designed to work with 2.2.9, as this pre-dates the vBulletin XSS Fix era...I have tried to fix it;)
Thirdly - It does work - See on my site: http://www.darkblazes.com/forums/hackcp/ (i designed it for a hack i released, then had to close it due to people editing the hack stuff)
Fourthly - I will try and help you as best I can...
Satan
Chris M
01-04-2003, 12:51 PM
This version should be compatible with vB 2.2.9...I am not 100% sure, but in theory & on my board it works:)
Download it below!
Satan
Bison
01-04-2003, 06:55 PM
Using vb2.2.9 and it works fine for me ...
Thanks Satan!
Originally posted by hellsatan
Firstly - There is such a thing as an "edit" button;)
Secondly - I explained about this and vB 2.2.9 - This was not originally designed to work with 2.2.9, as this pre-dates the vBulletin XSS Fix era...I have tried to fix it;)
Thirdly - It does work - See on my site: http://www.darkblazes.com/forums/hackcp/ (i designed it for a hack i released, then had to close it due to people editing the hack stuff)
Fourthly - I will try and help you as best I can...
Satan
lol, sorry - my vBulletin etiquette has been getting sloppy of late...
Great hack, I got it working in the end - my mistake was creating a "Lesser Admin" group before I had actually uploaded the code... :(
I didn't like the idea of my lesser admins being able to add smilies - knowing them they would add 500x400 sized pictures of historian's heads, so I got rid of a lot of things - instead I added IP & Email banning features from options.php. :D
Chris M
01-04-2003, 10:46 PM
Ok cool:)
Glad it works;)
Satan
Mystis
01-05-2003, 04:06 AM
Awesome idea for a hack hellsatan, I'm going to write something close to this on my own so it fits more with my forums. Thanks for the idea!
Chris M
01-05-2003, 09:52 AM
Lol your welcome Mystis:)
Satan
hamed
01-05-2003, 03:17 PM
A very nice hack. Thank you.
Chris M
01-08-2003, 05:34 PM
Your welcome hamed:)
Satan
bigZ0r
01-08-2003, 11:35 PM
sweet hack, just what I have been looking for :D
good work! :cool:
Chris M
01-09-2003, 07:39 PM
Thanks:)
Satan
Sweet Cheeks
01-15-2003, 06:21 PM
I just wanted to let you know again how much I appreciate you working in this for all of us. I Love it, its been a huge help :D
Chris M
01-17-2003, 04:55 PM
You are welcome Julie:)
Glad it's useful;):)
Satan
Xyphen
01-24-2003, 01:32 AM
hellsatan, very nice hack, just wanted to ask something. Will you make a vbhacker version of it for vbulletin 2.2.9? Also, can you make this another modification, that the head admins can allow the lesser admins which options they should have? Like, say they can't edit users, but they can edit templates, or they can't edit usergroups but they can edit users, all that should be allowed to be changed from the Head Admins Control Panel? If possible, please consider it..
Xyphen
01-24-2003, 03:11 PM
Heh, Nevermind my last post, I made some modifications and gave the Lesser Admin some more options which cannot affect the head admins :) and cannot harm the boards in anyway..
I want to thank you for taking some time out and helping out newsbies like myself to protect our boards, thank you very much hellsatan!! ;)
Chris M
01-24-2003, 06:54 PM
No problems AVio 07:)
Satan
I installed this Hack with the instruktions at the top of the Threat.
Version 1.4
Now I have
Parse error: parse error, unexpected $ in /www/htdocs/huppe/forum/admin2/global.php on line 271
Fatal error: Call to undefined function: adminlog() in /www/htdocs/huppe/forum/admin2/index.php on line 7
and i down now what i`m doing wrong!
Is here sombody woh can fix my great Problem?
oI use vb 2.2.9 vb
I have read all in this threat but nothing work!
grml
in the global.php:
there stand the following:
$url=ereg_replace("\\?s=[a-z0-9]{32}","",$url);
and in the index.php
adminlog();
geniuscrew
02-03-2003, 04:27 PM
I dunno, but whenever someone makes such types of hacks, why do they all leave out the ability for mods to change other peoples avatars?
I am looking for a hack which does this, and since you seem to have the one with the most features, can you please possibly implement this too? It would be so great
Thanks in advance.
emuchina
02-20-2003, 11:49 AM
Dose this hack file work fine in VBB 2.3.0 ?
Chris M
02-20-2003, 03:13 PM
@ego - Can you please post the code around line 271 in admin2/global.php here;)
@geniuscrew - Well...They can update avatars, as long as they are Co-Admins, and you copy the user.php file from the /admin/ folder, with the changes I suggested made to the copy (if you arent sure what they are, just read my "Total Admin Security (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40738)" hack)...If you are looking for this ability for moderators, you might want to try Xenon's "Mods can edit Users (https://vborg.vbsupport.ru/showthread.php?s=&threadid=42096)" hack...
@emuchina - I haven't tested it on vB2.3.0, but I don't see any reason why it wouldn't - I will download a new version of vB2.3.0, and test it on my local board, and see if it does:)
Satan
geniuscrew
03-10-2003, 02:11 PM
Thanks for the tips satan :)
Chris M
03-11-2003, 06:21 PM
Your welcome:)
Satan
Mickie D
03-26-2003, 09:35 AM
i am having problems with this .... it is a gr8 hack just what i wanted :)
i think i have hacked it correctly i go over hacks alot ... but there is always room for error
ok my problem is that when i try to log in the lesser admin2 index.php it says "You are either not a valid administrator or have not logged in"
i have set it so my super mods are lesser cp admins .... and i also added my admin group to it just incase
i cant log in with my admin pass or with my test super mod !!!
can you tell me what i am doing wrong ... i run vb 2.2.9
thanks for your help i have another question but i will wait untill i can log in first !!
Mickie D
03-26-2003, 11:19 AM
i had a user group problem :)
fixed it :)
but why cant normal admins log in there ????
Ayatollah
03-26-2003, 06:33 PM
Awesome! Thanks alot.
Mickie D
03-28-2003, 06:17 PM
how comes when i click the remove user i can remove an admin no matter even if i add his userid to the
if ($userid==X) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
???? can anyone help if i try to change him in anyway then it wont allow me to but if i use the remove userlink in the useful links section PFFF GONE
please help i cant use this until i fix it :(
Mickie D
04-02-2003, 10:23 AM
*BUMP
Mickie D
04-04-2003, 08:02 AM
is this hack still being supported ???
??????
soccerclue
04-22-2003, 02:45 PM
Hi, I found that Lesser Admin does not have all the options that Admin have in Control Panel. Should I copy all the files from admin to admin2 directory. And then, copy again all modified files to admin2? Can it work? Is there any other way so that I don't have to duplicate same files? Please help me. Thanks.
Chris M
04-23-2003, 07:54 PM
@MickieD - I don't have time to offer full-time support - It takes a few days for me to get here and read the posts and reply;)
Firstly, what file are you adding the remove protection code to?
Secondly, what part of the file are you adding it to?
Thirdly, you have to enable Admins to be able to access it in the usergroup file, otherwise they will be treated as an un-wanted user, and wont be able to login...
@soccerclue - If you mean modified user.php files, then you can copy the file to the admin2 directory, then apply the changes I suggested!:)
I only included instructions for a few of the admin files - If you want them to be able to do more, you can upload the files to the admin2 directory, and add them to the admin2/index.php file:)
Satan
monstergamer
04-23-2003, 11:48 PM
not all the links in the co-admin work after i got it installed
some work and other dont
monstergamer
04-24-2003, 12:12 AM
[edit]i figured it out[edit]
Chris M
04-24-2003, 07:02 PM
Ok cool:)
Satan
monstergamer
04-24-2003, 11:08 PM
great hack
clicks install
soccerclue
04-25-2003, 10:14 PM
hi satan,
what should I do actually if I want to make my Lesser Admin can have all the options that I want except that they cannot degrade my status and I don't want Lesser Admin to promote people to Admin or degrade Lesser Admin to lower status. Like I asked previously, should I copy all the files in admin folder to admin2 folders? Is there any other way so that I don't need to duplicate all the files? Hope you can help me. Thanks.
sabret00the
04-29-2003, 01:19 PM
i now have a supermod cp :cool:
Chris M
04-29-2003, 06:15 PM
Your other alternative to that would be to make the user an admin, and just apply the hack I released called "Total Admin Security", which is incorporated into this hack:)
@sabret00the;) Cool - Me too:D (I have too many usergroups now though:s lol)
Satan
Frozen Dreams
04-30-2003, 03:32 PM
hours and hours I have been trying to install your lesser admin cp ... and when trying to change any aspect of a usergroup now I always get an sql error returned
I have installed 1.4 on a 2.2.9 - and went through the entire installation several times ... Always sql error 1064 in usergroups.php
edited:
no clue how I did it - but this time it works ;)
One more question though - is your security hack included in 1.4 - or do I still have to install it? Since I dont want anyone besides the admin edit anything in the admin accounts
Chris M
04-30-2003, 04:27 PM
1.4 does include the security:)
Satan
Chris M
04-30-2003, 05:37 PM
I have re-written the Version 1.4 files, and they are to be attached here:)
This file:
install_lesseradmincp_txt.php
Satan
Chris M
04-30-2003, 05:38 PM
I have re-written the Version 1.4 files, and they are to be attached here:)
This file:
install_lesseradmincp_usergroups_txt.php
Satan
GaleForce
04-30-2003, 07:24 PM
Gonna give it a try later, this hack will be extremely useful for me ;)
Chris M
04-30-2003, 08:36 PM
Glad you like it:)
Satan
disfitness
05-15-2003, 12:04 AM
Your instructions say...
find:
-----
//load config
require("./config.php");
// init db **********************
// load db class
$dbservertype = strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
replace with:
-------------
//load config
require("./../admin/config.php");
// init db **********************
// load db class
$dbclassname="./../admin/db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname="vBulletin Admin Control Panel";
$DB_site->appshortname="vBulletin (mcp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();
---------------------------
But that code doesn't exist. The code looks (in 2.2.9) like this...
//load config
require("./config.php");
if ($debug != 1) {
unset($showqueries);
unset($explain);
}
// init db **********************
// load db class
$dbservertype = strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();
Your instructions would mean you have 2 connect statements in the final code. Also, you have removed the debug lines and the "$dbservertype" line? What's going on?
Chris M
05-17-2003, 10:54 AM
@disfitness - That was probably by accident that I removed the
$dbservertype = strtolower($dbservertype);
line...
How do you get 2 connect statements?:confused:
Satan
gmarik
05-18-2003, 02:32 PM
Sounds great - but the screenshots kinda don't show nothingnew to me...
Chris M
05-18-2003, 02:43 PM
Hmmm...
There isn't really much they can show other than what they do;)
Satan
monstergamer
05-23-2003, 03:20 PM
if i want them to be able to un-ban or ban some one how can i do this
Chris M
05-25-2003, 11:25 AM
Do you mean via vBulletin options?
Satan
monstergamer
05-25-2003, 06:48 PM
Today at 08:25 AM hellsatan said this in Post #178 (https://vborg.vbsupport.ru/showthread.php?postid=399786#post399786)
Do you mean via vBulletin options?
Satan
yes i would like the co-admins to be able to ban and unban via the admin2 CP
Chris M
05-25-2003, 10:56 PM
I believe there already is a hack for vBulletin options which restricts it to certain functions...
You could copy the options.php file to the admin2, then install that on that file:)
Satan
monstergamer
05-25-2003, 11:11 PM
you want me just to copy it?
i did that and nothing
i have no option to ban or unban any where
Chris M
05-27-2003, 11:30 AM
It is under the "banning options" header;)
Satan
monstergamer
05-27-2003, 12:07 PM
i see no baning option at all
Chris M
05-28-2003, 10:39 AM
Really?:eek:
Do you not have:
[Edit Options]
[IP Logging Options]
[Floodcheck Options]
[Banning Options]
Satan
monstergamer
05-28-2003, 03:44 PM
[edit]yes i do[edit]
but i want to have it where i can ban by user name or id
not by ip
monstergamer
05-28-2003, 11:21 PM
is there a way you can make a addon for it like the hack
SuperMods can Unban from ModCP!
except make it for the co-admin
co-admins can Unban from admin2 CP!
Chris M
05-29-2003, 09:31 AM
If you install version 1.4 (usergroup) version, they can do just that:)
Satan
csidlernet
05-31-2003, 06:47 AM
Sickass hack. better then the one i added...
monstergamer
05-31-2003, 07:20 AM
05-29-03 at 06:31 AM hellsatan said this in Post #187 (https://vborg.vbsupport.ru/showthread.php?postid=401485#post401485)
If you install version 1.4 (usergroup) version, they can do just that:)
Satan
i did not see this option to ban and un-ban and user
(not ip) user or user id
Tubbie
05-31-2003, 07:55 AM
i cant find the sreens :(
monstergamer
05-31-2003, 08:12 AM
now since i install the 1.4
my co-admins cant change any thing in some one profile
need help
Chris M
05-31-2003, 09:23 AM
Who's profile are they trying to edit?
Satan
monstergamer
05-31-2003, 07:00 PM
any bodies except the admin
Chris M
05-31-2003, 07:04 PM
If they are trying to edit another co-admin, they cannot...
Satan
monstergamer
06-01-2003, 02:54 AM
ok i fixed that problem
and i really hate to bug you
but they cant edit any bodies post
Chris M
06-01-2003, 10:19 AM
Did you make them a Super Moderator?
Satan
monstergamer
06-01-2003, 07:42 PM
i got it
thanx
Chris M
06-01-2003, 08:35 PM
No problems;):)
Satan
monstergamer
06-01-2003, 09:27 PM
i re-installed it and moded it a little
i left some of it the same and only changed it like this
so co-admins could not add or move people to or from the Administrators usergroup
in admin2/user
find
// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {
add under
if (($userid==1) and ($bbuserinfo[userid]!=1)) {
echo "<p>You cannot update this Admin.</p>";
cpfooter();
exit;
}
if (($usergroupid==6) and ($bbusergroupinfo[usergroupid]!=6)) {
echo "<p>You cannot make this person Admin.</p>";
cpfooter();
exit;
}
find
// ###################### Start Kill #######################
if ($HTTP_POST_VARS['action']=="kill") {
and add under
if ($userid==1) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
if ($usergroupid==6) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}{
the rest i left the same
monstergamer
06-01-2003, 09:35 PM
this is what it looks like well you click on a user
http://www.monstergamer.net/stuff/1.gif
dropdown box
http://www.monstergamer.net/stuff/2.gif
when they try to edit the admin
http://www.monstergamer.net/stuff/3.gif
when they try to move some one in to the Administrators usergroup
http://www.monstergamer.net/stuff/move.gif
Chris M
06-02-2003, 07:11 PM
Indeed:)
I actually forgot to re-add this part to version 1.4, but I will re-add it if I do a version 1.5:)
Satan
monstergamer
06-02-2003, 07:54 PM
I am not really good at php yet but I am learning
I did not know that this was all ready add in the pre...versions
when well 1.5 be out?
Chris M
06-03-2003, 11:38 AM
I am not really sure;)
Hopefully soon:)
Satan
legendarysk8er
06-07-2003, 09:25 PM
Coudl ypu update your screenshots?
KelteN
06-07-2003, 11:03 PM
Your screenshot links aren't working. Giving errors :(
Chris M
06-10-2003, 04:21 PM
Ah sorry - I installed hotlinking protection, and forgot to add vBulletin.com/.org to the allowed list;):)
Satan
gmarik
06-11-2003, 08:58 AM
Could you add an auto prine function for "adminlog" table?
Chris M
06-12-2003, 05:30 PM
I'm sorry?:eek:
Satan
EvilLS1
06-18-2003, 07:35 AM
This is a good hack.. Before I saw this hack, I just added this to the top of all files that I wanted to restrict:
if ($bbuserinfo[userid] !=1){
echo "Restricted area.";
exit;
}
But with this hack my co-admins won't even see functions which they cannot use, so it doesn't appear as if I don't trust them.
Nice work!
Chris M
07-16-2003, 02:48 PM
As requested, a .zip file containing both install files:)
Satan
Solice
08-02-2003, 04:18 PM
I hate to post this here... I installed the hack and my forums still work, admin panel still works... but for some reason whenever someone tries to login to the lesser admin cp, it just refreshes the login page... :-/
daveone
08-04-2003, 11:01 AM
Oh yes i have the same problem
Chris M
08-05-2003, 07:52 PM
What version of vB are you running?
Satan
Solice
08-09-2003, 11:17 PM
I'm running 2.2.9 until I get around to downloading 2.3.0...
daveone
08-10-2003, 09:23 AM
08-05-03 at 09:52 PM hellsatan said this in Post #213 (https://vborg.vbsupport.ru/showthread.php?postid=423522#post423522)
What version of vB are you running?
Satan
Version 2.3.0
mclark2112
08-19-2003, 02:32 AM
I am gonna try this...wish me luck.
mclark2112
08-21-2003, 03:54 AM
I get this error when I try to access the admin2 page:
Warning: main(./config.php) [function.main]: failed to create stream: No such file or directory in /home/cartfan/public_html/forums/admin2/global.php on line 96
mclark2112
08-23-2003, 12:43 AM
Got it to work! Thank you so much for this hack, my mods love it, and I feel safe.
You are the man!
BlackxRam
10-21-2003, 02:35 AM
HellSatan.
I am looking to modify this hack so only MODS or CERTAIN usergroups can access CERTAIN templates or styles. Can this be done with your hack? For example, i am looking for my Usergroup " MUSIC MANIACS " to be able to edit the templates and styles of the " MUSIC FORUM" ONLY and NO ONE else's.
Is there anyway to make this possible?
Quikdeth
12-21-2003, 04:22 AM
Running version 2.3.2. This is the error I keep getting. Please Help.
Invalid SQL: INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,can view,showgroup,cansearch,canemail,canpostnew, canmove,canopenclose,candeletethread,canreplyown,c anreplyothers,canviewothers,ca neditpost,candeletepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canaccesscoa dmin,canpublicevent,canpublice dit,canthreadrate,cantrackpm,candenypmreceipt s,maxbuddypm,maxforwardpm,canwhosonline,canwhosonl ineip,cangetattachment)
VALUES (NULL,'Archangels','',0,1,1,1,1,1,1,1,1,1,1,1,1,1, editpost,1,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1, attachment)
mysql error: You have an error in your SQL syntax near 's,maxbuddypm,maxforwardpm,canwhosonline,canwhoson lineip,cangetattachment)
VALUE' at line 1
mysql error number: 1064
BlackxRam
12-22-2003, 01:48 AM
HellSatan... Is there a way to make this hack so Certain Usergroups can ONLY edit certain Styles? Im trying to only allow Usergroup (A) to modify style set #2 and allow UserGroup (B) to modify style set #5. Since those usergroups are admins of those certainstyle IDs.
I really need assistance with this HellSatan. Thanks alot.
iceman-x
01-10-2004, 12:54 AM
Running version 2.3.2. This is the error I keep getting. Please Help.
Invalid SQL: INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,showgroup,canse arch,canemail,canpostnew, canmove,canopenclose,candeletethread,canreplyown,c anreplyothers,canviewothers,caneditpost,candeletep ost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canaccesscoa dmin,canpublicevent,canpublicedit,canthreadrate,ca ntrackpm,candenypmreceipt s,maxbuddypm,maxforwardpm,canwhosonline,canwhosonl ineip,cangetattachment)
VALUES (NULL,'Archangels','',0,1,1,1,1,1,1,1,1,1,1,1,1,1, editpost,1,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1, attachment)
mysql error: You have an error in your SQL syntax near 's,maxbuddypm,maxforwardpm,canwhosonline,canwhoson lineip,cangetattachment)
VALUE' at line 1
mysql error number: 1064
I goth the same problem. i am yousing vb 2.3.4. is there some one that can help us. thanks.
iceman-x
01-10-2004, 01:04 PM
Error found, There was som wrong with the line in user.php. Just re hack user.php. an and find the spaces inn on of the line, remove it, ant it works. :)
Thanks for this nice hack.
Quikdeth
01-10-2004, 04:25 PM
Any idea what part of the code those spaces are in????????? Thanks for the help!
LostStyles
04-18-2004, 09:48 AM
installed it and go this error... any help please!
Database error in vBulletin Control Panel 2.3.3:
Invalid SQL: UPDATE usergroup SET title='Co-Admins',usertitle='Co-Admin',cancontrolpanel=0,canmodifyprofile= odifyprofile,canviewmembers=1,canview=1,showgroup= 1,cansearch=1,canemail=$ canemail,canpostnew=1,canmove=1,canopenclose=1,can deletethread=1,canreplyown= replyown,canreplyothers=1,canviewothers=1,caneditp ost=1,candeletepost=1,ca nusepm=1,canpostpoll=1,canvote=1,canpostattachment =1,ismoderator=0,cana ccesscoadmin=1,canpublicedit=0,canpublicevent=0,ca nthreadrate=1,cantr ackpm=1,candenypmreceipts=1,maxbuddypm=0,maxforwar dpm=0,canwhosonline= osonline,canwhosonlineip=1,cangetattachment=1 WHERE usergroupid=8
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'canemail,canpostnew=1,canmove=1,canopenclose=1,ca ndeletethread=
mysql error number: 1064
Date: Sunday 18th of April 2004 03:37:00 AM
Script: http://www.punchlinekings.com/forums/forums/admin/usergroup.php
Referer: http://www.punchlinekings.com/forums/admin/usergroup.php?action=edit&usergroupid=8
UncoderMom
05-22-2006, 08:52 PM
Is there a current mod like this? Im assuming that its NOT compatable with 3.5.4. lol
peterska2
05-22-2006, 08:59 PM
In 3.5.x the admin permissions allow you to deny access from parts of your ACP such as the users, styles, phrases, plugin manager, etc. It also hides the options from those who do not have permission to view them. Therefore there is no need to use a mod such as this with the permissions set in place.
UncoderMom
05-22-2006, 09:37 PM
Thank You!! vb just keeps getting better and better! I need to do some poking anround lol but didnt want to change anything before I Impek :) Thanks for fast responce!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.