Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#97 2005-06-01 08:22:55
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [outdated] zem_contact, flexible mailto form
No mailto address specified
RTFM.
Alex
Offline
#98 2005-06-01 08:23:37
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [outdated] zem_contact, flexible mailto form
There was an impenetrable problem with “posting” to index.php.
Can you elaborate?
Alex
Offline
Re: [outdated] zem_contact, flexible mailto form
Hello Zem and others,
I’m trying to find a way to send the content of one of the custom fields (custom_1) through zem_contact together with the message content but hidden for the user. A nice way to do that is by inserting it in the subject of the email where the sitename is written. The subject line is created by this line of code:
$r = mail($mailto, "Email enquiry for $sitename", $msg, $headers);
If I could insert the content of custom_1 instead of $sitename it would be great. Having not more than very basic php knowledge I’m a bit lost. How should I do that? Either by adding some lines to the plugin code which I have to translate anyway or with a clever way to insert <txp:custom_field name="my_field_name" />
somewhere.
I’m using rev. 395
-kees
Last edited by kees-b (2005-06-01 13:30:06)
Offline
#100 2005-06-02 14:31:10
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: [outdated] zem_contact, flexible mailto form
Hello Zem,
I have one question regarding this plugin.
I have two different e-mail adresses eg.
x@home.nl for the webmaster
x@tref.nl for the penningmeester.
What i want is that visitors can mail to me or the penningmeester.
If a do a <code> <txp:zem_contact_select list=“Webmaster,Penningmeester”><code>
then the plugin doesn’t know the e-mail adresses.
But when i do a
<code>
<txp:zem_contact_select list=“x.home.nl,x.tref.nl”>
</code>
Then the visitor doesn’t know which person it is.
How can i solve this or is this impossible in your plugin.
Roelof
Last edited by roelof (2005-06-02 14:32:12)
Offline
#101 2005-06-09 17:20:47
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: [outdated] zem_contact, flexible mailto form
Nobody to help me
Offline
#102 2005-06-09 17:41:09
Re: [outdated] zem_contact, flexible mailto form
@ Relof
Would it be easier to simply have two contact forms.
Contact the webmasterAnd have two articles (you can use this in an article), one for each adress.
Not exactly what you want, but will do what you need without hacking on the code.
Last edited by soulship (2005-06-09 17:41:39)
Offline
#103 2005-06-13 19:33:49
Re: [outdated] zem_contact, flexible mailto form
I would also like to have functionality like roelof suggested.
I have a site that has about 10 different departments. I would like 1 contact form and a dropdown list that lets the visitor choose what department they want to send the email to.
This seems like common functionality on many sites and I use it on most of my client sites. It is very rare that when I am creating a site for a client that there is only 1 email.
Thanks for the help.
Refresh Dallas and other Refreshing Cities.
Offline
#104 2005-06-16 19:38:38
Re: [outdated] zem_contact, flexible mailto form
Having a problem here. This is the tag I am using: <code><txp:zem_contact mailto=“something@something.com” form=“contact_form” /></code> which is fine except for one thing; the form attribute doesn’t get parsed. The only thing that is ouput is the name of the form as text. So where a contact form should be, there is only, contact_form.
Refresh Dallas and other Refreshing Cities.
Offline
#105 2005-06-16 21:07:09
Re: [outdated] zem_contact, flexible mailto form
Also, Using <code><txp:zem_contact_select /></code> gives me an “uknown option” error. If I use the attributes or not I still get the same error “unknown ‘whatever I have labeld the list’”
Anybody else have these problems?
Refresh Dallas and other Refreshing Cities.
Offline
#106 2005-06-23 20:25:33
Re: [outdated] zem_contact, flexible mailto form
(bump) Any Ideas on the error stated above?
Refresh Dallas and other Refreshing Cities.
Offline
#107 2005-06-24 03:55:18
- User61
- New Member
- From: Malaysia
- Registered: 2005-04-01
- Posts: 8
Re: [outdated] zem_contact, flexible mailto form
Hmm. My contact form page wouldn’t validate. The reason being <code><txp:zem_contact_checkbox /></code> outputs <br /><br /> <code><input type=“checkbox”></code> without closing it.
Great plugin but I would’ve like it better if there’s more freedom to style/change some of the X/HTML output (especially the <code><b> </b></code> part :) But still a great plugin!
I was born intelligent, but education ruined me.
Offline
#108 2005-07-07 13:58:45
- marvincooper
- Member
- Registered: 2004-10-13
- Posts: 43
Re: [outdated] zem_contact, flexible mailto form
I get the same problem as tinyfly, i.e. the form attribute doesn’t get parsed.
Offline