Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-06-04 04:42:03

ThrokFeroth
Member
From: Malaysia
Registered: 2004-02-28
Posts: 12
Website

Re: dca_mailto_form (simple email form)

Mmmm, thanks fjom, it works.

Offline

#14 2004-06-04 14:18:11

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

Re: dca_mailto_form (simple email form)

> netbeamer wrote:

You must replace the code (action=”’.$_SERVER[‘PHP_SELF’].’”) in the form-tag with something like (action=“http://www.your_url.com/contact”).

After doing this It sends the email and I get a “your message has been sent” confirmation but my email form disappears. I have to refresh my contact page for the form to reappear.

How do I get it to display the confirmation message while still keeping my email form?

I want it to act like it does if you leave out information like your name. It puts the error message above the email form.

Last edited by tinyfly (2004-06-04 14:19:17)

Offline

#15 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

#16 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

#17 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

#18 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

#19 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

#20 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

#21 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

#22 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

#23 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

Board footer

Powered by FluxBB