Tiny Contact Form
Ein ganz einfaches und kleines Kontaktformular.
Einfach in den Einstellungen die Empfänger-Email-Adresse angeben und den Shortcode (siehe readme.txt) an den gewünschten Stellen eintragen. Fertig.
Tiny Contact Form 0.6
Contributors: Tom BraiderDonate link: www.unicef.org
Tags: email, mail, contact, form
Requires at least: 2.7
Tested up to: 2.9.2
Stable tag: 0.6
Little form that allows site visitors to contact you by email.
Description
Use
[TINY-CONTACT-FORM] within any post or page.Add the widget to your sidebar.
Installation
- unzip plugin directory into the
/wp-content/plugins/directory - activate the plugin through the
Pluginsmenu in WordPress - insert
[TINY-CONTACT-FORM]in your page or/and add the widget to your sidebar - check the settings (email, messages, style) in backend
- without widgets use this code to insert the form in your sidebar.
<?php global $tiny_contact_form; if (isset($tiny_contact_form)) echo $tiny_contact_form->showForm(); ?>Frequently Asked Questions
How to style?
- The complete form is surrounded by a
div class="contactform". Tags in FORM: LABEL, INPUT and TEXTAREA. - To change the form style in your sidebar you can use
.widget .contactform(plus tags above) in your templatestyle.css. - Since v0.3 you can use the settings.
Need Help? Find Bug?
read and write comments on plugin pageScreenshots
Arbitrary section
Silent Helper
- Jay Shergill www.pdrater.com
- by: Marcis Gasuns www.fatcow.com
- da: Jonas Thomsen jonasthomsen.com
- de: myself ;)
- es: Jeffrey Borbón www.eljeffto.com
- fr: Jef Blog
- he: Sahar Ben-Attar openit.co.il
- hr, it: Alen Širola www.gloriatours.hr
- hu: MaXX www.novamaxx.hu
Changelog
0.6
- new: set reciever and subject in shortcode [TINY-CONTACT-FORM to="abc@def.hi" suject="Hello"]
- now name and email of the writer are the default "From" data if non "From" given on options page
0.5.2
- new translation: hebrew, thanks Sahar Ben-Attar
0.5.1
- Bugfix: referer on pages with more post was wrong
- Bugfix: PHP4 compatibility, "static" before function deleted
- new translation: Danish, thanks to Jonas Thomsen
0.5
- new: optional captcha
- new: referer (page the mail was sent) in mail
- new translation: France, thanks to Jef Blog
0.4.3
- Bugfix: little change in stylesheet to realy hide the "hidden" fields
0.4.2
- Bugfix: little change in spam check
0.4.1
- new translation: Belorussian, thanks to Marcis Gasuns
0.4
- new: custom widget title and submit button
0.3.3
- new translation: hungarian, thanks MaXX
0.3.2
- new translation: espanol, thanks Jeffrey
0.3.1
- new translations: hr and italiano, thanks Alen
0.3
- new: more user settings
- new: language support (english, german)
- change to wp_mail()
0.2
- new: sidebar widget to easy add the form to the sidebar
0.1
- first release
created by Readme Parser
Zu guter letzt ein Style-Sheet Beispiel. Wird ja oft genug danach gefragt.
/* field names */<br />
.contactform label { display:block; }<br />
/* fields */<br />
.contactform input { display:block; width:400px; border:1px blue solid; }<br />
/* message area */<br />
.contactform textarea { display:block; width:400px; height:200px; }<br />
/* ok message */<br />
.contactform_respons { display:block; color:green; font-weight:bold; border: 2px green solid; padding:10px; }<br />
/* error message */<br />
.contactform_error { display:block; color:red; font-weight:bold; border: 2px red solid; padding:10px; }<br />
/* smaller widget form */<br />
.widget .contactform { width:200px; }<br />
.widget .contactform input { width:98%; }<br />
.widget .contactform textarea { width:98%; height:100px; }<br />



Thanks,
one question ... how to reset / clear form inputs after sending the form
somewhere at the lines 84-86 :
thanks in advance ...
You can simple reload the page or click another one.
Otherwise you can change the code (your selected lines) to
This resets the post fields.
Thanks, that was quick ...
addition I made is to change from headers :
meaning not using from admin email:
$from = get_option('admin_email');this way we can simply reply to the message as from headers will be: tcf_sender and tcf_email
Thanks again for the plugin
The right email is in "Reply-To" header so you can click "answer" in your mail client.
I have used the admin email for "from" because some servers only allow its own email accounts to send mails. So i think user emails would not send. In next version i will try to use the wp-mail function.
AbsChicken???
Nice plug-in...fruitcake!
maybe its me I don't get it.
value="abschicken"in line 79<input type="submit"...Love the plugin.
One of my questions was already entered in the comments about clearing what was input.
My other question is this.
Is there a better way to show that the message has been sent. I am getting people who are sending me the same email 3 or 4x because they are unsure if the message got through.
The easiest way ist to change the message and say that the mail was sent successfully.
For an another idea see Jays comment. Disappear the form if the mail was sent.
Thank you for your fantastic and fantastically simple plugin. I thought you might be interested to hear about my modification of your plugin. I've added two more options in the settings page for the plugin. One allows the user to specify an e-mail confirmation message. The second option is a textarea that allows the user to include whatever CSS they would use to style the contact form (this way the CSS is independent of the theme).
I've also changed the plugin so that the contact form disappears after it successfully sends an e-mail. If you're interested in it at all, you can see my modification at work at http://www.spiderdev.com/about . Also, I would be happy to share my modified code with you.
Hello Jay,
thanks for your responce. "disappear the form" is a nice idea.
). The "CSS textarea" is another great idea.
CSS i don't included intentionally to size down and speed up the plugin (TINY contact form
Thanks! I will use you work.
Do I have to insert my email address in somewhere?
I've installed the plug-in and activated it and it's showing nicely on my sidebar but when I test it I'm not receiving the message?
Set your email in Settings -> Tiny Contact Form.
In next version (soon) i will update the readme.
Hi Tom, thanks for the quick reply. That's done it.
How do I now change it so that the customer gets a message confirming that it's been sent?
At the moment it's sending and then returning to the page with all the option boxes still filled in. It might make the customer think that the message hasn't gone.
At the moment there is only a "Thank you" message. In the next version you can change these message. To clear the form now see this comment.
Thanks Tom.
Great little plug-in.
The new version is breaking the backend of my wordpress. When I would publish a post, it will publish but it goes to a blank screen.
Hello Ian,
it works in all my blogs.
Do you have update only TCF or change other settings too? Is all ok when you deactivate TCF?
I did the auto update, then I tried using ftp . The backend of WP worked fine when I deactivated the plug-in. I've since reverted back to 0.2 version of the plugin.
And strangely enough it's working again after upgrading this time.
Strange. You say it. Maybe something was wrong with the files. Not deleted or overwritten correctly.
OK, it works.
Hi ! I found your lovely plugin
, and I translated in into my language ( croatian, do you want the translation ). But I have problem -- it's not sending any mail, that is, the mail doesn't arrive and iI get error message ... 

I'm newbie in WordPress and PHP generally, so could you tell me how to set options to get success with email sending ...
Thanks
Hi Alen,
if you see the error message wp_mail() has failed. Do you get other wordpress emails like comments?
In the plugin options you have to set the TO email. If FROM email (optional) is empty the admin email will be used.