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

How do I use this in a normal template? Can’t get it to work.
showForm(); ?>Nothing happens with this. I don’t want the form in a sidebar, just be able to put it in any template file. Thanks.
Oh it stripped the code. Well the code I’m using is the one in the readme…
Hi Jay,
readme is a good idea. See point “Installation”.
Thanks for answering. I’m using that code but nothing shows up. Using the shortcode inside the content works fine, but I need to be able to manually place it in the template file.
Is there anything more I have to do for the $tiny_contact_form to be accessed/found by the template? I saw a post above about making it global, maybe this is the problem for me. Where do I have to set it to global? From where can wordpress reach it without it being a global variable?
If your template part called by a function you have “to global” the variable. Otherwise it is empty in the function.
Type
global $tiny_contact_form;just before theifbut in php tag.Hallo Tom,
dank des Beispielcodes habe ich das Formular integriert. Es funktioniert auch alles, bis auf die Tatsache, dass keine Mail nach dem Absenden des Formulars ankommt. Bestätigt wird der Versand allerdings.
Benutze Wordpress MU 2.8.3. mit Buddpress Plugin
Gruß
Mark
Hallo Mark,
habs nicht mit MU getestet. Aber wenn die Erfolgsmeldung kommt, hat WP die Mail eigentlich auch verschickt. Vielleicht im Spam gelandet?
Ne, kann absolut nicht im Spam gelandet sein.
Habe mehrfach nachgeschaut.
Das Tiny-Contact-Form sendet die Mail ja an die Adresse, welche unter “Einstellungen › Allgemein” hinterlegt ist!?
Gruß
Mark
Ähm. Sorry,
Klar! Ich hab jetzt erst wieder gesehen ,dass es im Plugin einen Eintrag für die E-Mail-Adresse gibt, an die die Mails versand werden sollen, welche aus Tiny-Contact erzeugt werden.
Aber da ist die Mail-Adresse richtig eingetragen.
Wenn du da nichts einträgst, wird die Admin-Email benutzt. Probier mal ne andere Email. Kommst du an die Sendmail-Logs ran?
Hi,
ist ganz komisch, mit manch anderen E-Mail-Adressen funktioniert es, aber nicht mit allen!? Kann es jetzt nicht in Ruhe testen, da ich mich entschlossen hatte, mit meinem DSL-Anschluss dem rosa Riesen den Rücken zu kehren und dessen Tochergesellschaft zu gehen, aber das war keine weise Entscheidung, da ich nun seit über einer Woche ohne DSL-Anschluss bin und mich mobil durch’s Inet schlagen muss.
Dachte zuerst, dass es evtl. an E-Mail-Adressen von Domains liegt, die auf dem desselben Server wie die WPMU-Installation liegen, kann ich aber nicht bestätigen!
Ich teste weiter. Wichtig ist auf jeden Fall einmal, dass es mit bestimmen E-Mail-Adressen funktioniert. Wenn ich dann mal wieder Zeit und einen funktionierenden DSL-Anschluss habe, dann schaue ich mir das Sendmail-Log an!
Gruß
Mark
Also wenn es manchmal funktioniert, dann ist die Seite ansich OK. Ich würde wirklich in Richtung Spam oder sonstige Filter suchen. Manche Server senden nur von bestimmten Absendern die auch auf dem gleichen Server/Domain eingerichtet sind. Das Log sollte da schon helfen. Sag Bescheid, wenn du wieder ein richtiger Onliner bist.
Hi,
also qmail meldet “cannot reinject message to blabla@blabla.com ”
Wobei “blabla…” hier nur ein Fake für diese Message sein soll. Die echte Adresse möchte ich selbstverständlicherweise nicht posten.
Ich habe herausgefunden, dass es wohl daran liegt, dass die E-Mails auf einem anderen Server gehostet werden (Mx-Records für Domains verweisen auf anderen Server) , als auf dem, auf dem WP läuft!
Wie ich das in den Configs wieder geregelt bekomme, weiß ich noch nicht.
Gruß
Mark
Ich hab’s nun!
Nachdem ich durch Google-Suche auf den Ordner /var/qmail/control gelangt bin, allerdings auf die Datei “virtualdomain gelinkt”, welches nicht den Erfolg brachte, habe ich selbst mal testweise die WP-Domain der Datei “me” geadded und es funktioniert nun!
Danke nochmal für den QMail-Hinweis!
Nice WE 2u
Mark
Nur nochmal um doch nichts falsch gesagt zu haben:
Also es lag doch nicht an der “me”-Datei sondern wohl an dem Virtual-Domains Ordner:
http://groups.google.com/group/hosted-the-basics/browse_thread/thread/0f1886922be85332
hi,
i put
showForm(); ?>(without spaces)at my theme sidebar.php, but the form did not show up.
i also put
global $tiny_contact_form;right before if, the form still do not show up at my site.any idea?
thanks
Amy
Hi Amy,
should work but you also can use the widget.
Hi Tom,
i already tried this (with global) and also simple code (without global).
they both did not work for me.
The contact form just simply does not show up.
Finally, i used widget to put contact form in my theme’s sidebar.
The widget option asks to fill title, that i do not want to fill.
Do i change smth in plugin to take out title?
Thanks
Hi Amy,
ahh, i failed.
I have to update the readme.txt!
To hide the widget title you can
1. you can use
.widgetTcf h2 { display: none; }in your style.css.2. with
as title an empty widget head will be shown.Thanks, Tom,
now it worked!
Excellent script worked first time
Silverboots Line Dancing Norwich
Thanks
Dolly
Hallo leute,
ich habe das Kontakt Form. über wordpress Installiert. Ich kann es in meiner Sitebar schieben und dann geht es auch. Ich würde aber gern das Formular in einer Seite haben nicht im Menue. nun habe ich mir die readme angeschaut und werde leider net schlau. Was für ein Code muss in die seite eingetragen werden damit es geht?
Danke
Hallo Gordon,
na steht doch GANZ GROß da
[TINY-CONTACT-FORM]ist ein Shortcode. Du legst dir eine Seite “Kontakt” oder so an und schreibst nur den Shortcode rein. WP zeigt dann an dieser Stell das Formular an.i m using WPML plugin to multilingual my site
unfortunately, tiny contact form does not include multilingual support (like, Contact Form 7)
can you, please, include this support at your plugin?
or any other solution?
Thanks
Amy
Sorry Amy, but TCF is “tiny”. The form uses the blog language if a translation is available.
Hey mate, great plugin.
But is there anyway of having the page NOT have to refresh to check the fields? Maybe some ajax would do the trick? Any support of this in the near future?
I don’t think it would be that much bigger plugin
Thanks
André
Hello André,
Maybe sometimes.
not much bigger but more complicated.