![]() |
chen, i did this:
i created 2 admins, userid 1 and 2. i created 1 registered user, userid 3. now, userid 1 can edit all users and userid 2 can edit all users except the ones listed in $caneditadmin. i tested all and it works perfectly, in my test board, with the code above. you try it and let me know please. thanks. update: i also tried $caneditadmin = '1,2'; now all admins can perform changes. |
Quote:
|
i dont understand?
i used this code: Code:
if ($HTTP_POST_VARS['action']=="doupdate") { |
*sigh*
Let's say you have 4 admins, users A, B, C and D. You add users A and B to $caneditadmin (Which will not work, but let's assume it does). Users A and B will be able to edit any users. Users C and D will be able to edit all users except users A and B. But user C will still be able to edit user D, and vice versa. |
correct. that's what it does the code listed above. try it in your test board and let me know. it works for me.
|
You don't get it, do you...
That's how it works, right. But that's not how it's supposed to work, because users C and D can still edit other admins (i.e D and C, respectively). Quote:
If you have 10 admins and add one of them to $caneditadmin, the rest of the 9 won't be able to edit the first user, but will be able to edit one another. |
i understand now chen. sorry, my 'romanian' english.
i dont care if thay can edit other admins. what i dont want is to be able to edit my options (userid 1 or others listed in $caneditadmin)... |
iv tried both firefly and your version and im still geting this error:
Warning: Unable to access ./admin/db_.php in /home/virtual/site4/fst/var/www/html/forums/global.php on line 128 |
you are missing the mysql part on the line..
it should read it: admin/db_mysql.php and NOT admin/db_.php when you hacked your forum with another hack, you made a mistake somewhere. |
Thx, TECK, I love you for this Hack :love: Exactly what I was looking for.
|
All times are GMT. The time now is 01:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|