Poll doesn`t work

Author Message

Mieczyslaw Morzonek

Monday 07 June 2004 2:33:14 am

Hello

I`ve manually setup my poll in ez publish 3.3-4 and doesn`t work :(

1. I`ve create a poll class
2. I copy collect.ini from ez publish "news" installation
3. I use copy of default template for poll

When i vote data are store only in one table "ezinfocollection" - why? Table ezinfocollection_attribute is empty? I don`t know why second table isn`t updated?

sorry for my bad english.

[InfoSettings]
# The default information collection type
Type=form
# Matches class id or identifier to information collection type
TypeList[]
TypeList[poll]=poll
TypeAttribute=collection_type


[EmailSettings]
SendEmail=enabled
# Matches class id or identifier to information collection type
SendEmailList[poll]=disabled
# Which attribute to look for in the object to determine
# if an email should be sent.
# If found the setting will override all other settings.
SendEmailAttribute=collection_email

[CollectionSettings]
CollectAnonymousDataList[Poll]=enabled
CollectionUserData=unique

and templates

{set-block scope=global variable=title}
{'Poll %pollname'|i18n('design/standard/content/poll',,hash('%pollname',$node.name))}
{/set-block}

<h1>{'Poll results'|i18n( 'design/standard/content/poll' )}</h1>

{section show=$error}

{section show=$error_anonymous_user}
<div class="warning">
    <p>{'Anonymous users are not allowed to 
vote on this poll, please login.'|i18n('design/standard/content/poll')}</p>
</div>
{/section}

{section show=$error_existing_data}
<div class="warning">
    <p>{'You have already voted for this poll.
'|i18n('design/standard/content/poll')}</p>
</div>
{/section}

{/section}

<h2>{$node.name|wash}</h2>

{section loop=$object.contentobject_attributes}
    {section show=$:item.contentclass_attribute.is_information_collector}

        <h3>{$:item.contentclass_attribute.name}</h3>
        {attribute_result_gui view=count attribute=$:item}

    {section-else}

        {section show=$attribute_hide_list|contains($:item.contentclass_attribute.identifier)|not}
            <h3>{$:item.contentclass_attribute.name}</h3>
            {attribute_view_gui attribute=$:item}
        {/section}

    {/section}

{/section}

<br/>

{"%count total votes"|i18n( 'design/standard/content/poll' ,,
  hash( '%count', fetch( content, collected_info_count, hash( object_id, $object.id ) ) ) )}

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 04:26:59
Script start
Timing: Jan 19 2025 04:26:59
Module start 'layout'
Timing: Jan 19 2025 04:26:59
Module start 'content'
Timing: Jan 19 2025 04:26:59
Module end 'content'
Timing: Jan 19 2025 04:26:59
Script end

Main resources:

Total runtime0.0249 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1563152.6250
Module start 'layout' 0.00640.0032 741.781339.4453
Module start 'content' 0.00960.0133 781.226689.3516
Module end 'content' 0.02290.0019 870.578130.3047
Script end 0.0248  900.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.5181140.0002
Check MTime0.00104.1437140.0001
Mysql Total
Database connection0.00062.562410.0006
Mysqli_queries0.003112.575930.0010
Looping result0.00000.056610.0000
Template Total0.00145.810.0014
Template load0.00083.096510.0008
Template processing0.00072.645810.0007
Override
Cache load0.00062.236310.0006
General
dbfile0.00031.180580.0000
String conversion0.00000.036440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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