Information collection: Does current user already voted?

Author Message

Andrey Astakhov

Sunday 19 October 2008 2:45:41 pm

We have got a contest on our site using information collection to collect user votes.

One user can vote only once and eZ Publish allow it. There is my collect.ini:

[CollectionSettings]
CollectAnonymousDataList[contest_poll]=enabled
CollectionUserDataList[contest_poll]=unique

But i wouldn't like to show poll form for users who already voted.

I need to check that voting is forbidden not after second vote attempt but before it.

Is it possible to know that current user has voted already?

Piotrek Karaƛ

Tuesday 18 November 2008 9:04:09 pm

Collected information does not provide any extra logic, as far as I know. If you want to run a reliable poll/voting, you have to develop or use a custom extension for that.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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