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

Five stars = fantastic!
I tried transpose email first and unless you are an expert the level of installation information is pitiful.
This makes a cute simple widget. Thank you!
Moinsen,
sexy plugin!!!! Dankeschön!
Gibt es eine Möglichkeit die lang-file zu bearbeiten, ich bräuchte Deutsch- SIE!
Dankeschön!
English:
Thanks for this great plugin.
Is it possible to alter the lang -file I would need a polite german “Sie” instead of “Du”
Cheers,
Stefan
Hallo Stefan, du kannst die *.po Dateien bearbeiten und sie dann neu zu einer *.mo Datei “kompilieren”. Entweder offline mit “poedit” oder direkt im Blog mit dem Plugin Codestyling Localization. Damit kannst du auch ganz einfach neue Sprachen hinzufügen.
Hi,
Very great plugin! It works on a French hosting server (FREE) which is famous for its limitations in sending emails with PHP function. Great!
Now I would like to say something about a problem of spam. When you click backward in the browser the form is displayed again with all the fields filled and you have just to click again to send the same message. So, a silly spammer (they are all) can make a programme which makes backward+click submit button repetitively and send thousand of emails automatically.
I tried to include this code:
after
$result = $this->o['msg_ok'];but this has NO effect when one clicks on the backward button of the browser. Is it possible to empty all the fields surely just after the sending-submission of the form? (you understand that the captcha field is unusefull if you can send and re-send and re-send with only two clicks). Thank you.
Hello dorjee,
the $_POST variable will unset after successfully send the mail. Perhaps i can check the mail content and not send it twice.
Thanks for the clue.
Hi Tom,
thanks for the quick answer.
I believed too that “the $_POST variable will unset after successfully send the mail” but it seems that this is does not works when the user makes a backward in his browser.
If the second part of your answer is a method you suggest, maybe this could work, but is it not a little heavy-coding? Is it not possible to have a PHP action on the browser to delete the last history and oblige a refreshing of the page? Or at least changing the captcha formula… (of course i am not a PHP specialist)
Actually the idea is that when a test gives a history-1 all the fields are deleted.
The history is stored in your browser. There is no way to change this per php. Maybe i can blur the fields per javascript on every page load of the page with contactform. I will think about.
I add this:
<form action="" method="post" autocomplete="off">“autocomplete” on “off” is an interesting parameter which disallows the browser function to keep in cache the content of form fields (I found it in my bank website). So the user has to retype all text fields. Which is a first step. But unfortunately this is not a fix to the history-1 issue…
Well, I made some trying and error:
It works in firefox and chrome, but not in ie where teh fields are always filled after backward!
Hi,
other problem, in Firefox the hidden fields are displayed as more or less thin lines (not in IE or Chrome).
The solution is to add an ID for hidden type fields in the tiny-contact-form.php file (end of the file). For example: id=”hfield1″ and id=”hfield2″.
Then add this above in the CSS setting:
I tried a .contactform hidden…, but it does not works.
The “Hide CSS” already added in my plugin version! And it works in Firefox which is my favorite browser.
.tcf_input {display:none !important; visibility:hidden !important;}Also the fields have IDs tcf_name and tcf_sendit!
[...] Tiny Contact Form : Toms Dimension Comments0 Leave a Reply Click here to cancel [...]
[...] Tiny Contact Form [...]
Is there a simple way to add another field, say for phone #? That would be very useful to me. In fact I would send an immediate contribution if you could provide me with code to plug in. Thanks, Sean
A way? Yes. Simply?
You have to add the field to the form and to the send function.
For form see lines 84/85. Copy, paste and rename this subject field.
To show it in the email, see line 133. Same procedure.
I like the Plugin.
But I am having a problem with trying to have the – Name tab moved below the main tab Contact.
Check out our website to see the issue – http://www.GotJesus.tv
Thanks,
Richard
Your plugin is not TCF.
[...] Tiny Contact Form [...]