Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-12-15 13:38:21
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
contact form ,
How do you create the contact form, there are plugins?
Offline
Re: contact form ,
Yes,
There is zem_contact_reborn
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2014-12-15 18:36:21
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: contact form ,
I tried but I can not. it is possible for you to give me an example of how I write?
Offline
Re: contact form ,
Here’s the example from the plugin’s help page
<txp:zem_contact to="recipient@example.com">
<txp:zem_contact_email />
<txp:zem_contact_text label="Phone" min="7" max="15" />
<txp:zem_contact_textarea label="Your question" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
Last edited by colak (2014-12-16 06:09:10)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2014-12-15 19:28:29
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: contact form ,
I have to put this code before or after the html form?
Offline
Re: contact form ,
You can put this code in an article or you can put it in a ‘page’ (presentation>pages) and create a section (presentation>sections) to call it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#7 2014-12-15 19:34:16
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: contact form ,
ho scritto cosi:
<txp:output_form form="head" />
<body>
<div id="imSite">
<div id="imHeader">
<h1>Parrocchia abbaziale Ss.Pietro e Paolo</h1>
<div id="imMEObj_50" style="position: absolute; left: 1px; top: 1px; width: 985px; height: 229px;" ><script type="text/javascript">imMESSPlay(50,0,[["me_ss50.jpg",22,6],["me_ss51.jpg",22,6]]);</script></div>
</div>
<div class="imInvisible">
<hr />
<a href="#imGoToCont" title="Salta il menu di navigazione">Vai ai contenuti</a>
</div>
<div id="imBody">
<div id="imMenuMain">
<!-- Menu START -->
<a name="imGoToMenu"></a><p class="imInvisible">Menu principale:</p>
<a name="imGoToMenu"></a><p class="imInvisible">Menu principale:</p>
<txp:output_form form="mainMenu" />
<!-- Menu END -->
<!-- Menu END -->
</div>
<hr class="imInvisible" />
<a name="imGoToCont"></a>
<div id="imContent">
<!-- Page START -->
<div id="imPage">
<h3>Contatti</h3>
<div class="form">
<txp:zem_contact to="recipient@example.com">
<txp:zem_contact_email />
<txp:zem_contact_text label="Phone" min=7 max=15/>
<txp:zem_contact_textarea label="Your question" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
<!-- Page END -->
</div>
<!-- Page END -->
<hr class="imInvisible" />
<a name="imGoToCont"></a>
</div>
<div id="imFooter">
</div>
</div>
</div>
<div class="imInvisible">
<hr />
<a href="#imGoToCont" title="Rileggi i contenuti della pagina">Torna ai contenuti</a> | <a href="#imGoToMenu" title="Naviga ancora nella pagina">Torna al menu</a>
</div>
<div id="imShowBoxBG" style="display: none;" onclick="imShowBoxHide()"></div>
<div id="imShowBoxContainer" style="display: none;" onclick="imShowBoxHide()"><div id="imShowBox" style="height: 200px; width: 200px;"></div></div>
<div id="imBGSound"></div>
<div id="imToolTip"><script type="text/javascript">var imt = new IMTip;</script></div>
<script type="text/javascript">imPreloadImages('res/immnmn_0.png,res/immnlv_a.gif,res/immnlv_b.gif')</script>
</div>
</body>
</html>
but it gives me the following message:
Fatal error: Call to undefined function zem_contact_gTxt() in C:\MAMP\htdocs\castelnuovo\textpattern\lib\txplib_misc.php(812) : eval()’d code on line 13
Last edited by pierlu (2014-12-15 19:35:07)
Offline
Re: contact form ,
I think that the error is because you did not install zem_contact_lang which is needed for the plugin to function.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#9 2014-12-15 21:39:15
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,304
Re: contact form ,
pierlu wrote #286590:
<txp:zem_contact_text label="Phone" min=7 max=15/>
This line might start behaving problematic as soon as the error is gone/the plugin works. Better wrap all values in quotation marks.
Edit: Just noticed this is from the plugin help. Would have been discovered already if it were problematic. Nevertheless: I’d use apostrophes.
Last edited by uli (2014-12-15 21:43:31)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: contact form ,
uli wrote #286601:
pierlu wrote #286590:
<txp:zem_contact_text label="Phone" min=7 max=15/>...
This line might start behaving problematic as soon as the error is gone/the plugin works. Better wrap all values in quotation marks.
Edit: Just noticed this is from the plugin help. Would have been discovered already if it were problematic. Nevertheless: I’d use apostrophes.
well caught uli, I’ll correct it on my previous post
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: contact form ,
uli wrote
<txp:zem_contact_text label="Phone" min=7 max=15/>...
And perhaps a space before the closing backslash?
Offline
#12 2014-12-19 08:44:19
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: contact form ,
In the template I wrote:
<txp:zem_contact to="email@gmail.com">
<txp:zem_contact_email />
<txp:zem_contact_text label="Phone" min="7" max="15" />
<txp:zem_contact_textarea label="Your question" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
I did not get what I wanted ie a contact form.
How can I do?
edited to hide the email
Last edited by colak (2014-12-19 08:48:30)
Offline