poll locking

Author Message

Marko Žmak

Wednesday 08 December 2004 6:05:44 pm

I tried this in Setup & Design forum but got no answer. Now I'm trying here.

I have several polls on my site and I would like to 'lock' some of them. So that users can vote only for polls that aren't locked, but view results for all polls.

Is there any mechanism in eZ that provides that functionallity?

I know that it can be done by overriding some templates, but I want to know if there's a more generic eZ solution. Because if I just override the templates that are used to display the poll web form, the poll can still be voted for by sending the data in some other way, without using the web form. If someone for example wants intentionally to vote for polls that are 'locked' to falsificate the poll results (and I DON'T want that to happen).

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 19 2025 09:41:03
Script start
Timing: Jan 19 2025 09:41:03
Module start 'layout'
Timing: Jan 19 2025 09:41:03
Module start 'content'
Timing: Jan 19 2025 09:41:05
Module end 'content'
Timing: Jan 19 2025 09:41:05
Script end

Main resources:

Total runtime1.2177 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 590.1563152.6094
Module start 'layout' 0.00620.0033 742.765639.3984
Module start 'content' 0.00961.2065 782.1641472.0625
Module end 'content' 1.21610.0015 1,254.22668.2031
Script end 1.2176  1,262.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2606160.0002
Check MTime0.00120.0995160.0001
Mysql Total
Database connection0.00070.057010.0007
Mysqli_queries1.177296.6750460.0256
Looping result0.00060.0458440.0000
Template Total1.177596.720.5888
Template load0.00180.147720.0009
Template processing1.175796.553720.5879
Template load and register function0.00010.008910.0001
states
state_id_array0.00120.100210.0012
state_identifier_array0.00150.120120.0007
Override
Cache load0.00150.120880.0002
Sytem overhead
Fetch class attribute can translate value0.00070.060010.0007
Fetch class attribute name0.00080.064320.0004
XML
Image XML parsing0.00050.037110.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00160.1337180.0001
String conversion0.00000.000740.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs