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. 1. contact form on page

  2. 2. contact form widget in sidebar

  3. 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 4 5 6 7 8 9 10 ... 21 22 23 »
  1. Josh Josh sagt:

    Thanks,

    one question ... how to reset / clear form inputs after sending the form
    somewhere at the lines 84-86 :

    if ( mail( $to, $subject, $fullmsg, $headers ) )
        $result = 'Thank you for the message!';
    }
    

    thanks in advance ...

    • Tom Tom sagt:

      You can simple reload the page or click another one. :wink:
      Otherwise you can change the code (your selected lines) to

      if ( mail( $to, $subject, $fullmsg, $headers ) )
      {
          $result = 'Thank you for the message!';
          $_POST['tcf_sender'] = '';
          $_POST['tcf_email'] = '';
          $_POST['tcf_subject'] = '';
          $_POST['tcf_msg'] = '';
      }
      

      This resets the post fields.

  2. Josh Josh sagt:

    Thanks, that was quick ...
    addition I made is to change from headers :

    // send mail
    $from = $_POST['tcf_email']; 
    $to = get_option('tcf_to_email');

    meaning not using from admin email:
    $from = get_option('admin_email');

    this way we can simply reply to the message as from headers will be: tcf_sender and tcf_email

    Thanks again for the plugin :-D

    • Tom Tom sagt:

      The right email is in "Reply-To" header so you can click "answer" in your mail client. :wink:
      I have used the admin email for "from" because some servers only allow its own email accounts to send mails. So i think user emails would not send. In next version i will try to use the wp-mail function.

  3. Brendan Ryan Brendan Ryan sagt:

    AbsChicken???

    Nice plug-in...fruitcake! :)

    maybe its me I don't get it.

  4. Ian Ian sagt:

    Love the plugin.

    One of my questions was already entered in the comments about clearing what was input.

    My other question is this.

    Is there a better way to show that the message has been sent. I am getting people who are sending me the same email 3 or 4x because they are unsure if the message got through.

  5. Jay Jay sagt:

    Thank you for your fantastic and fantastically simple plugin. I thought you might be interested to hear about my modification of your plugin. I've added two more options in the settings page for the plugin. One allows the user to specify an e-mail confirmation message. The second option is a textarea that allows the user to include whatever CSS they would use to style the contact form (this way the CSS is independent of the theme).

    I've also changed the plugin so that the contact form disappears after it successfully sends an e-mail. If you're interested in it at all, you can see my modification at work at http://www.spiderdev.com/about . Also, I would be happy to share my modified code with you.

    • Tom Tom sagt:

      Hello Jay,

      thanks for your responce. "disappear the form" is a nice idea.
      CSS i don't included intentionally to size down and speed up the plugin (TINY contact form :wink: ). The "CSS textarea" is another great idea.
      Thanks! I will use you work. :mrgreen:

  6. Mark Mark sagt:

    Do I have to insert my email address in somewhere?

    I've installed the plug-in and activated it and it's showing nicely on my sidebar but when I test it I'm not receiving the message?

  7. Ian Ian sagt:

    The new version is breaking the backend of my wordpress. When I would publish a post, it will publish but it goes to a blank screen.

  8. Ian Ian sagt:

    I did the auto update, then I tried using ftp . The backend of WP worked fine when I deactivated the plug-in. I've since reverted back to 0.2 version of the plugin.

  9. Ian Ian sagt:

    And strangely enough it's working again after upgrading this time.

  10. Alen Alen sagt:

    Hi ! I found your lovely plugin :thumbup: , and I translated in into my language ( croatian, do you want the translation ). But I have problem -- it's not sending any mail, that is, the mail doesn't arrive and iI get error message ... :thumbdown:
    I'm newbie in WordPress and PHP generally, so could you tell me how to set options to get success with email sending ... :gruebel:
    Thanks

    • Tom Tom sagt:

      Hi Alen,
      if you see the error message wp_mail() has failed. Do you get other wordpress emails like comments?
      In the plugin options you have to set the TO email. If FROM email (optional) is empty the admin email will be used.

Seiten: « 1 2 3 4 5 6 7 8 9 10 ... 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: