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



[...] Tiny Contact Form [...]
HI,
Thanks for the great plugin.
I have set this up so it is in my sidebar but I want to use it to collect:
Name:
Telephone:
Message:
I don't want to collect subject or email.
Which parts of the code do I need to comment out or change to do this?
Hope you can help,
Cheers, Ian
Hi Ian,
to change the fields you have to change the code on some locations. It's not so easy because e.g. the email will used as emails "from".
But you can rename "Subject" to "Telephone" in showForm():
<label for="tcf_subject">'.__('Subject', 'tcf-lang').':</label>to
<label for="tcf_subject">Telephone</label>To show right error message change checkInput()
$error[] = __('Subject', 'tcf-lang');to
$error[] = 'Telephone';But all fields, email too, are required.
Thanks a lot for that Tom
Hi Tom
maybe you can help,,:)
i put the code inside a post, but in the main page -index.php - where the post displayed i get the" [TINY-CONTACT-FORM] " instead of the form itself.
i use
for displaying the post..
you can see it here
http://www.circusloco.com/#contact
thanks for any help
mili
Hi mili,
why you don't use the wordpress loop? So you have to include the shortcode function manually. I think this code should work.
wwwoow. you are fast & good!

thanks!!
Hello again Tom
i have 2 more questions regarding the form:
1. after submiting the form (with or without success) i would like the page to stay in the same anchor point - http://www.circusloco.com/#contact-
and not to scroll to top, how can i do it?
2. after sending the mail the form disapear, can i get an empty form again + the success message?
(i was looking in the comments but couldnt find the answer)
thanks in advance
mili
Hi milli,
1. your anchor have been
#contactnot#contact-2. why? if the mail was sent you don't need the form. a reload of the page will show the form.
thanks
but still after i click on submit button the url changes from
http://www.circusloco.com/#contact
to
http://www.circusloco.com
where can i control that it will remain in
http://www.circusloco.com/#contact
?
Try to change the form tag
action=""toaction="http://www.circusloco.com/#contact". But then all contact forms on your site will have this "landing page".Hi again Tom,
Thanks for your help last time. My TCF is working fine now and has got me my first lead, however, I now have another problem.
I initially enabled captcha but the questions are too difficult
Well, not difficult but a few of the non-technical people didn't know what / or * meant and one didn't know the answer when you divide something by 1 or 0
I turned captcha off but am being spammed to death by bots so really need to enable it again. Is there a way to make the captcha easier, like a simple '2+2' rather than '17/1'?
Cheers,
Ian
Hi Ian,
my mother always said "don't speak wiht people who don't know * or /". Every 10 years old scoolboy can solve these arithmetical problems.
But you can change line 544
$operation = rand(1, 4);to
$operation = rand(1, 2);to only use + and -.
Hello,
How do you change the text color?
Insert in style sheet field:
#tcform label { color: white; }Otherwise the form uses the default color which is black in your blog.
hi.. i need to make your contact form a little narrow for my sidebar. mainly the content box. can you tell me how? kristina
hi kristina,
you have to set the stylesheet for the form. See my sample above the comments, Copy the last 3 lines in your style.css or in the style field on the options page of the plugin. Play with the numbers if needed.
I would like to be able to send the completed form to more then just one email...Is it possible?
Just type all emails in the first field (To) on the options page separated by comma.
thanks Tom
Bitte in der deutschen Sprachdatei "Email" zu "E-Mail" ändern. Danke!
Bitte eine gültige Email eingeben. Danke!
[...] Tiny contact form : handig omdat het beschikbaar is als widget [...]