PrefixDiscussion has its own permissions. So if you have a category and give it custom permissions, you can revoke the rights 'Vanilla.PrefixDiscussion.Add', 'Vanilla.PrefixDiscussion.View', 'Vanilla.PrefixDiscussion.Manage' from that category for all users and that should be everything you need to do.
@R_J said:
PrefixDiscussion has its own permissions. So if you have a category and give it custom permissions, you can revoke the rights 'Vanilla.PrefixDiscussion.Add', 'Vanilla.PrefixDiscussion.View', 'Vanilla.PrefixDiscussion.Manage' from that category for all users and that should be everything you need to do.
I can't understand very well what you say ... I know that I can change the permissions on roles, but I can not change the permissions on the category, in the category only see that I can change the right from discussions and comments (add, see, close, etc..) from the roles.
The only thing I can think of is to create a new role with the PrefixDiscussion permissions, and assign this rol to all members and then add it to the category I want. Am I right?
But there is one problem: while you create a new discussion, this discussion doesn't have a category yet. So you need JavaScript to hide and show the prefix box depending on the chosen category. I remember that I have done something like that together with some other user before:
Comments
PrefixDiscussion has its own permissions. So if you have a category and give it custom permissions, you can revoke the rights 'Vanilla.PrefixDiscussion.Add', 'Vanilla.PrefixDiscussion.View', 'Vanilla.PrefixDiscussion.Manage' from that category for all users and that should be everything you need to do.
I can't understand very well what you say ... I know that I can change the permissions on roles, but I can not change the permissions on the category, in the category only see that I can change the right from discussions and comments (add, see, close, etc..) from the roles.
The only thing I can think of is to create a new role with the PrefixDiscussion permissions, and assign this rol to all members and then add it to the category I want. Am I right?
Oops! The idea was great but it was simply wrong, sorry...
Then it is not that easy. But whenever this permission is set, you can check the category:
https://github.com/R-J/PrefixDiscussion/blob/master/class.prefixdiscussion.plugin.php#L120
https://github.com/R-J/PrefixDiscussion/blob/master/class.prefixdiscussion.plugin.php#L142
https://github.com/R-J/PrefixDiscussion/blob/master/class.prefixdiscussion.plugin.php#L169
https://github.com/R-J/PrefixDiscussion/blob/master/class.prefixdiscussion.plugin.php#L192
But there is one problem: while you create a new discussion, this discussion doesn't have a category yet. So you need JavaScript to hide and show the prefix box depending on the chosen category. I remember that I have done something like that together with some other user before:
http://vanillaforums.org/discussion/28873/last-minute-development/p2