![]() |
I modified merk's version so it should inherit now by using PPN's version for the inheritance. This also changes the ability for Supermods and Admins to do any usergroup without special access required. No guarntees etc yada yada =)
Only real problem I currently see is maybe more than 2 layer inheritence could be an issue. Here is the updated portion(s): PHP Code:
-- Replace beginning from where that section was to be inserted at until these lines PHP Code:
PHP Code:
|
Uh...would you mind making those instructions a bit more clear? :)
|
nm, I'm just tired.
Something's not working right with that. Forum1 --forum2 ----forum3 I have them as a moderator of forum1, but set it so they can't edit permissions for that. They can edit permissions for 2 and 3. It only lets them edit forum1's permissions though... |
Ok updated for what should be complete inheritance and some redundant code removed :)
These are the steps for editing the code pasted from user.php in Merk's instructions (step 5). So just replace step5 with this and inheritance should go through as many children as possible. With some slight changes this would also work for PPN's code too i believe since it suffers from the same problem of not inheriting past the first parent forum. Find PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
These directions hopefully are more clear |
Didn't work...when I ran it I got the blank page...something's not right! :(
|
Oh your using PPN's version of the hack :) let me load that up and post the changes for it! =)
|
No, I'm using merk's....
|
Are you logged in as the Admin when accessing the mod panel?
If so you should get a listing of all forums when you click on Edit user (either blank or a specific users name entered in). If your logged in as a normal Mod, did you set all the forums to allow Moderator access mask modification? This part of it is not inherited the "if they are a moderator" is inherited. |
It doesn't matter what I'm logged in as...by blank page I mean the script is broken. There's an error in it somewhere. Check your PM box.
|
Thanks heaps Ashura!
|
Ok, it almost works now. Inheritence works, but they can edit it on forums they're should be able to.
Forum1 --forum2 ----forum3 I have them as a moderator of forum1, but set it so they can't edit permissions for that. They can edit permissions for 2 and 3. It lets them edit permissions for both 1, 2, and 3... |
Oops my bad =)
Change this PHP Code:
PHP Code:
|
Works just fine now :)
Would it be possible to have a hierarchial list of all the forums they can modify instead of having them enter the forum id? |
Gimme a few also going to make sure it doesn't allow things we don't want it to do either. =)
|
You mean, get a list of forums for the second form i made?
that gives a list of all the people who have access masks listed? Tweezy stuff there! :) Something along the lines of> PHP Code:
Just adapt the 'while' loop to check to see if they have moderator and the forum is caneditaccess=1 Shouldnt be too hard :) |
Update
- added some more checks just to make sure they have access (just like other mod panel functions do) - added a check in edit so ONLY admin's can edit access of Super Mods and Admin's (just to be paranoid) - Added 'forums' list if you hit list forums without a Forum ID May need some more cleaning up but should work fine Here is my current version of this file (Pretty sure we can post these as attachments). |
i released a working version under a different thread, and i sorted the inheritance to be more than one level.
http://vbulletin.com/forum/showthrea...threadid=28654 i also knew what i had done wrong in this version but its too much to fix XD |
Parse error: parse error in c:\program files\nusphere\apache\htdocs\upload\mod\user.php on line 71
no idea everything looks ok ?? |
When i try to update a user permssion i get a blank screen and it doesn't update. Does anyone know why this is happenning?
|
For which version? Merk's or PPN's :)
|
Merks
|
Somehow mine isnt working properly, even after my tests, i found no errors.
If you can wait about a week, i will have version2 out, which will hopefully work alot better(and the instructions will be alot better) |
Is this using my additions to the hack?
If so, is the user an Admin or Super Mod ( usergroupid 5 or 6)? Is the account your trying to edit with a Moderator of the forum or any of its parents, Admin, or Super Mod? Need a bit more to go on here. |
This can happen in forums where you have not enabled the feature for the Forum in the Admin CP. The ability to edit it is not derived from parent forums.
I get a blank page when listing forums and selecting one that I have not explicitly given Mods access to edit. |
I have a request simliar to this. I need my moderators to be able to change the users profile options (namely user title and group). The default is that they can view it, but they can't change it. Are there any hacks out there that would allow them to edit the information too? I could really use this so I can stop having them have access to the main admin cp panel.
TIA |
[QUOTE]Originally posted by PPN
i released a working version under a different thread, and i sorted the inheritance to be more than one level. http://vbulletin.com/forum/showthrea...threadid=28654 i also knew what i had done wrong in this version but its too much to fix XD |
Quote:
|
I did... no luck so far. :(
Quote:
|
Please I hope this works for 2.2.5
|
All times are GMT. The time now is 04:18 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:
|