View Full Version : Private Forum Permissions
yzztik
10-10-2002, 09:07 PM
You know how when you set a forum to "private" it automatically goes through and sets any "mod" to yes regardless of what their usergroup says ... well this can get really annoying when we want a private forum for just admins or any other usergroup as you have to go through each mod and said it to "no" ... so ..........
Is there anyone out there who can help me disable this feature and make it so that if its "private" only the usergroup "admin" can see it and then I can add whichever other usergroups I want?
I looked around and could not find a hack for this already, but if there is one, someone please point me to it. If not, can anyone help?
Thanks! :D
Logician
10-11-2002, 07:24 AM
No offence but IMO this does not worth hacking. How many private boards can you plan to create in your board so that you would require a hack to do it automatically. Your board will have just a few private boards and you can set their permissions in less than 5 minutes. Do you really think you need a hack for this?
yzztik
10-11-2002, 01:56 PM
Obviously, if I am asking for it is because a need for it arose ;) I am staff at several boards and in everyone of them we have needed something like this because we have features that require private forums and if you have a lot of mods it is a nightmare to take all of them out of each of those private forums.
It wouldn't be so bad if it just gave permission to the mod usergroup, but the default is to give permission to each mod individually even if I don't have them in the mod group.
So can anyone help?
Logician
10-11-2002, 04:49 PM
edit admin/forum.php
find:
usergroupid<5 OR usergroupid>6
Replace it as
usergroupid!=6
find:
user.usergroupid<>6 AND user.usergroupid<>5
Replace it as:
user.usergroupid<>6
That should work..
I still think this is not worth hacking though.. ;)
yzztik
10-11-2002, 06:34 PM
Thanks. :)
Does this take care of the usergroup or the indivuals who have mod abilities? You know how you can add a member to mod a forum without putting them in the mod usergroup, would this catch those? That's what I am trying to fix, basically anyone that "ismod" to not get set to "yes" when I make a forum private. Only set to "yes" the admin usergroup not the indivuals.
Thanks again!
Kit
Logician
10-11-2002, 08:04 PM
I didnt test the hack.. But from the code I can say that it seems to disable all forumpermissions for ALL usergroups but 6 (=Site Admins) when you create a new forum and set it as "private"..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.