Forums / Developer / feedback-form contact

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.

eZ debug

Timing: Jan 18 2025 11:10:21
Script start
Timing: Jan 18 2025 11:10:21
Module start 'content'
Timing: Jan 18 2025 11:10:22
Module end 'content'
Timing: Jan 18 2025 11:10:22
Script end

Main resources:

Total runtime0.9819 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.7266180.8438
Module start 'content' 0.00620.8405 769.5703562.0000
Module end 'content' 0.84670.1351 1,331.5703336.7578
Script end 0.9818  1,668.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4018210.0002
Check MTime0.00140.1474210.0001
Mysql Total
Database connection0.00080.077110.0008
Mysqli_queries0.900991.75971940.0046
Looping result0.00190.19021920.0000
Template Total0.942696.020.4713
Template load0.00210.214820.0011
Template processing0.940595.787920.4702
Template load and register function0.00010.012310.0001
states
state_id_array0.00250.251210.0025
state_identifier_array0.00350.354820.0017
Override
Cache load0.00180.1804330.0001
Sytem overhead
Fetch class attribute can translate value0.00150.150930.0005
Fetch class attribute name0.00160.159940.0004
XML
Image XML parsing0.00100.102230.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00430.4362270.0002
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs