Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#37 2004-12-12 09:45:09
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [outdated] zem_contact, flexible mailto form
jpd,
The same input shows up fine here using Thunderbird and Kmail.
The utf-8 header is there. Looks like OE isn’t detecting it for some reason.
Can anyone else reproduce the problem using Outlook Express? I don’t have a copy I can use to test.
Alex
Offline
#38 2004-12-12 13:55:20
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [outdated] zem_contact, flexible mailto form
I try with Thunderbird and here all is OK.
I try to set iso-8859-1 coding in the plugin code without success. Same problem.
PHPMailer on the same server send correct coding.
And on my OE, others mails with utf-8 coding are correctly displayed.
Doug contact plugin give me the same bad coding.
Offline
#39 2004-12-12 14:34:58
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [outdated] zem_contact, flexible mailto form
I found the problem (not the solution) :
I try to use an other email to send the form : my provider email, and here all is OK.
Then I try to use my domain email again : here bad coding. I go to the mail source.
On this bad mail, the headers are part of the mail body (and encoding is not read by the mail client! ) because of extra empty line before headers.
See here :
=============
…
To: xx@xxxx.org
Subject: Email enquiry for Ecole Les Sources
From: xxx@yyyy.org
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=“UTF-8”
Reply-To: xx@xxxx.org
X-RealFrom: xxxxx.net
Message-Id: <20041212142013.31C73CE32
xxxxxx.net>
Date: Sun, 12 Dec 2004 15:20:13 +0100 (CET)
Name: dfgdf
Email: xx@xxxxx.org
Message: éèÃ
=============
The first empty line stop the header part.
Where is the error ? Hosting ? Plugin ?
Thanks for the help !
Offline
#40 2004-12-12 23:25:43
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [outdated] zem_contact, flexible mailto form
My guess is that one of the mail servers is picky about line feeds.
Try editing the plugin, and look for the ‘$headers’ stuff about 50 lines down. Change all the line ends from \r\n
to \n
. If that does the trick, I’ll update the plugin to make that selectable.
Alex
Offline
#41 2004-12-13 06:18:50
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [outdated] zem_contact, flexible mailto form
I just change the line ends and all is OK now on Outlook Express.
Thanks !
Offline
Re: [outdated] zem_contact, flexible mailto form
great plugin !
Anyway, there are things i must do badly … because it does’nt work :-(
It’s a css trouble :
The form simply don’t display in safari.
The xhtml content is there when i look at the page code source, but nothing appears in the browser (either labels or inputs …)
You can have a look at http://www.nocritic.net/?s=contribute
If you have safari, you should see nothing …
is there a special thing to do in the css ?
could it be a pb because i defined somewhere else in my css a class called “.label” ?
Thanks for any idea
Offline
Re: [outdated] zem_contact, flexible mailto form
pb solved ….
it was because of a class in the stylesheet using the tablecell style attribute …
must be a bug of safari.
forget previous post !
by the wa : is it possible to use an image for submit ?
i’d like to …
Last edited by luro (2004-12-13 14:39:50)
Offline
Re: [outdated] zem_contact, flexible mailto form
Thank you for the great plugin Zem. I’ve tried it and found a couple of usability issues, but perhaps I only did not figure out, how to use it properly and you may help me find the right way.
First of all, there is a bug in the current version that prevents using the form attribute — the $form variable is used with uppercase F in the source code. I fixed it in my copy and it works now.
Now to the usability issues.
1) It should redirect to a Thank you page after a successful submit. Now it posts results to the same (referring) page, what causes problems when a user goes over it agin by pressing the Back or Forward buttons.
Is there a way, how to include such a redirect to the Thank you page?
2) Reporting errors. My contact forms used to be below a couple of paragraphs of text. In case of an error in a submission, it opens the same page and the error message is hidden beolw the fold (i.e. a users have to scroll to see it, but of course, they won’t).
I know I can use the showinput and showerror attributes, but the question is how. If I place the error message on the top of the page, typically with a distinct red border, it will still be there even if no error occured.
Moreover, I’d like to give a title above the error message (something like: “There is the following errors in your submission.”) and a link to the form on the bottom of the page, but I can’t figgure out, how to do it.
Perhaps the best solution would be to post the submission to another page with the form only and the error message just above it.
Any suggestions, how to solve those issues?
Thank you,
Marek
Offline
Re: [outdated] zem_contact, flexible mailto form
Marek,
here is i think hwo to solve a part of your 1st issue :
>1) It should redirect to a Thank you page after a successful submit. Now it posts results >to the same (referring) page, what causes problems when a user goes over it agin by >pressing the Back or Forward buttons.
>Is there a way, how to include such a redirect to the Thank you page?
Here is my imlementation :
< txp:zem_contact mailto=“luro@ze-ro.net” thanksform=“usercontrib”>
this redirect to the “usercontrib” form.
You can put what ever you want in this textpattern form and it will be displayed on the same page, with the message form repeted below. This allow you to display a thank you message and may solve a part of the usability issue you raised.
(you can test it on http://www.nocritic.net/section/contribute (don’t hesitate to post, i’ll be the one behind)
Offline
Re: [outdated] zem_contact, flexible mailto form
Thank you for your suggestion, Luro.
Thanksform works well, provided the form is on the top of a separate page without any invitation above it. Otherwise it’s almost useless, because I can’t say “Please, send us your message using the form below.” and right after that: “Your message was sent. Thank you.”, and then repeat the empty form. It would be very confusing.
Moreover, my forms used to be on the bottom of longer pages and users would never see the thank you message without scrolling down.
Anyway, thanks for your help.
Offline
#47 2005-01-19 13:04:05
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [outdated] zem_contact, flexible mailto form
Zem, it would be useful to have a tag that is hidden from the visitor but is included in the generated email. It would allow zem contact to be used in different places on a site for different reasons.
For example:
<code><txp:zem_contact_hidden name=“Enquiry” value=“Brochure request” /></code>
A new “value” attribute would be needed.
Then a generated email would look like:
Enquiry: Brochure request
Full name: Lee Aston
Telephone number: 0033 233650034
Address line 1: 67 place du petit bourg
Address line 2: Les Pieux
Town/City: Nornandy
Postcode: 50370
Another might look like:
Enquiry: Seminar registration
Full name: Lee Aston
Telephone number: 0033 233650034
Address line 1: 67 place du petit bourg
Address line 2: Les Pieux
Town/City: Nornandy
Postcode: 50370
What do you think?
Regards, Lee
Edit: I noticed that zem_contact_email required=“0” dosen’t work, I get the error message ( ‘’ is not a valid email address) when submitting the form.
Last edited by lee (2005-01-19 14:17:19)
Offline
#48 2005-01-21 15:30:07
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [outdated] zem_contact, flexible mailto form
Any feedback on my suggestion Zem? If not I’ll have a go at it myself.
Thanks
Lee
Offline