Poll Results Conditional

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 :)
 
A little hackish, but it works. You need to specify the thread_id in the code:

Admin CP -> Appearance -> Templates -> poll_block

Rich (BB code):
						</div>
					</xen:if>
				</div>

			<xen:if is="{$poll.canVote} OR {$poll.content_id} != 23">
				{xen:raw $options}
			<xen:else />
				RESULTS HIDDEN FOR THIS POLL
			</xen:if>

			</div>
		</div>
	
		<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
	</form>
</div>
 
A little hackish, but it works. You need to specify the thread_id in the code:

Admin CP -> Appearance -> Templates -> poll_block

Rich (BB code):
</div>
</xen:if>
</div>

<xen:if is="{$poll.canVote} OR {$poll.content_id} != 23">
{xen:raw $options}
<xen:else />
 RESULTS HIDDEN FOR THIS POLL
 </xen:if>

</div>
</div>

<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
</div>

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