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?
 
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:

Code:
<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.
        </xen:if>
    </xen:set>
</xen:include>

See anything wrong with that set up?
 
Top Bottom