Forums / General / How does one close a poll?

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

eZ debug

Timing: Jan 29 2025 23:50:44
Script start
Timing: Jan 29 2025 23:50:44
Module start 'content'
Timing: Jan 29 2025 23:50:44
Module end 'content'
Timing: Jan 29 2025 23:50:44
Script end

Main resources:

Total runtime0.2758 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.0059 587.9219180.8438
Module start 'content' 0.00590.0068 768.765697.8359
Module end 'content' 0.01270.2630 866.6016526.5234
Script end 0.2758  1,393.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.1469200.0002
Check MTime0.00130.4754200.0001
Mysql Total
Database connection0.00070.238610.0007
Mysqli_queries0.230583.56371410.0016
Looping result0.00110.38951390.0000
Template Total0.262795.210.2627
Template load0.00080.304910.0008
Template processing0.261894.930710.2618
Override
Cache load0.00060.213910.0006
Sytem overhead
Fetch class attribute can translate value0.00080.300910.0008
XML
Image XML parsing0.00030.104810.0003
General
dbfile0.00983.5394200.0005
String conversion0.00000.001730.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.0001 secs