feedback-form contact

Author Message

Bienvenu Isaac Kanyinda

Monday 20 April 2009 2:24:24 am

Contact form

Hello Family ez

I have a serious problem. I have set up a contact form for my site I am building with ez.
The form with the fields colleted info.
The form have a problem for sending the message the sender is Nobody and content is empty.
I am looking for help

my codes

 


{include name=Validation uri='design:content/collectedinfo_validation.tpl' class='message-warning'
                 validation=$validation collection_attributes=$collection_attributes}
                 
<div>
    <div id="hard" class="centre" style="color:blue;"><br/><center><h3>Contact</h3></center></div>
<br/><br/>
    <div>      
<p>
Pour toute question, n'h&eacute;sitez pas &agrave; utiliser ce formulaire pour nous &eacute;crire.
</p>
    </div>
    <div>
               	<form method="post" action={"content/action"|ezurl}>
        <p class="help" ><br/><br/></p>
        <p><br/>
            <label for="field_896">Adresse e-mail&nbsp;:</label><br/>
            
            <input class="text" type="texte" id="233" size="66" name="ContentObjectAttribute_data_text_896" value="" /> 
            {$node.data_map.email.contentclass_attribute.name}
            {attribute_view_gui attribute=$node.object.data_map.email}       
            </p>
        <p>
            <label for="field_670">Sujet&nbsp;:</label><br/>
           <input class="text" type="texte" id="232" size="66" name="ContentObjectAttribute_ezstring_data_text_670" value="" />       
             {$node.data_map.subject.contentclass_attribute.name}
             {attribute_view_gui attribute=$node.object.data_map.subject} 
             </p>
        <p>
            <label for="field_671">Texte&nbsp;:</label><br/>
            <textarea class="box" name="ContentObjectAttribute_data_text_671" id="231" cols="50" rows="10">
            </textarea> 
            {$node.data_map.message.contentclass_attribute.name}
            {attribute_view_gui attribute=$node.object.data_map.message}       
        </p>
        
        <p>
            <input type="hidden" name="ContentNodeID" value="169" />
            <input type="hidden" name="ContentObjectID" value="22" />
            <input type="hidden" name="ViewMode" value="full" />
            <input type="submit" class="button" value="Envoyer" name="ActionCollectInformation" />
        </p>
        </form>
    </div>
</div>

 

Petit poisson deviendra grand pourvu que Dieu lui prĂȘte vie.
Petit oiseau volera un jour de ses propres ailes pourvu que Dieu lui ajoute le nombre de jours sur terre.

Gert

Wednesday 22 April 2009 10:53:52 am

Hi,

make sure you have your collect.ini.append.php settings right and have included
a template in

design/templates/content/collectedinfomail

with your form's name as a filename.

Regards,

Gert

canguro web solutions
consulting & development
http://www.canguro.at

Bienvenu Isaac Kanyinda

Thursday 23 April 2009 3:52:46 am

Gert


I used the class feedback_form ez. The name of my class is feedback_form and type feedback_form. The object that I created is Contact.
It's my collect.ini

[InfoSettings]
TypeList[feedback_form]=feedback_form

[EmailSettings]
SendEmailList[feedback_form]=enabled

[DisplaySettings] 
DisplayList[feedback_form]=result

[CollectionSettings]
CollectionUserDataList[feedback_form]=multiple

And the template of contact form

{include name=Validation uri='design:content/collectedinfo_validation.tpl' class='message-warning'
                 validation=$validation collection_attributes=$collection_attributes}
                 
<div>
    <div class="long" style="padding-left:25px;">{$node.object.name}</div>
<br/><br/>
<div class="aide">      
<p>
Pour toute question, n'h&eacute;sitez pas &agrave; utiliser ce formulaire pour nous &eacute;crire. 
</p>
</div>
<div class="aide">
               	<form method="post" action={"/content/action"|ezurl}>
        <p class="help" ><br/></p>
        <p><br/>        
            {$node.data_map.email.contentclass_attribute.name}&ensp;(*)<br/>
            {attribute_view_gui attribute=$node.object.data_map.email}       
            </p>
        <p>                         
             {$node.data_map.subject.contentclass_attribute.name}&ensp;(*)<br/>
             {attribute_view_gui attribute=$node.object.data_map.subject} 
             </p>
        <p>       
            {$node.data_map.message.contentclass_attribute.name}&ensp;(*)<br/>
            {attribute_view_gui attribute=$node.object.data_map.message}       
        </p>
        <p>
         <br/>
        (*) Obligatoire
        <br/>
        </p>
        <p>
          <br/>
            <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
            <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
            <input type="hidden" name="ViewMode" value="full" />
            <input type="submit" class="button" name="ActionCollectInformation" value="{"Envoyer"|i18n("design/ezwebin/full/feedback_form")}"/>
        </p>
        </form>
</div>
</div>


A major step is the mail goes in the back office but the problem remains in the email address of the webmaster email comes as no content flag with no objections.

Thank you for your help

Petit poisson deviendra grand pourvu que Dieu lui prĂȘte vie.
Petit oiseau volera un jour de ses propres ailes pourvu que Dieu lui ajoute le nombre de jours sur terre.

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 16:08:50
Script start
Timing: Jan 18 2025 16:08:50
Module start 'layout'
Timing: Jan 18 2025 16:08:50
Module start 'content'
Timing: Jan 18 2025 16:08:51
Module end 'content'
Timing: Jan 18 2025 16:08:51
Script end

Main resources:

Total runtime0.5992 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.0078152.6094
Module start 'layout' 0.00580.0031 741.617239.4141
Module start 'content' 0.00900.5888 781.0313556.9375
Module end 'content' 0.59780.0014 1,337.968816.1875
Script end 0.5992  1,354.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5624160.0002
Check MTime0.00140.2265160.0001
Mysql Total
Database connection0.00070.118510.0007
Mysqli_queries0.544690.8963570.0096
Looping result0.00050.0826550.0000
Template Total0.567094.620.2835
Template load0.00210.342820.0010
Template processing0.564994.283020.2825
Template load and register function0.00010.016210.0001
states
state_id_array0.00140.227210.0014
state_identifier_array0.00120.193320.0006
Override
Cache load0.00170.2843330.0001
Sytem overhead
Fetch class attribute can translate value0.00070.116120.0003
Fetch class attribute name0.00100.171940.0003
XML
Image XML parsing0.00080.141720.0004
class_abstraction
Instantiating content class attribute0.00000.002250.0000
General
dbfile0.00090.1573160.0001
String conversion0.00000.001640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs