Voted Poll will not be displayed anymore

Author Message

Johnny J

Monday 21 April 2008 8:45:20 pm

Hi

i have one popup window for the poll (normal "poll" class in EZ 3.6)

as the title, how could i hide the poll for anonymous users who have voted? (not poping up)

i understand the information should be in cookie, how could i retreive it?

thanks

Johnny J

Tuesday 22 April 2008 12:40:04 pm

not so sure i made my question clear.

what i need is how to distinguish the poll has been voted or not before clicking the "vote" button.
(in poll_result.tpl you could use $error_existing_data, but how about before "content/action" process that?)

the poll setup as "unique"
poll is enabled for anonymous users

please help

Adrien Dupuis

Thursday 21 August 2008 8:18:00 am

take a look to simplecookie extension http://ez.no/developer/contribs/template_plugins/simplecookies

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.