Forums / General / Poll: doublevotes...

Poll: doublevotes...

Author Message

Kristoffer Karlsson

Monday 23 October 2006 1:53:08 am

Hi!

I downloaded the poll from:

http://ez.no/download/ez_publish/..._3_stable_releases/3_8/packages#poll

Where can I found settings for the poll? I need to prevent "double-voting". Is there a way to do this?

Someone else asked the same question here:
http://ez.no/community/forum/inst...ion/poll_how_prevent_duplicate_votes
...but no answer

Someone please, give me a hint on how to solve this problem.

I found an answer in a five year old discussion (ez 2.2), where someone suggested changes in a file namned eZvote.php. I have no such file...
http://ez.no/products/ez_publish/info/ez_publish_2_2/forum/general/poll_how_are_doublevotes_prohibited

Is there a way to do this in 3.8.0?

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

Łukasz Serwatka

Tuesday 24 October 2006 12:34:04 am

Check if your collect.ini.append.php has set:

CollectionUserDataList[poll]=unique

This is set by default in settings/collect.ini perhaps it is override somewhere.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kristoffer Karlsson

Tuesday 24 October 2006 1:05:09 am

Thanks for your answer.

Yes. It was set to unique...

How does ez check if a user already voted? Is it a cookie? Then maybe it is possible to set an expire date for the cookie.

The problem is if the user close the browser and kills the session. After that the user can come back and vote again. That is what I want to prevent.

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

André R.

Tuesday 24 October 2006 1:21:26 am

The only true way to accomplish that is by only letting logged in users vote.
This is not a eZ Publish only issue, this is a web issue.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Kristoffer Karlsson

Tuesday 24 October 2006 8:50:25 am

OK, i understand. I doesnt have to be "the true way". Normal users do not delete their cookiefiles, and if someone goes through the trouble of doing that I dont care if they vote twice.

Is it possible to use these settings in site.ini to change the time that have to pass before the user can vote again?

SessionTimeout
ActivityTimeout
CookieTimeout

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

Kristoffer Karlsson

Wednesday 25 October 2006 12:05:50 am

I changed the setting cookietimeout to 604800 (the number of seconds in a week) in site.ini for the public siteaccess.

It works!

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

eZ debug

Timing: Jan 31 2025 08:21:19
Script start
Timing: Jan 31 2025 08:21:19
Module start 'content'
Timing: Jan 31 2025 08:21:19
Module end 'content'
Timing: Jan 31 2025 08:21:19
Script end

Main resources:

Total runtime0.2217 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7969180.8516
Module start 'content' 0.00630.0071 768.6484101.9219
Module end 'content' 0.01330.2083 870.5703530.9844
Script end 0.2216  1,401.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.5460200.0002
Check MTime0.00130.6061200.0001
Mysql Total
Database connection0.00090.390610.0009
Mysqli_queries0.164574.17431410.0012
Looping result0.00140.63731390.0000
Template Total0.207993.810.2079
Template load0.00090.408610.0009
Template processing0.207093.342410.2070
Override
Cache load0.00060.278110.0006
Sytem overhead
Fetch class attribute can translate value0.00100.469410.0010
XML
Image XML parsing0.00040.196710.0004
General
dbfile0.01305.8597200.0006
String conversion0.00000.003030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs