Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2004-07-23 05:36:54

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

Re: dca_mailto_form (simple email form)

Okay, I think I’ve mostly got this figured out and posted what I think here :

http://textdrive.com/forum/viewtopic.php?pid=6948#6948

I haven’t had time to test it, and I probably won’t for at least a few days, if ever. Maybe it will give you a push in the right direction.

Offline

#38 2004-08-05 14:44:40

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: dca_mailto_form (simple email form)

It doesnt want to send to Hotmail? I have a Hotmail address that I put in the tag and received nothing… I replaced it with a POP3 and it worked fine????

whaaaa???

Offline

#39 2004-08-06 11:37:19

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: dca_mailto_form (simple email form)

Will send everywhere except Hotmail? How bizzarre is that?

Offline

#40 2004-08-06 14:37:19

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: dca_mailto_form (simple email form)

I find it unlikely that the script is to blame.

Offline

#41 2004-08-06 14:40:02

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: dca_mailto_form (simple email form)

Yeah im guessing its something to do with MSN… a lot of emails go ‘missing’ at the moment. I have found a way around it using forwarders.

Offline

#42 2004-09-12 02:13:46

jimb
Archived Plugin Author
From: Chicago, IL, USA
Registered: 2004-07-22
Posts: 27
Website

Re: dca_mailto_form (simple email form)

If anyone’s interested I edited the code to produce a contact form inside a table, in a similar format to the comments forms.

<pre><code> $form = array( '<form method="post" action="'.$_SERVER['PHP_SELF'].'">', '<table cellpadding="4" cellspacing="0" border="0">', '<tr><td align="right" valign="top">' . 'name'. '</td><td valign="top">' . fInput('text','sender_name',$sender_name) . '</td></tr>', '<tr><td align="right" valign="top">' . 'email'. '</td><td valign="top">' . fInput('text','sender_email',$sender_email) . '</td></tr>', '<tr><td align="right" valign="top">' . 'subject'. '</td><td valign="top">' . fInput('text','sender_subject',$sender_subject) . '</td></tr>', '<tr><td align="right" valign="top">' . 'message'. '</td><td valign="top">' . text_area('message',160,300,$message) . '</td></tr>', '<tr><td align="right" valign="top">&nbsp;</td><td valign="top">' . fInput('submit','send','Send') . '</td></tr></table>', '</form>' ); </code></pre>

Place this in place of the current $form = array (…. section.

billboard, you can change the height/width of the form in the code, in the line that says “text_area(‘message’,300,300,$message)” – the first number is the height, the second is the width of the message field.

Last edited by jimb (2004-09-12 02:19:55)

Offline

#43 2004-09-12 02:22:47

jimb
Archived Plugin Author
From: Chicago, IL, USA
Registered: 2004-07-22
Posts: 27
Website

Re: dca_mailto_form (simple email form)

also, billboard, if you want to change the confirmation text to be h3 tags, change this line in the code:

<pre><code> return graf('Message has been sent'); </code></pre>

to say this:

<pre><code> return '<h3>Message has been sent</h3>'; </code></pre>

Hope that helps

Last edited by jimb (2004-09-12 02:23:13)

Offline

#44 2004-09-13 19:33:21

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: dca_mailto_form (simple email form)

billboard, jim,

or why not use TXP’s built in functions instead?

<code>return hed(‘Message has been sent’,3);</code>


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#45 2004-09-13 20:43:34

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: dca_mailto_form (simple email form)

I tried this plugin and found one nice big bug.

The From: row has been mixed up (atleast for my hosts e-mail server).
It should state <code>From: $sender_name <$sender_email></code>, not the other way around.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#46 2004-09-13 22:00:39

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: dca_mailto_form (simple email form)

> obeewan wrote:

It should state <code>From: $sender_name <$sender_email></code>, not the other way around.

You’re right, obeewan.

Offline

#47 2004-09-14 22:15:54

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: dca_mailto_form (simple email form)

indent wrote,

<em>“What happens on the backend with this plug-in? After I hit submit, is it plugin or native code that takes the form input and sends the email? The reason I ask is that the forms seems to have an action of just ‘index.php’.”</em>

If you have not yet got a reply to your question regarding native/non-native code that the plugin uses, after disecting it as I did, the code is non-native and part of the plugin, not of TXP.

Last edited by obeewan (2004-09-14 22:16:33)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#48 2004-09-14 22:25:45

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

Re: dca_mailto_form (simple email form)

I’m getting very agitated that I can’t get this plugin to work, I created a test section to see how well it works but everytime I hit submit I get a 404 error. I tried some of the things mentioned in this thread but they haven’t worked. I fiddled around in my htaccess file to see if the problem was the info put in there when I created the “test” section but I did it the same way as I did in creating my other sections so that looks right. Help?

Offline

Board footer

Powered by FluxBB