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.

Download bei Wordpress

Tiny Contact Form 0.6

Contributors: Tom Braider
Donate 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

  1. unzip plugin directory into the /wp-content/plugins/ directory
  2. activate the plugin through the Plugins menu in WordPress
  3. insert [TINY-CONTACT-FORM] in your page or/and add the widget to your sidebar
  4. check the settings (email, messages, style) in backend
  5. 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 template style.css.
  • Since v0.3 you can use the settings.

Need Help? Find Bug?

read and write comments on plugin page

Screenshots


  1. 1. contact form on page

  2. 2. contact form widget in sidebar

  3. 3. settings page

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 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; }

RSS-Feed 278 Kommentare

alle Kommentare anzeigen / show all comments
  1. Cyndi sagt:

    Once the visitor sends a message, what if they want to send another one? The form just thanks them, but how do they make it open up again? I hope this is not a dumb question.

    Cyndi

  2. Michael sagt:

    Is there a way to modify the width of only the submit button?

  3. baron sagt:

    Works great, thank you

  4. PA sagt:

    Hi Tom,
    Seems to be a great plugin you have here.

    1/ I have an old theme with deactivated sidebar widget. So I can’t use the Wordpress widget menu to set up your contact form. But I can copy / paste the php code directly in my sidebar.php file. So could you give me the code I have to paste in this file to have your plugin set up please ?

    2/ Is there anyway to prefill a text in the text area ? I would like to put an introduction sentence in the text area that would disapear (or not) when people click on this text area to write their own comment.

    Thank you in advance for any advice.

    • Tom sagt:

      Hello PA,

      1. try

      if (function_exists('tcf_show_form'))
      echo tcf_show_form();

      to add the form to a template or the sidebar.

      2. look for </textarea> in the source. and type your message before this tag.

      to empty the field you can use javascript. but its not easy. you have to check the text so the field is not emptyeverytime you click it. :wink:

  5. Robert sagt:

    Hi!

    A stupid but necessary question. I really like the TC Form, but I want it in spanish and as I can see, the translation has been made, thanks for that. But, how do I change to spanish? Not in style.css I guess. I was looking after locale/tcf_lang and to put in es_ES.po, but where do I do that, or have I missunderstood?

    Schüss
    Robert

    • Tom sagt:

      Hello Robert,
      you need the file locale/tcf-lang-es_ES.mo to translate the backend/options and the labels in the form. The choice is made by WP_LANG in wp_config.php which have to be “es_ES” in your case.

  6. PA sagt:

    Hello Tom,

    Sorry for the delay in giving news. Thanks for your quick answer. It worked great.

    I have another small problem. The TCF answers “OK mail sent” when I click on the send button. Fine… But I don’t receive anything on my mailbox…

    To fix it, I downloaded the Allen SMTP plugin : http://wordpress.org/extend/plugins/wp-mail-smtp/. I receive the test mail sent by this plugin but once I come back on the TCF and try again, I still don’t receive any mail.

    Did I miss something ? Is there any “link” to build between those two plugins ? I don’t fill the TO and FROM parts of your TCF but it fills the TO one automatically with the previously entered adress (correct). But filling those fields or not don’t change anything.

    Thanks again for your precious help.

    PA

    • Tom sagt:

      Hello PA,

      wp-mail-smtp change the method wp sending it’s mails like notifications and also TCF. If you have problems with standard php-mail function on your server. TCF is using the same wp-mail function. So i don’t know where is the problem. :gruebel:
      Without FROM TCF use the wp-email like wordpress@yourdomain. If you see the message “OK” the mail was sent successfully throw the wp-function. More i can’t proof. Perhaps an junk/spam filter?

  7. Michael sagt:

    Hi Tom,

    Thank You for this great form plugin. However recently I’ve been getting spam althoug my site has very low traffic.

    Do you have any solution to prevent spam on your form plugin. I read above about your hidden field etc. but obviously it’s not working for me.

    Any help would be appreciated.

    Thank You

  8. Michael sagt:

    Hi Tom,

    I tested your spam protection by making your hidden field “visible”. There after I added a value into this field. According to your setup this was supposed to trigger the spam alert. But it did not.

    I then changed the code on line 279 (php file)
    From This:

    if ( isset($_POST['tcf_sendit']) && $_POST['tcf_sendit'] != 1
    && isset($_POST['tcf_name']) && $_POST['tcf_name'] != '' )

    To This:

    if ( isset($_POST['tcf_name']) && $_POST['tcf_name'] != '' )

    After testing it it seemed to work just fine.

    Any comments Tom.

    Thank YouMichael

    • Tom sagt:

      Oh noooo! :mauer:
      I haven’t test it yet but i think the middle && is wrong. Must be a || with additional (). :uebel:

      if ( ( isset($_POST['tcf_sendit'])
      && $_POST['tcf_sendit'] != 1 )
      || ( isset($_POST['tcf_name'])
      && $_POST['tcf_name'] != '' ) )

      Your code works. But only with one field.

  9. Michael sagt:

    Hi Tom,

    Yip I think it should be fine now,
    however I’ll stick to my hack as I’m going to make the hidden field “visibile” then hide it with CSS just for some added protection, to give the Clever bots a run for there money :thumbsup: .

    Thank You Michael

  10. Steffino sagt:

    i don’t know why, but “display: none” for .tcf_input doesn’t work any more combined with “display: block” for #tcf-form input

    i worked around this issue with “visibilty: hidden”

Kommentare Seite:«12345678910»»|
alle Kommentare anzeigen / show all comments

Kommentar schreiben




Quicktags:

Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Tiny Corner