How does one close a poll?

Author Message

kracker (the)

Wednesday 25 August 2004 1:42:13 am

Greetings,

The other day I realized that while I knew how to create and use a poll, one very important feature seemed to elude me. I did not know how to "close" a poll.

A closed poll might allow the results to be viewed but the user would not be allowed (even through url manipulation by hand) to vote on a closed poll only view the results.

Many have asked about working with polls, I have yet to hear anyone ask about what to do with a poll once they are done with it, wanting of course to leave the information online while preventing the addition of further votes.

Cheers,
kracker

the matrix : reloaded :: oakenfold : dread rock

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Thursday 26 August 2004 3:24:52 am

Ok,

I get it now. The feature I'm really looking for does not exactly exist as I'm thinking of it. It would be simpler if one could enable or disable the collection of poll votes through the eZ publish : admin instead of having to create template overrides for "closed" polls.

I will request this feature / submit a bug "enhancement" as it seems in general like a "good idea".
http://ez.no/community/bug_reports/how_to_close_a_poll

//kracker
silence of the early morning . . .

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Paul Borgermans

Thursday 26 August 2004 5:26:45 am

Hi Kracker,

If template manipulation is not good enough, i would file a bug report (enhancement) on the information collector system

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Andrew Wigglesworth

Wednesday 15 December 2004 8:20:34 am

How about creating a new section, give it the right permissions, assign a node (calling it for example "closed polls") to that section and move the polls that you want to close into that node.

(pauses for breath)

wouldn't that do it?

Andrew

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 05:03:39
Script start
Timing: Jan 18 2025 05:03:39
Module start 'layout'
Timing: Jan 18 2025 05:03:39
Module start 'content'
Timing: Jan 18 2025 05:03:40
Module end 'content'
Timing: Jan 18 2025 05:03:40
Script end

Main resources:

Total runtime1.1425 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.9063152.6250
Module start 'layout' 0.00540.0045 740.531339.4453
Module start 'content' 0.00991.1312 779.9766602.3516
Module end 'content' 1.14110.0013 1,382.328112.1641
Script end 1.1424  1,394.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3062160.0002
Check MTime0.00140.1191160.0001
Mysql Total
Database connection0.00070.062710.0007
Mysqli_queries1.084694.9338620.0175
Looping result0.00060.0523600.0000
Template Total1.107196.920.5536
Template load0.00220.188220.0011
Template processing1.105096.716920.5525
Template load and register function0.00020.013610.0002
states
state_id_array0.00170.150310.0017
state_identifier_array0.00180.158320.0009
Override
Cache load0.00180.1593300.0001
Sytem overhead
Fetch class attribute can translate value0.00090.075330.0003
Fetch class attribute name0.00100.086870.0001
XML
Image XML parsing0.00180.155830.0006
class_abstraction
Instantiating content class attribute0.00000.001480.0000
General
dbfile0.00190.1694310.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs