Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: dca_mailto_form (simple email form)
Will send everywhere except Hotmail? How bizzarre is that?
Offline
Re: dca_mailto_form (simple email form)
I find it unlikely that the script is to blame.
Offline
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
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"> </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
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
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
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
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
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
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