Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
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
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.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
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.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
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 ;)
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
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
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
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
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
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