The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Restrict Poll Option by Forum?
Ok, I am late getting into the game with the new conditional templates. Hoping someone can help?
Right now, I am using user security permissions to restrict polls to only be allowed in one of our forums. I would like to look at setting this as a conditional instead, or as part of the phpincludes_start settings. Anyone have any thoughts on this? |
#2
|
||||
|
||||
I think permissions are the right way to go with this, what's wrong with using those?
|
#3
|
||||
|
||||
Because it is a pain when adding new usergroups (which we do more often than I like).
That is why I was looking for something like if forumid !=x then disable the poll option. |
#4
|
||||
|
||||
Then using something like
HTML Code:
<if condition="$bbuserinfo[usergroupid] != 6"><!-- show poll stuff here--></if> |
#5
|
||||
|
||||
I am not following you?
I want to allow anyone to start a poll, I just want to limit the option to start a poll to the one forum that we allow it in. I have permissions set for 'no' on open polls, with a custom override on each usergroup for that one forum. I want to say 'yes' to polls as the default, and then have the system override that if the forum they are trying to start the poll in isn't the designated forum. |
#6
|
||||
|
||||
Open newthread template and find
HTML Code:
<if condition="$show['poll']">
HTML Code:
<if condition="$show['poll'] and $forumid == [b]x[/b]">
|
#7
|
||||
|
||||
Thats all there is to it?
Oh my -- I am going to LOVE this once I get used to it. Thanks for the help!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|