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; }
I am a complete beginner in WordPress. I have the Headway theme installed.
I've placed your form on a page, but the submit button is next to the field where the captcha is.
How can I put a line break in so that the button moves onto its own line? I tried using Firebug and inserting the html code for line break into the html, but it won't let me save it.
Am I doing something wrong?
Many thanks
James
Hello James,
see the style sheet sample above.
.contactform input { display:block;
is your friend.Hi Tom,
Love the contact form, just trying to implement it, but I want to be able to put multiple "TO" addresses. Is there any way of making this work or is it not possible with Tiny Contact Form?
Chris
Hi Chris,
just type all emails in the To-field like email1;email2;email3
Doesn't seem to allow me to do that... Is there a way of changing it directly in the PHP instead, as I will be the one setting the emails? If i can just force the PHP to go to specific addresses instead that would be possibly a way around the issue.
worked it out.. its more email1,email2,email3 not with the ; but with just a comma.
Thanks for your help Tom
Oh, ofcourse. My bad hand pressed the wrong key.

Hey,
Loading the css only on the contact form page would be cool

Cleaner & lighter code for our website
Well I forgot, a condition : if we don't use the widget thing
I know, i know, is on my todo list.
[...] Tiny Contact Form [...]
[...] + Tiny Contact Form [...]
[...] + Tiny Contact Form [...]
Are you creating one for WordPress 3.0?
Version 0.6 works in WP 3.0 too.
I need the contact form on different pages, but I can only use one instance of the widget.
Using [TINY-CONTACT-FORM] in a text widget doesn't work and I'd rather not hard code on the theme.
Is there a method, so I can duplicate the widget button?
Thanks,
Lars
Shortcodes dosn't work in widgest per default. But adding
add_filter('widget_text', 'do_shortcode');
to your functions.php can help. Not tested.More then one form wigets will possible in next version. I hope.
add_filter('widget_text', 'do_shortcode'); works nicely in WP 3.01.
Problem solved, thanks!
Hallo Tom,
ich habe lange Kontaktformular installiert und finde sehr gut.
Aber ab und zu bekommen ich auch Spammail durch Kontaktformular. Wie kann ich dieses Problem lösen.
Vielen Dank!
Lijing
Das Captcha kann Spam erschweren, aber um ihn ganz los zu werden, müsstest du das Kontaktformular abschalten.
Ich arbeite aber auch gerade an einem Update. Das wird ein zusätzliches Feld enthalten, in dem du den Inhalt vorgeben kannst, der eingetragen werden muss. Also Captcha-Alternative.
Dank für die Antwort.
zusatzlich feld(z.B.Captcha) wurd ich nicht so gerne nehmen. Weil das kann sein ein paar Kunden verloren werden durch kompliziertes Kontaktformular. Gibt es andere Möglichkeit den Spamm ausfiltert?
lg Lijing
Du benutzt das Captcha gar nicht? Dann ist Spam ja normal, auch wenn ich eine andere Funktion mit versteckten Feldern eingebaut habe. Ist eben nicht vollkommen.
Und das Mathe-Captcha sollten alle ohne Probleme lösen können.
ok. Alles klar!
Wenn Update fertig ist, ich werde gerne probieren. Vielen Dank!
Das Mathe-Captcha ist bereits in der aktuellen Version. Muss in den Einstellungen nur aktiviert werden.
Hello Tom, I administrate one sites and use on them your tiny contact form, but the sites are in two languages, so I need change text in label for="tcf-msg" and in input type="submit". How I can change it? Is it possible? Thank You.
If you empty the Submit button in settings, the visitor will see it in his browser language.
The input field labels are in the translation. You can change the code to use hard codes labels like "your words".