Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#229 2017-07-04 11:36:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,436
Website GitHub

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

colak wrote #306190:

subject=“State Machines inquiry”

I’m confused! If you add that attribute to your main <txp:zem_contact> tag, then yes, it’s hard-coded. You’ll always see that subject line in all received mails.

If you add a select list to your form, it’s just another field. It gets sent in the body of the message as a separate field, as normal, and appears in your email with the given label.

What makes a particular select field “special” is if you hook into one of them using the subject_form (or to_form) attribute instead. That then allows you to extract whatever is chosen by the user and pipe the value to a dedicated part of the email: the subject line, and the recipient respectively in these cases.

The select fields still get sent in the email body, regardless. Look at a received mail and you’ll see the organisation displayed in it.

So if your goal is to allow users to chose what their email is “about” then add a select list and hook it into the subject line via the subject_form attribute. If your goal is to just change thedefault “[Site name] > Enquiry” subject line to something else for all emails, hard-code it in the subject attribute of your main <txp:zem_contact /> tag.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#230 2017-07-04 13:07:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,081
Website GitHub Mastodon Twitter

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

No reason to be confused. I’m the one who was the space cadet here. Hard-coding it in the <txp:zem_contact_select subject="SMI" .../> did the trick.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#231 2017-07-04 13:35:27

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,436
Website GitHub

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

colak wrote #306193:

Hard-coding it in the <txp:zem_contact_select subject="SMI" .../> did the trick.

Then that’s a bug/undocumented feature ;-) It’s not supposed to support that attribute. I’ll have to investigate.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#232 2017-07-04 19:06:20

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,081
Website GitHub Mastodon Twitter

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

Bloke wrote #306194:

Then that’s a bug/undocumented feature ;-) It’s not supposed to support that attribute. I’ll have to investigate.

Are you sure? From the plugin’s help:

subject="subject text"
Subject used when sending an email. Default is the site name.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#233 2017-07-04 20:14:04

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,436
Website GitHub

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

Absolutely. That attribute is only officially supported in the <txp:zem_contact> tag, not in the <txp:zem_contact_select /> tag.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#234 2017-07-05 07:54:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,081
Website GitHub Mastodon Twitter

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

Bloke wrote #306196:

Absolutely. That attribute is only officially supported in the <txp:zem_contact> tag, not in the <txp:zem_contact_select /> tag.

OK I know I am tired and I am confusing everyone else. Here is what I have working, no bug:

<txp:zem_contact to_form="my_zem_contact_to_form" subject="SMI" thanks="Thank you, your message has been sent.">
<txp:zem_contact_text label="Your name" required="1" /><br />
<txp:zem_contact_text label="Your surname" required="1" /><br />
<txp:zem_contact_email label="Your email" name="Email" required="1" /><br />
<txp:zem_contact_text label="Your website" required="0" /><br />
<txp:zem_contact_select name="Organisation" label="Select organisation you wish to contact" options=",Project coordinator,aaa,bbb,ccc" /><br />
<txp:zem_contact_textarea label="Message" required="1" /><br />
<txp:zem_contact_checkbox label="To prove that this is not spam, check this box before clicking the send button." /><br />
<txp:zem_contact_serverinfo name="REMOTE_ADDR" label="IP number" />
<txp:zem_contact_serverinfo name="HTTP_USER_AGENT" label="Browser" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#235 2017-07-23 05:35:38

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 453
Website

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

phiw13 wrote #305661:

Did you miss this post ?

(IOW there are no Japanese language strings available)

Thanks. I missed that! It also appears that I receive no updates from the forum anymore… Will check that out, too.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#236 2017-07-23 05:36:50

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 453
Website

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

Bloke wrote #305662:

Sorry for missing your request. Have you added Japanese strings to the plugin? Are they in your database if you, for example, query it:

select * from txp_lang where name like 'zem_contact%' and lang = 'ja-jp'...

Edit: phiw13 was faster!

Thanks, Stef. I missed this response completely. It appears that I receive no updates from the forum anymore… Will check that out, too.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#237 2017-07-23 05:51:48

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 453
Website

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

phiw13 wrote #305661:

Did you miss this post ?

(IOW there are no Japanese language strings available)

Once again thanks. And Steff, too. I checked. There are indeed no Japanese language strings. How can I fix that?

Last edited by Kjeld (2017-07-23 05:53:50)


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#238 2018-02-28 18:07:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,081
Website GitHub Mastodon Twitter

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

We have really bad spam attacks via ZCR for some weeks now. I have pap_contact_cleaner and Stef’s suggestion at work. Is there a way I can stop them?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#239 2018-03-01 00:02:46

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

neptho wrote #308729:

Although this is ancient history-

I suggest everyone have a look at com_connect, if you haven’t already joined this decade. ;)

This quote is from “zem_contact_reborn 4.0.3.20”-Plugin Support-Thread.
I thought, we have with “com_connect” an another contact-plugin for textpattern? Would work “com_connect” for you and get no spam? For my new website works com_connect very fine. Here is the thread for ‘com_connect’-Plugin

Offline

#240 2018-03-01 19:21:55

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: zem_contact_reborn v4.5.0.0: contact mail form processing

What about implementing reCaptcha? https://www.google.com/recaptcha/
I guess someone tried that before…

Last edited by jayrope (2018-03-01 19:23:24)


A hole turned upside down is a dome, when there’s also gravity.

Offline

Board footer

Powered by FluxBB