Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2004-06-04 15:50:30

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: dca_mailto_form (simple email form)

also, if you send the email and then refresh the confirmation page it resends the email and it will resend the email every time you refresh the page

Offline

#17 2004-06-15 20:32:15

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: dca_mailto_form (simple email form)

So if I replace
<code>return graf(‘Message has been sent’);</code>

with
<code>return graf(‘Message has been sent’. join(n,$form));</code>

it displays the “sent” message and the form but the form fields are still filled in. How to I get it to clear the fields while displaying the “sent” message and the form.

Offline

#18 2004-07-01 09:18:25

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: dca_mailto_form (simple email form)

==

How can I customize this plug to be Danish?

EDIT: Found out what to replace:

graf(‘Navn’.br.fInput(‘text’,‘sender_name’,$sender_name)),

==

Last edited by raveoli (2004-07-06 07:38:19)

Offline

#19 2004-07-03 18:50:31

galactico
New Member
Registered: 2004-06-25
Posts: 4

Re: dca_mailto_form (simple email form)

I’m sorry for asking this, since everyone seems to know. Where do I put the plugin? Which folder? Mine doesn’t seem to work.

Offline

#20 2004-07-03 19:13:14

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

In your Textpattern interface goto admin > plugins click Install plugin, select the file which you should have downloaded to your desktop, then click install. After it’s installed there is a field on the right side of the page that is ‘Active No’ Click the ‘No’ and it will be active.

Then stick this : <txp:dca_mailto_form email="youremail.address”/>@ on the page you want the form to display. Be sure to actually replace your@email.address with a valid email address.

Last edited by Damelon (2004-07-03 19:16:09)

Offline

#21 2004-07-03 19:28:15

galactico
New Member
Registered: 2004-06-25
Posts: 4

Re: dca_mailto_form (simple email form)

Thank you Damelon.
I can’t believe I couldn’t figure that out!

Offline

#22 2004-07-03 20:52:09

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: dca_mailto_form (simple email form)

Galactico, you are not alone:-)

It took me a few minutes as well to figure it out when I was about to use my first plugin:-)

In webdesign most problems that take up our time solving has the simplest solutions;-)

Offline

#23 2004-07-15 17:44:59

galactico
New Member
Registered: 2004-06-25
Posts: 4

Re: dca_mailto_form (simple email form)

Hehe you got that right raveoli.
Unfortunately I’ve come across another problem.
After installing my plugin, activating it to “yes” in the admin section of textpattern, I still get problems.

The form shows up on my contact us page, but when I filled it out and clicked “Send” to test it out, it didn’t go through. I changed email addresses, I tried everything. For some reason, you can fill out the form, but when you hit “Send”, nothing happens and it takes me back to the home page.

Anyone know why?

Last edited by galactico (2004-07-15 17:45:51)

Offline

#24 2004-07-15 18:40:49

nimnix
Archived Plugin Author
Registered: 2004-05-26
Posts: 63
Website

Re: dca_mailto_form (simple email form)

In the plugin code, replace
action=”’.$_SERVER[‘PHP_SELF’].’” in the form-tag with
action=”’.$_SERVER[‘REQUEST_URI’].’”

That worked for me.


textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki

Offline

#25 2004-07-15 19:48:22

galactico
New Member
Registered: 2004-06-25
Posts: 4

Re: dca_mailto_form (simple email form)

Perfect!

Thanks a lot nimnix.

Offline

#26 2004-07-21 12:39:35

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

Is there an easy way to modify this with another field so you can have a dropdown menu with various email addresses so the user can select who they want to sent their message to?

Offline

#27 2004-07-22 03:34:41

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

Also, is there any way to modify this so the “Thank You” page kicks you to a different template? Right now I have some explanatory text on the main contact form page, but even after the form is sent, it remains because it’s reading from the same template.

Offline

#28 2004-07-22 04:10:22

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

I know I’m evil for suggesting such a thing, but have you given any thought to : http://nms-cgi.sourceforge.net/scripts.shtml

Really, it is easy to configure and will do what you want for both multiple recipients and redirecting.

Offline

#29 2004-07-22 15:20:12

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: dca_mailto_form (simple email form)

Thanks for the pointer Damelon

Offline

#30 2004-07-22 15:23:06

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

And Jeff, I had written up a how-to on TXD for a single recipient. It has a couple of details useful for multiple recipients as well : http://textdrive.com/forum/viewtopic.php?id=105

Offline

Board footer

Powered by FluxBB