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.7
Contributors: Tom BraiderTags: email, mail, contact, form
Donate link: www.tomsdimension.de/postcards
Requires at least: 2.8
Tested up to: 4.6
Stable tag: 0.7
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
Plugins
menu in WordPress - check the settings (email, messages, style) in backend
- insert
[TINY-CONTACT-FORM]
in your page or/and add the widget to your sidebar - without widgets use this code to insert the form in your sidebar.
<?php echo do_shortcode("[TINY-CONTACT-FORM]"); ?>
or
<?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
Translations
- ar: qasem gaayat.com
- by: Marcis Gasuns www.fatcow.com
- da: Jonas Thomsen jonasthomsen.com
- de: I, Tom
- 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
- nl: Erik Collou www.webmaak.nl
- sv: Thomas www.ajfix.se
- tr: Emrullah Tahir Ekmekçi emrullahekmekci.com.tr
Changelog
- new language: Turkish, thanks to Emrullah Tahir Ekmekçi
- new language: Dutch, thanks to Erik Collou
- new language: Arabic, thanks to qasem gaayat.com
- language update: Italian, thanks to Alberto Scocco www.lemappedelpensiero.it
0.7
- new: multi widgets with different receivers
- new: 5 additional fields (e.g. website, phone) possible
- new: to hide form after submit is your choice now
- new: alternative "question answer captcha"
- new language: Swedish, thanks to Thomas www.ajfix.se
- some bugfixes
0.6
- new: set reciever and subject in shortcode [TINY-CONTACT-FORM to="abc@def.hi" suject="Hello"]
- new: get subject from url like
?subject=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 */ .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; }
Hi,
I'm expecting a problem. When I submit the form I got no confirmation message but I receive the e-mail correctly.
But the error message displays good.
Any help?
Hi titi,
i have check your form, but no mind. Do you have set the OK and ERROR messages on options page. To show the OK message it have to be not empty.
First I tried to put a sentence containing simple quote that in french we are using. (l'e-mail) I realized It added me backslash each time I updated the options.
And the message confirmation wasn't working.
Then I tried with just "message sent", but it doesn't work either.
Escape the ' like ′ or ’ but "message sent" have to work.
Well it doesn't... I can assure you.
I'll try to delete and re install.
Oh i believe it, but i don't know why.
Try this version which works here at the moment. Its only the php file. So upload it per FTP in the plugin directory.
Nope... Doesn't work either.
And I got a JS popup when fields are blank. And It's in german.
Yes, but German and English. It's a try to check field without reload the page.
OK, my last hint. Deactivate all other plugins. Maybe one of them would not work with TCF.
Thank you I should thought about that before.
I found the plugin in conflict. It's "SFC - Like Button" from "Simple Facebook Connect". But I have no clue to find the problem... :s :s
Then you have to use another Facebook plugin. Or another contact form. I don't know if it work.
Maybe it works: delete the line
unset($_POST);
in function sendMail() in the tiny-contact-form.php.But that's realy my last idea.
Your last idea was the good one
It works !! ahah 
It's been weeks I try to find THE contact plugin... others plugins are in conflict with my JS, and some others are sh***.
Thanks. But I think maybe you should take a look at the SFC Like Button plugin,and try to save your "unset" function in another way.
Because many people are using it.
OK, was a hard job

I unset the all POST data. I will change it to delete only the form fields. That should work.
And a translation for the JS popup could be great
Thanks for your help and for this simple plugin.
Hi,
I'm expecting another problem. After submitting and I click just one time. I receive the e-mail 3 times. Why that?
Thank you,
Do you reload the page after sent the mail?
It's a known "bug".
No I don't. It's a known bug if we reload the page?
If you sent the mail and reload the page with confirmation message the mail will sent again because the reload sents the POST data new.
Yeah I know that because we removed the unset function. But the page is not reloaded after submitting. That's the problem!
Don't know. I use the WordPress mail function. And call it only ones.
If you remove the "unset POST". Did you try?
That is not the issue.
Ok so the plroblem is due to a conflict with 2 plugins (Simple Facebook Connect) :
SFC - Like Button : when active I receive 2 mails
and when SFC - Share Button is also active with the previous one I receive a total of 3 mails.
So there is no temporary solution ? :s
hallo,
ich wollte das "abschicken" Button ein grauer hinterground einlegen. Wie geht das? Ich habe das Script von tiny-contact-form.php versucht, geht nicht weiter. Es wäre cool, Sie mir hilfen könnten. Dank!
Google Translator?
OK, the submit button has the ID "contactsubmit". So type e.g.
#contactsubmit { background: #ccc; }
in the style field or in your style.css.
dank! Es funktioniert!
Ich muss auf jeden fall mein Deutsch verbessern.
Nicht wegen mir. Wenn ich etwas nicht verstehe, frage ich nach. Dich habe ich ja verstanden. Deutsch = OK
Hallo Tom!
Ich habe noch eine Frag, zwar ich möchte dieser Formular noch auf chinesische umsetzen. Ich glaube muss ich auch dafür mo. und po.Datei erstellen, oder? Wo soll ich noch ändern?
lg Lijing
Installiere dir dieses Plugin und erstelle die neuen Dateien direkt im Backend. Ist meine Methode.
Ein sehr praktische plugins! Schönes Wochenende!
Also the subject of the email contain the title of the blog and mine contains accent and quote. So I receive like this: "...... l & #39 ; air"
Maybe you should fix this while I will remove the title in the subject
Change the name of your blog!
I can add a free prefix to the options.
Accepting the accents and quotes is a better solution
Hi Tom,
i upload and add your plugin in my contact page,
but i have to ask u a question?
In your options page the second voice it would mean to insert the e-mail of sender for receiving a copy of its own message?
That is?
PS
Italian translation is not properly done in a correct/ right way, i hope to find some free time to sent u the right italian translation for IT version.
POST PS
in message error label i write a " ' " charater but when i save the options a " " character appeas before the " '".
I could not verify that but how the ERROR message will be displayed?
another question:
1)How to customize submit button in TCF option?
i.e. using class
2)Why in my contact form there isn’t any space beetwen captcha and the submit buttom?
A suggestion:
Did you ever thinking about changing "/" with ":" or "÷" in captcha code?
Cheers
Hi ilBI,
1. With the second (optional) email on options page you can set the FROM Email. Default is the blog admin email. A CC to the sender i will add in the next update.

2. It's difficult to keep the translations up to date. You can always sent me an new version.
3. ' is wrong escaped. It's on my check list.
4. The submit button has id="contactsubmit".
5. Space captcha-submit: try
#contactsubmit {margin-top: 10px;}
6. I think "/" is ok, on all keyboards.
That's all?
Hi Tom,
thanks for your (...many) answers.
i will sent u the italian translation a.s.a.p.
Bye
Hi Tom,
did u eve listeng about follwing trouble:
i can save the option both with your plugin that with another contact form plugin
Contact Form 7.
Usually i don't find such kind of problem during my duty with my wp blog.
Bye
sorry, i don't understand.
just use only one plugin.
Ok i forget a " 't" so:
i can' t save the option both with your plugin that with another contact form plugin Contact Form 7.
I've tried before with your plug in, than disabled your plug in and clered your code in contact page and installing the other plug in mentioned.
Did you ever seen about save option problem?
maybe caused by incompatibility with other plugins?
Cheers
and thanks for your support
you have installed tcf and cf7. and now you can't save my options? ok, that's strange. i will take a look to cf7 and made a test. give me some days.
No...the problem is: already yesterday in the afternonn o could not save your page option ( infinitive loop) so later i triey more.
See that no saving was possible i disinstalled your and i tryied with another contact form plug in: same problems with saving process.
So i think to contact you about if you ever listening about saving options problems of such kind of pligin:-)
Cheers

ok, both plugins - same issue? then your blog have a problem, not the plugins. make a clear new wordpress install. best way.
Least but not the last:
maybe some incompatibility with Simplemodal contact form?
Bye bye and sorry for the quantity of comments:-)
no, don't know this plugin.
hi..
i like your tiny contact form widget, i have had no problems with its use.. i do have one issue.. its too wide for my sidebar.. please take a look, http://www.broadwayweststudio.com . its on the lower right, how do i adjust the box width? thanks for your time.
kristina
Hi Kristina,
Maybe only the last line, because only your textarea is to big.you have to change the Style like this: