1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Poll Results Conditional

Discussion in 'Styling and Customization Questions' started by Michael, Oct 28, 2011.

  1. Michael

    Michael Active Member

    Does anyone know of a conditional I could use to hide the poll results for one poll? Any help would be great. Thank you :)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I don't think the poll id is exposed in the template so I don't believe it's possible to do so using a conditional.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    A little hackish, but it works. You need to specify the thread_id in the code:

    Admin CP -> Appearance -> Templates -> poll_block

    			<xen:if is="{$poll.canVote} OR {$poll.content_id} != 23">
    				{xen:raw $options}
    			<xen:else />
    		<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
    Michael and Brogan like this.
  4. Michael

    Michael Active Member

    Thanks Jake you really do live up to your usertitle :D

Share This Page