Textpattern Forum

You are not logged in. Register | Login | Help

#41 2004-12-13 06:18:50

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 440

Re: [outdated] zem_contact, flexible mailto form

I just change the line ends and all is OK now on Outlook Express.

Thanks !

Offline

#42 2004-12-13 10:31:48

luro
Member
From: Paris France
Registered: 2004-10-12
Posts: 16
Website

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

#43 2004-12-13 14:29:26

luro
Member
From: Paris France
Registered: 2004-10-12
Posts: 16
Website

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

#44 2005-01-09 11:50:12

Marek
New Member
From: Prague, Czech Republic
Registered: 2004-12-12
Posts: 7
Website

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

#45 2005-01-09 13:09:29

luro
Member
From: Paris France
Registered: 2004-10-12
Posts: 16
Website

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

#46 2005-01-09 14:01:39

Marek
New Member
From: Prague, Czech Republic
Registered: 2004-12-12
Posts: 7
Website

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

#49 2005-01-21 23:02:07

zem
Developer emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579
Website

Re: [outdated] zem_contact, flexible mailto form

Lee,

I’m busy working on other things at the moment. You’re welcome to try yourself – the software is GPL.

I’ve had quite a few requests for new features recently. The plugin has already taken substantially longer to maintain and support than was covered by the ransom. What do people think of the idea of a second ransom, to cover the time involved in adding a bunch of new features? (extra field types, user-entered subject line, file attachments, POST-REDIRECT-GET to eliminate back button warnings, etc)

The alternative is waiting until I have the spare time to work on it, which will take a while.


Alex
tstate

Offline

#50 2005-01-22 10:30:36

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [outdated] zem_contact, flexible mailto form

Hi Zem,

I had a go myself and came up with a way to have developer-entered subject lines. So for example one form can be used for “Request a call back” and the code would be:

(notice, subject=)

<code><txp:zem_contact mailto=“lee@mail.com” form=“call_back” subject=“Call Back” thanksform=“call_back_thanks” /></code>

Then a form on a different page might be to request a brochure, then the code would be:
<code><txp:zem_contact mailto=“lee@mail.com” form=“brochure” subject=“Send out brochure” thanksform=“brochure_thanks” /></code>

The e-mail then sent to lee@mail.com has a custom subject line.

The idea of another ransom is OK with me if you bring in some big features. But I think the back button and refresh warnings should be fixed because this isn’t something you would really expect from a $200 bit of software. EDIT – I take it back, sorry.

Edit: An handy new feature could be the ability to compare one field to another, so if I ask for an email address and get the visitor to re-type it I can make sure there the same.

Here is the code for the developer-entered subject line:

Note: the line #‘s might not be exact but you’ll get the idea.

Add this at line 11
<code>$subject = (empty($atts[‘subject’]) ? ‘’ : $atts[‘subject’]);</code>

Change line 59 to
<code>$r = mail($mailto, $subject, $msg, $headers);</code>

You can now use Subject=”“ as show above.

Note: You will need to use subject= or the sent e-mail will have no subject line. There is no default.

Last edited by lee (2005-02-08 17:37:41)

Offline

Board footer

Powered by FluxBB