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 |
#42
|
|||
|
|||
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:
|
#43
|
|||
|
|||
Uh...would you mind making those instructions a bit more clear?
|
#44
|
|||
|
|||
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... |
#45
|
|||
|
|||
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 |
#46
|
|||
|
|||
Didn't work...when I ran it I got the blank page...something's not right!
|
#47
|
|||
|
|||
Oh your using PPN's version of the hack let me load that up and post the changes for it! =)
|
#48
|
|||
|
|||
No, I'm using merk's....
|
#49
|
|||
|
|||
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. |
#50
|
|||
|
|||
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.
|
#51
|
|||
|
|||
Thanks heaps Ashura!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|