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; }
como puedo hacer que los campos sean obligatorios
all shown fields are required.
hello ,
The tiny contact form looks gud
But when i send mail from it, its showing "Your message is sent" but i am not getting any emails to my id
Can anyone help me out
Do you receive mails from WordPress like comment notifications?
If you get an success message WordPress had send the email without an error.
Maybe you have to use an SMTP plugin to use the mail server and no WordPress function.
(@ english: i need the same for the comments for 2.8.4)
Hi,
setze es super gern ein. Bisher 0 Spam, da ich im kyrillischen bereich arbeite.
Jetzt hätte ich gerne das ganze für normale wordpress kommentare (wp 2.8.4 ^^) . Kann ich diese abfrage option irgendwie rüberkopieren (also den php code) oder kannst du mir vielleicht ein anderes Produkt empfehlen, wo man eine Frage selbst schreiben kann und auch eine Antwort speichert (für 2.8.4 ^^).
danke dir
Nein, das geht nicht. Du brauchst ein Anti-Spam-Plugin wie NoSpamNX (nutze ich) oder Anti Spam Bee.
I loved this form but when using on a client site I have a requirement to re-direct the user to a thank you page after form submission. How is this possible? Thanks is advance.
- Davi
A redirection is not possible in this version but on my todo.
Is there anyway I can track the sign up to this form. I wanted to add a virtual URL and track the virtual page views in Googele Analytics. Is this possible?
???
WHY IS THERE ENCRYPTED CODE IN THIS PLUGIN?????
# base64 encoding
$resources = array(
'tcf_menu.png' =>
'iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAX'.
'NSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYA'.
'AICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAABh0RV'.
'h0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAEtJREFU'.
'KFNj9GD4/58BCnYwMDI2NDTA+TBxymiQDTAMMglkAz5Mum20t4'.
'GQm9HlwZ4k1iNgtWRpIMVZINewEusksDrkYEWOQFyGAABXBYxc'.
'mDNSvQAAAABJRU5ErkJggg==',
'tcf_logo.png' =>
'iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAX'.
'NSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYA'.
'AICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAABh0RV'.
'h0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAHpJREFU'.
'SEtj9GD4/58BC9jBwMgIEm5oaMAqj00PVjGQBdgwTDHIAkow0Q'.
'4ZvAppHkQ0t2Dwhi2xLqN5ENHcAmJ9OnjVUVIMEKMXXJjREsMt'.
'oHYYwxw9agHOkMUIIlpFNO1TEdCPrFBM7YQEN4+2FuAq7NDFyf'.
'YerS0AAHa/Vp9sTByIAAAAAElFTkSuQmCC');
First: don't roar!
That are the icons. Google "base64 encoding" like written in your comment.
Sorry to yell! Please tell me, what icons? I don't see any icons and why does it have to be encrypted?
You can encode little images like logos in base64 format and include this code in your script. So you have only the script file without image files what should speed up the page a little.
I took out the encrypted code like so:
# base64 encoding
$resources = array(
'tcf_menu.png' =>
'',
'tcf_logo.png' =>
'');
It seems to still work.
I appreciate the free contact form plugin which works when no other contact forms will work. But I do not like the encrypted code.
Now you have no icons in settings menu.
I also have a little problem with the contact form.
Once I test the contact form there are 2 errors:
- a screen "please fill out all fields" (which I did)
- and the form does not send
Any link to the form?
Ich habe nun das Kontaktformular installiert und mit dem Style-Beispiel sieht es ja auch halbwegs aus.
Funktionieren tuts nur nicht und nach dem Versenden ist das gesamte Formular verschwunden, obwohl "After Submit: hide the form" aus ist. Das was ich finden konnte an Informationen habe ich umgesetzt. Was könnte ich noch tun?
mfg peter
PS: Wie müßte ein Style aussehen, das diese dünn gestrichelten Linien erzeugt wie im Beispiel?
Bei der Einstellung "After Submit" gibt es in der Tat einen Fehler. Schau ich mir mal an.
Die gestrichelte Linie erreichst du mit
border-bottom: 1px #ccc dashed;