Toms Welt

/wp-plugins/tiny-contact-form

Tiny Contact Form

548 Kommentare | Kommentar schreiben

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

Contributors: Tom Braider
Tags: email, mail, contact, form
Donate link: www.tomsdimension.de/postcards
Requires at least: 2.8
Tested up to: 4.6
Stable tag: 0.7

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. check the settings (email, messages, style) in backend
  4. insert [TINY-CONTACT-FORM] in your page or/and add the widget to your sidebar
  5. without widgets use this code to insert the form in your sidebar.
<?php echo do_shortcode("[TINY-CONTACT-FORM]"); ?>
or
<?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 template style.css.
  • Since v0.3 you can use the settings.

Need Help? Find Bug?

read and write comments on plugin page

Screenshots

  1. www.tomsdimension.de/wp/wp-content/plugins/tiny-contact-form/screenshot-1.png">www.tomsdimension.de/wp/wp-content/plugins/tiny-contact-form/screenshot-1.png" title="1. contact form on page" />
    1. contact form on page
  2. www.tomsdimension.de/wp/wp-content/plugins/tiny-contact-form/screenshot-2.png">www.tomsdimension.de/wp/wp-content/plugins/tiny-contact-form/screenshot-2.png" title="2. contact form widget in sidebar" />
    2. contact form widget in sidebar
  3. www.tomsdimension.de/wp/wp-content/plugins/tiny-contact-form/screenshot-3.png">www.tomsdimension.de/wp/wp-content/plugins/tiny-contact-form/screenshot-3.png" title="3. settings page" />
    3. settings page

Arbitrary section


Translations

Changelog

  • new language: Turkish, thanks to Emrullah Tahir Ekmekçi
  • new language: Dutch, thanks to Erik Collou
  • new language: Arabic, thanks to qasem gaayat.com
  • language update: Italian, thanks to Alberto Scocco www.lemappedelpensiero.it

0.7

  • new: multi widgets with different receivers
  • new: 5 additional fields (e.g. website, phone) possible
  • new: to hide form after submit is your choice now
  • new: alternative "question answer captcha"
  • new language: Swedish, thanks to Thomas www.ajfix.se
  • some bugfixes

0.6

  • new: set reciever and subject in shortcode [TINY-CONTACT-FORM to="abc@def.hi" suject="Hello"]
  • new: get subject from url like ?subject=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 548 Kommentare

Seiten: « 1 2 3 ... 9 10 11 12 13 14 15 ... 21 22 23 »
  1. Henrietta Henrietta sagt:

    Five stars = fantastic!

    I tried transpose email first and unless you are an expert the level of installation information is pitiful.

    This makes a cute simple widget. Thank you! u1F60D.svgz

  2. Stefan Stefan sagt:

    Moinsen,

    sexy plugin!!!! Dankeschön!

    Gibt es eine Möglichkeit die lang-file zu bearbeiten, ich bräuchte Deutsch- SIE!

    Dankeschön!

    English:
    Thanks for this great plugin.

    Is it possible to alter the lang -file I would need a polite german "Sie" instead of "Du"

    Cheers,

    Stefan

  3. dorjee dorjee sagt:

    Hi,

    Very great plugin! It works on a French hosting server (FREE) which is famous for its limitations in sending emails with PHP function. Great!

    Now I would like to say something about a problem of spam. When you click backward in the browser the form is displayed again with all the fields filled and you have just to click again to send the same message. So, a silly spammer (they are all) can make a programme which makes backward+click submit button repetitively and send thousand of emails automatically.

    I tried to include this code:

    $_POST['tcf_sender'] = '';
    $_POST['tcf_email'] = '';
    $_POST['tcf_subject'] = '';
    $_POST['tcf_msg'] = '';

    after $result = $this->o['msg_ok'];
    but this has NO effect when one clicks on the backward button of the browser. Is it possible to empty all the fields surely just after the sending-submission of the form? (you understand that the captcha field is unusefull if you can send and re-send and re-send with only two clicks). Thank you.

    • Tom Tom sagt:

      Hello dorjee,
      the $_POST variable will unset after successfully send the mail. Perhaps i can check the mail content and not send it twice.
      Thanks for the clue.

      • dorjee dorjee sagt:

        Hi Tom,

        thanks for the quick answer.

        I believed too that "the $_POST variable will unset after successfully send the mail" but it seems that this is does not works when the user makes a backward in his browser.

        If the second part of your answer is a method you suggest, maybe this could work, but is it not a little heavy-coding? Is it not possible to have a PHP action on the browser to delete the last history and oblige a refreshing of the page? Or at least changing the captcha formula... (of course i am not a PHP specialist)

  4. dorjee dorjee sagt:

    I add this:

    "autocomplete" on "off" is an interesting parameter which disallows the browser function to keep in cache the content of form fields (I found it in my bank website). So the user has to retype all text fields. Which is a first step. But unfortunately this is not a fix to the history-1 issue...

    • dorjee dorjee sagt:

      Well, I made some trying and error:

      // ok
      $_POST['tcf_sender'] = '';
      $_POST['tcf_email'] = '';
      $_POST['tcf_subject'] = '';
      $_POST['tcf_msg'] = '';
      echo '';
      		}
      		else
      			// error
      echo '';

      It works in firefox and chrome, but not in ie where teh fields are always filled after backward!

  5. dorjee dorjee sagt:

    Hi,

    other problem, in Firefox the hidden fields are displayed as more or less thin lines (not in IE or Chrome).

    The solution is to add an ID for hidden type fields in the tiny-contact-form.php file (end of the file). For example: id="hfield1" and id="hfield2".

    Then add this above in the CSS setting:

    /* hidden fields */
    #hfield1 { visibility:hidden; display:none; }
    #hfield2 { visibility:hidden; display:none; }

    I tried a .contactform hidden..., but it does not works.

    • Tom Tom sagt:

      The "Hide CSS" already added in my plugin version! And it works in Firefox which is my favorite browser.
      .tcf_input {display:none !important; visibility:hidden !important;}
      Also the fields have IDs tcf_name and tcf_sendit!

  6. [...] Tiny Contact Form : Toms Dimension Comments0 Leave a Reply Click here to cancel [...]

  7. Sean Sloan Sean Sloan sagt:

    Is there a simple way to add another field, say for phone #? That would be very useful to me. In fact I would send an immediate contribution if you could provide me with code to plug in. Thanks, Sean

    • Tom Tom sagt:

      A way? Yes. Simply? u1F609.svgz
      You have to add the field to the form and to the send function.
      For form see lines 84/85. Copy, paste and rename this subject field.
      To show it in the email, see line 133. Same procedure.

  8. I like the Plugin.

    But I am having a problem with trying to have the - Name tab moved below the main tab Contact.

    Check out our website to see the issue - http://www.GotJesus.tv

    Thanks,
    Richard

Seiten: « 1 2 3 ... 9 10 11 12 13 14 15 ... 21 22 23 »

Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht.

:mrgreen:  :D  :)  ;)  8-)  :O  :cry:  :(  :liebhab:  :-x  :-?  :P  :roll:  :arrow:  :schwitz:  :thumbsup:  :thumbup:  :thumbdown:  :facepalm:  :?:  :!:  :eis: