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 />



Ditto to Ian's comment above. Spam has been a real problem. Any fix? Thanks for a exceedingly simple contact form!
I have hidden fields that must have the correct value. It works a little like the "Yawasp" plugin for comments which works fine on my blog. I think i add a little captcha.
Hello Tom, you Tiny Form is have a great function. But I need to fiz the appearance, because it shown as a single line. See my contact page :
http://basuki.biz/?page_id=76
I don't really understand CSS. What must i do?
Thx b4
Now is better when i change the width. But i still need it have an enough space between line.
http://basuki.biz/?page_id=76
If i have understand you correctly you can try:
.contactform input { display:block; margin-bottom:20px; }Yeah, now i have a better contact page with your amazing plugin
Thanks a lot Tom! (sorry for my bad english)
Hey tom, can you look at http://andymalhan.com/?page_id=83 and suggest why the form is not aligning properly?
Your message box is display:inline (standard).
Try
I'm currently trying to install the contact form on my wordpress's sidebar but it doesn't work. What do I have to write exactly to have it show? I typed [TINY-CONTACT-FORM] into a post and the form will show automatically but not when I have it on my sidebar. I am customizing my sidebar so I have a sidebar.php. Would I have to do anything different?
Hello Alan,
why you don't uses the widget?
I want to give a little contribution, translate to Indonesian. But how Tom?
Hello Oki,
you can use "poedit" to change an *.po file of the Plugin. Or install the great Codestyling Localization plugin to add an new language in WordPress backend directly.
Hi Tom,
What should I look at if when I hit send nothing happens - no email , no error, nothing? I had modified the php file quite a bit to remove the subject field had intermittant problems with that behavior, but when I left it last week I thought it was working. Alas - When I checked it again today it was not working. I deleted everything excpet my styles and installed 4.0, and left the subject field alone this time, but it still isn't working. I think something might be left over in the database because my settings remained after I reinstalled. I wanted to clear that too but I can't find which table they are in.
Thanks for any advise.
Greta
More information:
The re-install is working better than I thought - It works when I put it in a page, but the message isn't sent and the error/success message isn't displayed when it is loaded as a sidebar widget.
Thanks again.
Greta
I discovered some more - The widget version doesn't work from the home page, but it does from the other pages. Maybe something to do withaction="'.get_permalink().' not being able to display the text in the sidebar? If I hard code that to another page it works, but that is not where I want that text to display.
Greta
Hello Greta,
i have just tested the plugin in sidebar on the Index/Start page. The mail was send and the message was displayed. But the permalink was the first post in the loop of the Index page. So this page loaded if the form was sent. That is the "error" i found.
The options are in wp-options: "tiny-contact-form". This entry will delete if you deactivate and delete the plugin on the plugin page.
Hi Tom, thanks for the quick reply.
Is your home page a blog or a static page? I suspect my problem as to do with having a static home page - there is no post to go to. The email was definitely not being sent.
I got it to work by hacking the php file. I first tried to use
if (is_home(') ), but that didn't work - maybe that is related to the other problem. So I usedif (is_page('2') )which is the page in question, and appended index.php$action = get_permalink(); //new variable
if (is_page('2') ) { $action = get_permalink().'/index.php';} =
...
I'm not so good with php so I don't doubt there is a better way to do this. I don't like coding this to a specific page and would like to find out why is_home doesn't work, but for now this works for the site I'm building and I can fix it better later.
Thanks again. I'm curious if you agree with my diagnosis of the static home page being an issue.
Greta
Hello Greta,
my home page is the index (10 last posts). I will test
action=""which gets the current url. Perhaps it works on all pages. You can also try$action="/"without the permalink before.But if your hack is working - all ok.
Servus Tom,
eine kurze Frage: gibt es eine php-Funktion um Dein Kontaktformular direkt in ein Template einzubinden? Vielen Dank uns schönes Wochenende!
Versuch mal
Hi I am actually coding a premium wordpress theme and I Want to provide your plugin for download along with the theme with some modifications to styling, to the users. Can I do that ? is that ok with you ?
Hi, you can use it in your theme. But if you change some i can't give support. It's your part.