The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Basically we have a new forum, and want to give users the choice wether or not they see a paticular section of the forum.
I would like it as default yes. So ideally the users default group would be "Registered Users." Then I want to give them the option in the UserCP to disable a part of the forum by joining an additional group called "disable_xxx forum." Anyone know how to do this? Would the primary usergroup override the secondary though? If so, it may have to be to change the primary usergroup between "Registered Users" and "Registered Users XXX disabled" etc. Any help much appreciated. Thanks ![]() |
#2
|
|||
|
|||
![]()
no... if a user is in a group which displays a given forum, there is no way to have them join a group to hide that forum. When calculating permissions, it combines all the groups the user is in, and if any of them have "yes" for a given item then it evaluates as "yes". The best approach would be to create a secondary group that can view this forum and have the user leave the group if they don't want to see that particular forum. In order to auto-join the user to that group when they register, you'd need to create a plugin that is hooked at account creation and take advantage of the user data manager to add the group (I think it supports groups anyway).
|
#3
|
|||
|
|||
![]()
So theres no hack to let a user switch their primary usergroup then?
|
#4
|
|||
|
|||
![]()
well I'm sure there is, but that doesn't scale very well. What if you have multiple of these special permission groups? That doesn't work if you have the user changing their primary group.
|
#5
|
|||
|
|||
![]()
I've been looking at the idea since.
it would acctually be a choice between two secondary groups. One group will allow access, Other group won't allow access. |
#6
|
|||
|
|||
![]()
wouldn't that just be the same as having single secondary group that allows access? If the user doesn't want to see that part of the boards, they simply leave the group... no need to have them join another group to hide it.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|