Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2007-02-28 14:47:23

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud:

Thanks for the response. Sorry, now I have a dumb question, but when I use the to_form … what code goes in the actual page …

Your second part makes sense, and I am actually contemplating an alternate design to accomidate the form on the actual page …

Thanks, again …

progre55

Last edited by progre55 (2007-02-28 14:47:42)

Offline

#32 2007-02-28 15:56:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

<txp:zem_contact to_form="name_of_to_form" ....

And name_of_to_form is the TXP form containing the bit of code that I posted in my previous posting (which I’ve just updated, because it can be done much simpler than I first suggested)

Last edited by ruud (2007-02-28 16:04:21)

Offline

#33 2007-02-28 16:04:06

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud:

thanks. I will test it out later today.

progre55

Last edited by progre55 (2007-02-28 16:04:18)

Offline

#34 2007-02-28 18:54:04

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

thx for this great plugin… I have one question. It’s possible to implement something like incremental ID? For expamle I want to use this plugin as a support form, so it would be great if e.g. in the subject of sent email would be en ID number (so: ID + subject typed in subject input). I guess it would be need to use some table in database, where would be this ID saved.

Offline

#35 2007-02-28 19:37:36

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

beztak, the subject_form can be used to execute php code using the <txp:php> tag, so if you want to store an ID somewhere and at the same time use it in the subject, that’s the perfect place to do it.

Last edited by ruud (2007-02-28 19:39:12)

Offline

#36 2007-02-28 19:59:17

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

oh, of course, thank you. I have one idea ;) maybe it’s stupid… if so… sorry. For me it’s easist to style form if label tag is behind input, textarea, select etc if no break is defined – so label and input are on the same line (like here http://thebat.web-art.cz/kontakt). But it’s just an idea ;) always I can hardcode your plugin, it’s a matter of one minute.

Offline

#37 2007-02-28 20:17:48

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

beztak, if you think about it, that would be a poor semantic choice, even if your name=”“ attribute is defined. You can achieve the look you are going for by simply wrapping the form inputs in block level tags (list or paragraph for instance). Then give your labels a specific width and your form input fields will all left-align vertically to the right.


Offline

#38 2007-02-28 21:23:24

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

ma_smith wrote:

You can achieve the look you are going for by simply wrapping the form inputs in block level tags (list or paragraph for instance). Then give your labels a specific width and your form input fields will all left-align vertically to the right.

Maybe you’re right. I think I tried this many ways but result never was what I want… But I will try it again ;)

Offline

#39 2007-03-02 14:14:02

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: zem_contact_reborn 4.0.3.19 (old version)

Please tell me if i’m doing something wrong here. What I want is the email to be sent to the person filling the form. Here’s how i’ve set it up:

<txp:zem_contact copysender="1" to_form="to" from="my@own.email" copysender="1">

and the “to” form looks like this :

<txp:php>
  global $zem_contact_form;
  echo $zem_contact_form['Email'];
</txp:php>

But when i fill in the form it says “Sorry, unable to send email.” I know the mail function is enabled, so what am I doing wrong?

Offline

#40 2007-03-02 15:39:09

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

What happens when you submit the form in this more simple setup:

<txp:zem_contact to="my@own.email" from="my@own.email">

And if that still gives errors, make sure that “own.email” is your own domain (same as the website where this form lives).

Offline

#41 2007-03-02 16:18:22

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: zem_contact_reborn 4.0.3.19 (old version)

It works then. It’s really only due to the to_form.

Offline

#42 2007-03-02 19:00:47

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Which version of this plugin are you using?

——-
If you want to send a copy of the mail to the person filling out the form, you don’t need a to_form.

<txp:zem_contact copysender="1" to="your@email" from="my@own.email">

——-
If you don’t want to get email yourself, but do want the submitter to get an email, then you’d do:

<txp:zem_contact to_form="to" from="my@own.email">

With a “to” form like this (to make sure that it is a valid looking email address). Note that it says zem_contact_*from*:

<txp:php>
  global $zem_contact_from;
  echo $zem_contact_from;
</txp:php>

Or for testing, try putting nothing but an email address in the “to” form (no linebreaks or php tags!)

Offline

#43 2007-03-02 20:25:00

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: zem_contact_reborn 4.0.3.19 (old version)

Ok, thanks. I was being stupid and thought copysender was sending it to the email adress in the from attribute.

Offline

#44 2007-03-03 10:09:42

ramblingwebgirl
Member
From: Melbourne, Australia
Registered: 2005-04-24
Posts: 15
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Hi. This may be a very silly question / simple fix, but is anyone else having a problem with the break for <txp:zem_contact_text />? I’m using break='', but no matter what I do I can’t get the label and the input field on the same line even though the break='' tag is working for all the other tags. You can see what I’m talking about at the bottom of the page here

Am I missing something? Thanks in advance.

Offline

#45 2007-03-03 10:50:58

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

In your style sheet, look for “.entry input”. You have “float:left” set there which makes ‘input’ a block level element, so it moves to a new line.

Offline

Board footer

Powered by FluxBB