The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
Description: Basically, this allows the moderator of a certain forum to add/take
access to users via access masks, however it only allows it if the forum they moderate has that option enabled. It also lists what users have access to a specified forum. Please NOTE! If you dont use the Moderator Control Panel (forum/mod/) Then this hack probably wont work, sorry! Install: Step1: First off, you will need phpMyAdmin, or something similar to add a column to the 'forum' database. I suggest you read > http://vbulletin.com/forum/showthrea...threadid=18558 for instructions on how to install it. Once you get that installed, go to the forum table, and scroll down till you see 'Add new field :', put 1 in the box, choose 'At the end of the table' and click Go. Call the field, 'allowmodaccess', its type, 'smallint' and size, '6'(all without quotes of course), then also choose default, and make it 0(zero) Step2: Now comes the modding of forum.php in the AdminCP. Find at approximatly Line 120 PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find at approx line 124 PHP Code:
PHP Code:
Okay, this bit wont be easy :| Basically, make this file as below, however, there are a few bits your going to have to grab from user.php in the admin directory.(which i will explain down furthur) PHP Code:
PHP Code:
PHP Code:
Now you need to mod that code. Step5: >> Find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find PHP Code:
PHP Code:
Phew, you should be done. Now go into your AdminCP, and modify all the forums you wish your users to be able to change/add accessmasks to and at the bottom, choose 'yes' for allow mods to change access masks. To access it, go to http://yourforum.url/forumpath/mod/ login, and hit the Add | Edit | View button on the menu. Thats all Folks! PS Phew for the 12345 char limit ![]() Show Your Support
|
Comments |
#52
|
|||
|
|||
![]()
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... |
#53
|
|||
|
|||
![]()
Oops my bad =)
Change this PHP Code:
PHP Code:
![]() |
#54
|
|||
|
|||
![]()
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? |
#55
|
|||
|
|||
![]()
Gimme a few also going to make sure it doesn't allow things we don't want it to do either. =)
|
#56
|
|||
|
|||
![]()
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 ![]() |
#57
|
|||
|
|||
![]()
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). |
#58
|
|||
|
|||
![]()
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 |
#59
|
|||
|
|||
![]()
Parse error: parse error in c:\program files\nusphere\apache\htdocs\upload\mod\user.php on line 71
no idea everything looks ok ?? |
#60
|
||||
|
||||
![]()
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?
|
#61
|
|||
|
|||
![]()
For which version? Merk's or PPN's
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|