Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#316 2008-05-01 22:34:52
Re: zem_contact_reborn 4.0.3.20
I’m speculating a bit here about what you’re trying to do but… you shouldn’t be looking at how ZCR submits stuff by using $_POST, but rather look at the contents of the zem_contact_form/values/labels arrays after submitting the form. Those arrays contain validated and sanitized input.
Offline
#317 2008-05-06 12:04:49
Re: zem_contact_reborn 4.0.3.20
Has anyone got an image field to work on the submit button – I get an enlarged form button behind it using:
<txp:zem_contact_submit><img src=“path/to/img.png” alt=“submit”></txp:zem_contact_submit>
Offline
#318 2008-05-06 12:48:45
Re: zem_contact_reborn 4.0.3.20
Use a normal HTML submit button instead.
zem_contact_submit doesn’t really do anything special. It just creates a normal submit button. If you can create a better one using normal HTML, go for it. It’ll work fine.
Offline
#319 2008-05-07 01:20:57
Re: zem_contact_reborn 4.0.3.20
Thanks ruud – works perfectly
I love this plugin :)
Offline
#320 2008-05-08 08:52:24
- Manhog
- Member

- From: Manchester, UK
- Registered: 2004-03-15
- Posts: 24
Re: zem_contact_reborn 4.0.3.20
Hello,
I’m currently using v4.0.3.17. Not upgraded yet as the site I have the plugin installed on is a biggie and worried about it breaking stuff at the moment.
I have a weird problem. The plugin has worked fine with two different contact forms on two separate pages.
However, I’ve now got a problem that is driving me nuts.
I made a new section called ‘nomination’. I made that section use my static page template.
I made a new article that uses the ‘nomination’ section, and in that article placed an output_form call to a TXP form containing the contact form I want to use.
The contact form is called mba_nom_form.
When going to the URL for the form (mysite.com/nomination) the form shows and required fields are caught when the form is submitted.
However, when submitting a form that contains all required fields, the form is not submitted (no email is received) and TXP throws a generated 404 page on that URL (mysite.com/nomination).
I’ve used this technique of placing contact forms in static pages in sections before and it works no problem – but this one is making me tear my hair out.
I did notice phpMyAdmin complaining that PRIMARY and INDEX keys should not both be set for column ‘name’ after I added the new section in TXP. Not sure if that has anything to do with this.
Any help would be greatly apreciated.
EDIT – Just to make clear that I am using a ‘thanks’ form, but that’s not causing the error as the name when called by zem_contact thanks_form is correct, etc.
Last edited by Manhog (2008-05-08 08:53:49)
Offline
#321 2008-05-08 09:54:41
Re: zem_contact_reborn 4.0.3.20
ZCR 4.0.3.17 is a 2 year old version of this plugin with known security problems. Please upgrade first.
Offline
#322 2008-05-08 12:09:47
- Manhog
- Member

- From: Manchester, UK
- Registered: 2004-03-15
- Posts: 24
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
ZCR 4.0.3.17 is a 2 year old version of this plugin with known security problems. Please upgrade first.
Oops! Will do.
However, we found out what the problem was. A label for one of the fields had exactly the same name as one of our TXP custom fields. We changed the name of the label and everything worked again.
Offline
#323 2008-05-08 15:53:07
Re: zem_contact_reborn 4.0.3.20
If anyone reading this thread knows of a unique or cool use of zem_contact_reborn, then they can leave a comment about it in this article
There are many ways the plugin has been used and I thought it would be good to have links to them in one place without having to trawl through lots of forum pages.
Dozy P My attempt at music
Offline
#324 2008-05-13 17:35:46
Re: zem_contact_reborn 4.0.3.20
Hi,
I’m trying to uses Els’s trick to have different languages for zem_contact_reborn.
It works on some strings, but it doesn’t in others. Particularly, on ‘email_subject’, and ‘message’.
On ‘email_subject’ it seems it escapes txp tags (or doesn’t parse them) so the subject on the email has <txp:tag /> on it.
For ‘message’, it always outputs the content of the second conditional, always.
Offline
#325 2008-05-13 17:53:56
Re: zem_contact_reborn 4.0.3.20
The email subject line isn’t parsed, so adding TXP tags there won’t work.
You could try using asy_wondertag instead for the subject attribute of the zem_contact tag.
Offline
#326 2008-05-13 18:36:25
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.20
maniqui wrote:
I’m trying to uses Els’s trick to have different languages for zem_contact_reborn.
Hi Julián, I’m still using that ‘trick’ on one or two sites :) Better of course is the MLP pack, but I assume you know that, and have your reason not to use that. After I posted this trick, fpradignac mailed me his modified version of zem_contact_reborn, that allowed to add different language strings in zem_contact_lang, and call them with a new attribute in the zem_contact tag. I used it for a while (had it working with 4 languages) but dropped it again when zem_contact_reborn was updated (which happened quite often those days…). If you’re interested I can mail it to you, but of course that was 4.0.3.03, so you’d have to do some figuring out to fit it into the current version.
Offline
#327 2008-05-13 19:03:09
Re: zem_contact_reborn 4.0.3.20
@ ruud,
thanks for your help. Yes, probably doable with wondertags, or even easier, having two zem_contact tags, each one wrapped with txp:if_section.
@Els,
thanks you too. Yes, I was about to use the MLP but when I was trying to install it, it complained because the hosting was still using an older MySQL version.
So I finally did an approach to a bilingual site without using MLP.
It is a really simple site, and it could have ever been made multi-lingual without the MLP.
I will try to write a tutorial about how I did it.
Of course, nothing beats the power and flexibility of MLP.
Offline
#328 2008-05-15 12:24:16
- ricoschette
- Member
- From: Estonia
- Registered: 2005-09-17
- Posts: 176
Re: zem_contact_reborn 4.0.3.20
Maybe it’s been asked before, but I didn’t notice it when browsing this thread.
Is it possible to send form sender a little bit different copy (when using “copysender” attribute)?
For example an additional announcement besides copy of the original mail.
So, before the content it would say: “Thank you for your order. We will get back to you as soon as possible.” And then the rest of the mail would be fulfilled fields (name, phone nr, product code etc) like usually.
Tnx
Offline
#329 2008-05-15 14:13:26
Re: zem_contact_reborn 4.0.3.20
Not yet, but definitely planned for future release.
Offline
#330 2008-05-16 18:07:50
Re: zem_contact_reborn 4.0.3.20
This is a trusty standby plugin, Thanks… but I must ask…
How likely is it that we’ll see tab index attributes materialize in the near future?
Offline