The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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 |
#12
|
|||
|
|||
normal mods wouldnt see any forums, if they wernt in the moderator group, and even sometimes wouldnt show up at all.
simple SQL fix. find PHP Code:
PHP Code:
|
#13
|
|||
|
|||
Hi there,
thanx again for this hack. There is one problem I have though: The Option 'List Users Access per Forum' leads to a blank screen, while the 'Access Granting For Forums' Option works perfectly Any hints? -Alex |
#14
|
|||
|
|||
And one more thing i noticed:
if a forum has subforums and the the moderator is only moderator of the subforums by inharitance, this mod will not be able to modify the subforums specifically. -Alex |
#15
|
|||
|
|||
Good point, not that i really care about that much, it is a point.
If you want to go ahead and try and fix it, best bet would most probably be something along the lines of looking for a forum with the forumid of XX, or looking for the forum with parentid CONTAINING XX. probably too complex for what i wrote the script for, but hey, if you want to fix it all up... |
#16
|
|||
|
|||
I have been using a hack similar to this for the past couple of months. But I also have the edit access masks as part of the UserGroup Permissions.
The inheritance also works for my version. I would have to try and remember what I done as I never bothered documenting it when i done it. If anyone wishes it I will post it. |
#17
|
|||
|
|||
Quote:
|
#18
|
||||
|
||||
I am reposting the text file, with the updated code, and I have added the sql query you should execute to create this field.....
|
#19
|
|||
|
|||
Thanks heaps Prohacker.
I couldnt be bothered making one |
#20
|
|||
|
|||
Quote:
Regarding the other prob, displaying blank screen when 'List Users Access per Forum'.... anything?? -Alex |
#21
|
|||
|
|||
This is the version i have been using on my forums for past couple of months.
Editing access masks is added to the find feature within /mod/user.php it follows same principles as the ban mod features. People with admin and super mod privledges for the usergroup can edit all forum access masks. If someone is a moderator by inheritance they can also edit all the forums they are entitled to. Hope this helps some people. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|