View Full Version : Restrict Poll Option by Forum?
Christine
02-09-2004, 06:49 PM
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?
Gary King
02-09-2004, 11:31 PM
I think permissions are the right way to go with this, what's wrong with using those? :)
Christine
02-10-2004, 02:22 AM
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.
:)
Gary King
02-10-2004, 11:13 AM
Then using something like <if condition="$bbuserinfo[usergroupid] != 6"><!-- show poll stuff here--></if>
Christine
02-10-2004, 01:07 PM
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.
Gary King
02-10-2004, 06:55 PM
Open newthread template and find <if condition="$show['poll']">
Replace with <if condition="$show['poll'] and $forumid == x">
And change x to the forum ID where people can post polls.
Christine
02-12-2004, 12:22 AM
Thats all there is to it?
Oh my -- I am going to LOVE this once I get used to it.
Thanks for the help!!
:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.