XF 1.3 hide poll results unless voted

Live Free

Active member
I'm trying to find this, have done a lot of research, and no luck. The "View Results" for polls might bias the results, so I'd like to not allow them to view the results unless they've voted.

Can't seem to find a mod that does this, and I'm struggling with conditionals. Suggestions?

Live Free

Active member
Not quite. Checked it out but it won't let anyone view the results until the thread starter allows it or if it expires. I just want users to be able to view results after voting, but no before.

Editing the bottom of thread_poll_results seemed to work:

<xen:include template="poll_block">
    <xen:set var="$options">
    <xen:if is="{$response.hasVoted}">
        <xen:include template="poll_block_result" />
        <xen:else />
        You must vote before you may view the results.
See anything wrong with that set up?