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: 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 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
Silent Helper
- Jay Shergill www.pdrater.com
- by: Marcis Gasuns www.fatcow.com
- da: Jonas Thomsen jonasthomsen.com
- de: myself ;)
- 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
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 Parser
Zu guter letzt ein Style-Sheet Beispiel. Wird ja oft genug danach gefragt.
/* field names */<br />
.contactform label { display:block; }<br />
/* fields */<br />
.contactform input { display:block; width:400px; border:1px blue solid; }<br />
/* message area */<br />
.contactform textarea { display:block; width:400px; height:200px; }<br />
/* ok message */<br />
.contactform_respons { display:block; color:green; font-weight:bold; border: 2px green solid; padding:10px; }<br />
/* error message */<br />
.contactform_error { display:block; color:red; font-weight:bold; border: 2px red solid; padding:10px; }<br />
/* smaller widget form */<br />
.widget .contactform { width:200px; }<br />
.widget .contactform input { width:98%; }<br />
.widget .contactform textarea { width:98%; height:100px; }<br />



Thanks for the response.
Another question. I've made the stylesheet like the one above. Is there anyway to put the submit button lower having a space between the textarea and button, and make it rounded?
Thanks a lot.
Great plugin, but is there an easy way to change the HTML submit button so I can submit the form with javascript and an image instead? Many Thanks
I think
type="image" src="your img"instead oftype="submit"should work.Hi Tom
Ich habe eine blöde Anfängerfrage:
Bei mir funktioniert die Mehrsprachigkeit nicht.
In wp-config ist richtig gesetzt: define ('WPLANG', 'de_DE');
Woran kann das sonst noch liegen (ich fand im Blog keine Antwort)?
Besten Dank für deine Hilfe
Hallo Achilles,
der Eintrag ist richtig. Ist nur das Plugin englisch oder das ganze Blog/Backend?
Hallo Tom
Nur das Plugin ist englisch
Das ist natürlich schlecht für mich.
Lade das Plugin bitte mal per FTP in dein Blog hoch. Ich hatte schon mal den Fall, dass beim automatischen update die Sprachdateien nicht erkannt wurden. Warum auch immer.
Danke für die promte Antwort.
Ich habe das Plugin gelöscht und neu geladen. --> Funktioniert leider immer noch nicht
Zur Info: Ich habe das deutsche WP 2.5.1 installiert (weil mein Hosting - Provider diese Version installiert).
Danke - however- für deine Bemühungen!
Achilles
OK, 2.5 könnte nun natürlich auch ein Problem darstellen. Ich befürchte, dass die Art, wie ich die Sprachdateien einbinde erst am 2.7 funktioniert. Sprich mal mit deinem Anbieter. 2.5 ist ja doch sehr veraltet.
ähm ich glaub ich hab mich falsch ausgedrückt oder versteh etwas nicht.
Ich glaube was ich meine betrifft den Header von der Email.
Im Header der Email wird folgendes angezeigt:
aber ich möchte, dass der Header so ausschaut
also der Name desjenigen steht, der eine Mail über das Kontaktform geschickt hat.
Zeile 116 habe ich abgeändert
$from = $this->o['tcf_email'];Hat das Eine mit dem Anderen nichts zu tun?
Verstanden haste wohl alles richtig, nur falsch gelesen.
Man achte auf das
$_POST.$from = $_POST['tcf_email'];Manchmal sieht man den Wald vor lauter Bäume nicht!
Ich bin schon fast verzweifelt gewesen, denn ich hatte alle Änderungen so gemacht, wie oben geschrieben wurde, hab sogar das
$from = $_POST['tcf_email'];geändert und trotzdem wurde mir noch immer das Head in der Email, wie oben beschrieben, angezeigt. Es war ein Gedankenblitz und das deaktivieren von dem Plugin "Mail From" hat das Problem gelöst!
Nun läuft es wie es soll, VIELEN VIELEN DANK für die Hilfe!!
Hello,
Great Plugin, thanks! I have just a small problem: I changed the labels in tfc-lang-de_DE.po to polite german form.. but the modified labels do not show up in my contact form. I then deleted to plugin, downloaded the zip and installed it manually (with modified .po file) but still not the good labels.. I believe it has something to do with the .mo file. Can anybody please help me?
Thanks in advance, Oliver
Hallo Oliver,
spricht man in deinem Teil der Schweiz auch deutsch? Wäre einfacher.
Also die po Dateien müssen zu mo Dateien "kompiliert" werden. Diese werden eigentlich benötigt. Das kannst du entweder mit dem Programm poedit machen oder mit dem Plugin Codestyling Localization direkt im Backend.
Aber was ich denn ein "polite german form"?
Hallo Tom,
natürlich spricht man hier in Bern auch Deutsch.. sorry, war wohl geistig umnachtet! Mit german polite form meinte ich die Sie-Form!
Also, ganz herzlichen Dank für Deine rasche Hilfe und auch für das super plugin!
Gruss, Oliver
Also so richtig deutsch ist das aber auch nicht.
Und in der Schweiz gibts ja auch andere Gegenden, daher habe ich es nicht gleich vorausgesetzt. Freut mich, wenns klappt.
Great plugin.
How do I shorten the captcha answer input field?
To have the captcha question and answer input field on the same line.
Thanks,
David
Hi David,
use
#tcf_captcha{ width: 100px; }in your style.css or the style sheet field on options page.Thanks, that shortens the input field but the captcha question and answer input field are not on the same lime!
I think all label tags are
display: block;in you stylesheet. To change only the catcha label you have to change line 575 in the plugin file<label for="tcf_captcha">to
<label for="tcf_captcha" style="display: inline;">Also you can try
#tcf_captcha{ width: 100px; display: inline; }in the stylesheet.
Hey...I love this plug-in so far. Easy to set up...working great with 2.81!! One question though. The form is set up to go to my gmail and when it shows up in my inbox, gmail says its from "Wordpress". Is there anyway to change this? I've tried altering the php line 116 to: $from = $this->o['tcf_email'];
Any ideas? or am I changing the wrong part of the code? I've also changed the subject string and that change shows up in my inbox...so I'm lost here. Any help is appreciated. Thanks!!
Hello Brett,
this is not soooo easy because wordpress set up most of the mail data. Perhaps in next version i will include a new option.
You can make an workaround. Create a
functions.phpin your theme directory if it's not exists. Add the following code.But than all emails (like comment notification) of the blog will have this FROM too.
Thanks Tom, I'll try that out. The wordpress site I'm setting up is more for CMS purposes than blogging, so I'm not worried about blog comments. But I'm kinda new to PHP so is there a way I can call the $name variable from the tiny-contact-form.php? If not I can just set up a generic FromName in that function just so the client doesn't see "Wordpress" when they get contact from their website.
Thanks again! Its great to see a developer actively helping out the users of their plugin!
For use the TCF name wait for the next update. I will include this function. Otherwise use the method above to change the from nam on every mail wordpress will send. I think the blog name is a good choice.
Oh, thanks for your thank.
Hey, super Plugin. Habe etwas herum probiert, aber dank Deines Stylesheet-Beispiels konnte ich (als Anfänger) auch das gut ändern! Danke!
[...] Tiny Contact Form - indir Alıntı: [...]
[...] Tiny Contact Form – indir WordPress contact form plugin [...]