How to know if a visitor as already answered to a poll ?

Author Message

Nabil Alimi

Monday 19 December 2005 9:01:55 am

Hi,

Is it possible to know if an anonymous user has already answered a poll <b>before</b> answering it ?

If false, I display the poll if true I display results instead.

Thanks for reading me.

No ideas ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Per-Espen Kindblad

Tuesday 20 December 2005 4:23:20 am

Yup. In v. 3.5. there is an upgrade which uses session instead of domain when checking this.
So, this information you need is available in the session variable.

Per-Espen

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

eZ debug

Timing: Jan 18 2025 19:19:58
Script start
Timing: Jan 18 2025 19:19:58
Module start 'layout'
Timing: Jan 18 2025 19:19:58
Module start 'content'
Timing: Jan 18 2025 19:19:59
Module end 'content'
Timing: Jan 18 2025 19:19:59
Script end

Main resources:

Total runtime0.6579 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1563152.6563
Module start 'layout' 0.00580.0027 740.812539.5078
Module start 'content' 0.00850.6479 780.3203525.9609
Module end 'content' 0.65640.0014 1,306.28138.2500
Script end 0.6578  1,314.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5127160.0002
Check MTime0.00140.2191160.0001
Mysql Total
Database connection0.00090.136510.0009
Mysqli_queries0.614493.3858540.0114
Looping result0.00050.0764520.0000
Template Total0.629695.720.3148
Template load0.00170.256620.0008
Template processing0.627995.437020.3139
Template load and register function0.00010.014910.0001
states
state_id_array0.00080.114010.0008
state_identifier_array0.00070.099220.0003
Override
Cache load0.00130.1998140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.109720.0004
Fetch class attribute name0.00120.179240.0003
XML
Image XML parsing0.00080.115520.0004
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00090.1380190.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs