Forums / Developer / Information collection: Does current user already voted?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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