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: http://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 if (isset($tiny _ contact _ form)) $tiny _ contact _ form->showForm(); ?>Frequently Asked Questions
How to style?
- The complete form is surrounded by a . 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 page
Screenshots
Arbitrary section
Silent Helper
- Jay Shergill http://www.pdrater.com
Translations
- by: Marcis Gasuns http://www.fatcow.com
- da: Jonas Thomsen http://jonasthomsen.com
- de: myself ;)
- es: Jeffrey Borbón http://www.eljeffto.com
- fr: Jef Blog
- he: Sahar Ben-Attar http://openit.co.il
- hr, it: Alen Širola http://www.gloriatours.hr
- hu: MaXX http://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 ParserZu guter letzt ein Style-Sheet Beispiel. Wird ja oft genug danach gefragt.
/* field names */ .contactform label { display:block; } /* fields */ .contactform input { display:block; width:400px; border:1px blue solid; } /* message area */ .contactform textarea { display:block; width:400px; height:200px; } /* ok message */ .contactform_respons { display:block; color:green; font-weight:bold; border: 2px green solid; padding:10px; } /* error message */ .contactform_error { display:block; color:red; font-weight:bold; border: 2px red solid; padding:10px; } /* smaller widget form */ .widget .contactform { width:200px; } .widget .contactform input { width:98%; } .widget .contactform textarea { width:98%; height:100px; } - To change the form style in your sidebar you can use



![de [de]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/de.png)
![en [en]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/en.png)
![fr [fr]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/fr.png)
![es [es]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/es.png)
![it [it]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/it.png)
![pt [pt]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/pt.png)
![ru [ru]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/ru.png)
![ko [ko]](http://www.tomsdimension.de/wp/wp-content/plugins/translate-with-google/img/ko.png)
RSS Artikel

Once the visitor sends a message, what if they want to send another one? The form just thanks them, but how do they make it open up again? I hope this is not a dumb question.
Cyndi
Click the Title to reload the page.
Is there a way to modify the width of only the submit button?
try
#contactsubmit { width: 200px }Works great, thank you
Hi Tom,
Seems to be a great plugin you have here.
1/ I have an old theme with deactivated sidebar widget. So I can’t use the Wordpress widget menu to set up your contact form. But I can copy / paste the php code directly in my sidebar.php file. So could you give me the code I have to paste in this file to have your plugin set up please ?
2/ Is there anyway to prefill a text in the text area ? I would like to put an introduction sentence in the text area that would disapear (or not) when people click on this text area to write their own comment.
Thank you in advance for any advice.
Hello PA,
1. try
to add the form to a template or the sidebar.
2. look for </textarea> in the source. and type your message before this tag.
to empty the field you can use javascript. but its not easy. you have to check the text so the field is not emptyeverytime you click it.
Hi!
A stupid but necessary question. I really like the TC Form, but I want it in spanish and as I can see, the translation has been made, thanks for that. But, how do I change to spanish? Not in style.css I guess. I was looking after locale/tcf_lang and to put in es_ES.po, but where do I do that, or have I missunderstood?
Schüss
Robert
Hello Robert,
you need the file
locale/tcf-lang-es_ES.moto translate the backend/options and the labels in the form. The choice is made by WP_LANG inwp_config.phpwhich have to be “es_ES” in your case.Hello Tom,
Sorry for the delay in giving news. Thanks for your quick answer. It worked great.
I have another small problem. The TCF answers “OK mail sent” when I click on the send button. Fine… But I don’t receive anything on my mailbox…
To fix it, I downloaded the Allen SMTP plugin : http://wordpress.org/extend/plugins/wp-mail-smtp/. I receive the test mail sent by this plugin but once I come back on the TCF and try again, I still don’t receive any mail.
Did I miss something ? Is there any “link” to build between those two plugins ? I don’t fill the TO and FROM parts of your TCF but it fills the TO one automatically with the previously entered adress (correct). But filling those fields or not don’t change anything.
Thanks again for your precious help.
PA
Hello PA,
wp-mail-smtp change the method wp sending it’s mails like notifications and also TCF. If you have problems with standard php-mail function on your server. TCF is using the same wp-mail function. So i don’t know where is the problem.
Without FROM TCF use the wp-email like wordpress@yourdomain. If you see the message “OK” the mail was sent successfully throw the wp-function. More i can’t proof. Perhaps an junk/spam filter?
Hi Tom,
Thank You for this great form plugin. However recently I’ve been getting spam althoug my site has very low traffic.
Do you have any solution to prevent spam on your form plugin. I read above about your hidden field etc. but obviously it’s not working for me.
Any help would be appreciated.
Thank You
Hello Michael,
i don’t get Spam of the form. So i can’t check it correctly.
But i think about a new/other type to define the hidden fields.
Hi Tom,
I tested your spam protection by making your hidden field “visible”. There after I added a value into this field. According to your setup this was supposed to trigger the spam alert. But it did not.
I then changed the code on line 279 (php file)
From This:
if ( isset($_POST['tcf_sendit']) && $_POST['tcf_sendit'] != 1
&& isset($_POST['tcf_name']) && $_POST['tcf_name'] != '' )
To This:
if ( isset($_POST['tcf_name']) && $_POST['tcf_name'] != '' )
After testing it it seemed to work just fine.
Any comments Tom.
Thank YouMichael
Oh noooo!
I haven’t test it yet but i think the middle && is wrong. Must be a || with additional ().
if ( ( isset($_POST['tcf_sendit'])
&& $_POST['tcf_sendit'] != 1 )
|| ( isset($_POST['tcf_name'])
&& $_POST['tcf_name'] != '' ) )
Your code works. But only with one field.
Hi Tom,
Yip I think it should be fine now,
.
however I’ll stick to my hack as I’m going to make the hidden field “visibile” then hide it with CSS just for some added protection, to give the Clever bots a run for there money
Thank You Michael
I had the same idea. The CSS comes with next update.
i don’t know why, but “display: none” for .tcf_input doesn’t work any more combined with “display: block” for #tcf-form input
i worked around this issue with “visibilty: hidden”
can you try
.tcf_input {display:none !important; }? i think the#tcf_formcss overwrites the other css.