The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
Screenshot (a bad one at that)
|
#3
|
|||
|
|||
Very nice.
Just a question: why are you still in beta ? What's the problem ? Thanks |
#4
|
||||
|
||||
Well, afaik its bugfree - I'm using it live on my forums.
Please could someone move this thread to the Full Releases forum. Thanks |
#5
|
|||
|
|||
Implemented all instructions exacly, but this hack doesn't work for me (vb 2.2.1). I don't get any errors, and the listbox appears, but the new usergroup does not inherit the permissions.
A feature suggestion : Add the drop list to the edit usergroup function, and allow us to alter forum permissions easily after creating the usergroup. |
#6
|
||||
|
||||
If you try and clone a group which doesn't have any forum/usergroup permissions then obviously the new group isn't going too either.
Could you paste the 2 sections of code you modified in the usergroup.php so I can try and track down the bug? Thanks |
#7
|
|||
|
|||
Right, just to make sure I'm not just confused. You can view your usergroup permissions in Admin CP > Modify > (group) Edit, right? I tried to create a new usergroup based on the Admin usergroup (which has all permissions on) but the new usergroup only had the default options. Do I have a problem? If I do, here's the code:
------------------------------------------------ maketableheader("Adminstrative Permissions"); makeyesnocode("Is Super Moderator","ismoderator",0); makeyesnocode("Can access control panel<br><font size='1'>Be careful! Allowing CP access will allow a usergroup to change their own permissions!</font>","cancontrolpanel",0); // Set equal forum permission on new usergroup maketableheader("Default forum permissions"); makechoosercode("New Usergroup forum permissions equal too","usergroupid","usergroup",$bbuserinfo[usergroupid]); // End Set equal forum permission on new usergroup doformfooter("Save"); } ------------------------------------------------ and ------------------------------------------------ $action="modify"; // Set equal forum permission on new usergroup $addedgroup=$DB_site->query_first("SELECT MAX(usergroupid) AS max FROM usergroup"); $ugperms=$DB_site->query("SELECT * FROM forumpermission WHERE usergroupid=$usergroupid"); while ($ugperm=$DB_site->fetch_array($ugperms)) { $permforuminfo=$DB_site->query_first("SELECT * FROM forum WHERE forumid=$ugperm[forumid]"); // SQL Insert $DB_site->query("INSERT INTO forumpermission (forumpermissionid,forumid,usergroupid,canview,can search,canemail,canpostnew,can move,canopenclose,candeletethread,canreplyown,canr eplyothers,canviewothers,caned itpost,candeletepost,canpostattachment,canpostpoll ,canvote,cangetattachment) VALUES (NULL,'$ugperm[forumid]','$addedgroup[max]','$ugperm[canview]','$ugperm[cansearch]','$ugperm[canemail]','$ugperm[canpostnew]','$ugperm[canmove]','$ugperm[canopenclose]','$ugperm[candeletethread]','$ugperm[canreplyown]','$ugperm[canreplyothers]','$ugperm[canviewothers]','$ugperm[caneditpost]','$ugperm[candeletepost]','$ugperm[canpostattachment]','$ugperm[canpostpoll]','$ugperm[canvote]','$ugperm[cangetattachment]')"); // End SQL Insert } // End Set equal forum permission on new usergroup echo "<p>Record added</p>"; } ------------------------------------------------ |
#8
|
||||
|
||||
Well, by default the Administrators usergroup doesn't have any entries in the forumaccess table - as they should have rights to everything already.
This hack is solve problems for when you have a lot of private forums and usergroups. If you create a new usergroup (without this hack), it doesn't have any custom permissions and you have to spend hours going though each private forum, and blocking access to the new usergroup. This clone hack becomes usefull when you clone a usergroup which is restricted to many forums, or has custom permissions as it saves a lot of time. So in a nutshell, if you clone the admins group it won't do anything (much). |
#9
|
|||
|
|||
Ah, I get it, thanks.
|
#10
|
||||
|
||||
any ideas on why this will not work in the 2.2.6 version? i have tried re-installing it repeatedly, and it just ain't working.
i love this hack.... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|