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. Alen Alen sagt:

    Hi Tom,
    thanks for such a fast reply. I sent you the language files :wink:

    Well, I disabled comments on the whole site, becuase I'm buliding site more like CMS then blog ( even not using posts, just pages ).
    I don't want no comments except for this mailform.
    Here's the form's location so you can see the error.

    http://gloriatours.hr/?page_id=10

    Is it maybe the matter of setting up mail server with my hosting company ?
    Alen

    • Tom Tom sagt:

      You can test the mail server if you add a new user. Then you (admin) get a mail. If not your mail server settings (in php.ini?) are wrong.
      And thanks for the translations! :)

      • Alen Alen sagt:

        Yeah, well, still no result ... :cry:
        Thanks for your help, anyway... I cannot access php.ini (hosting company)

        Btw, I'm trying to make msg_ok and msg_err to change as the language change, but the TCF options always save my current language "OK" and "error "message. So I alyways have, for example, italian ok or error, even if I'm on english or croatian page.

        I tried to delete code in the admin part ( in the form input value ) but it doesn't work ... :gruebel:

  2. Alen Alen sagt:

    Well .... Thanks Tom for help ... I had it enough for today ( my head is like pumpkin already ... :hehe: )

    I'll contact you tomorrow perhaps, regarding your plugin, ok ... ?

    Thanks and bye,
    Alen

  3. Where and what do I need to put in the style.css in the theme? I don't quite understand exactly where to put exactly what phrase?

    • Tom Tom sagt:

      If you click "reset" in the settings you will see the empty labels that you can style. The content of these textarea you can cut/paste in your style.css and empty the field. For your form in the sidebar e.g.

      .widget .contactform input ,
      .widget .contactform textarea
      { width:200px; }
  4. Jay Jay sagt:

    Tom,
    Thank you for mentioning myself and my website with your plugin! I really appreciate it!
    Thanks,
    Jay

  5. Alen Alen sagt:

    Hi Tom.

    Thanks for mentioning me too ... Although, it wasn't really neccessary, you are the one that does the real work here.
    I solved sending mail ( I installed http://wordpress.org/extend/plugins/wp-mail-smtp/ plugin and it works through SMTP ... :eis: ).

    I really would like if the OK and ERROR messages would be translatable. Wouldn't you agree that, if you have field labels translatable, it would be reasonable to have the return messages translatable also ? Btw, I'm trying to make that changes to your script to make it so, but it's really not working ... yeah ...it's because I'm real php noob. :roll: .

    Well, I'm looking forward to your updates ... :thumbsup:
    p.s.: keep this "tiny"... don't put too many options to make this plugin comlicated like others ..

    Bye,
    Alen

    • Tom Tom sagt:

      Congratulation for your mail fix. :thumbup:
      You only can translate "static" phrases. They must be in xyz.po. Now i have the messages in the options and any user can change them. So i can't include it in the translation files. To do this you have to change the code to static messages which also in the translation files. But the language is set by the WP_LANG in wp-config.php. So you have change this setting if a visitor ist change the frontend language. Not soooo easy.
      Hint: Style ok green and error red. :wink:

      • Alen Alen sagt:

        Well, I know about WP_LANG and the rest.
        I changed .po ( thus, and .mo ) file, and also I changed your tiny-contact-form.php lines ( $msg_ok = __('Thank you! Your message was sent successfully.','tcf-lang'); ) and it worked ...

        Only, when I refreshed options page Ok and Error fields was filled with current language text ... I suppose it has to do something with writing options in database, perhaps ... ?

        Anyway, if it can't be done, it can't ... :-|
        Maybe you could ( to have all the form translatable ) change this:
        input type=”submit” name=”submit” value=”‘ .__(’Submit’, ‘tcf-lang’). ‘” id=”contactsubmit”

        Ok, thanks for your effort and time ...
        I won't bother you any more :wink: ( maybe)

        Cheers,
        Alen

        • Tom Tom sagt:

          1. If you want translate your messages ignore the options and place static strings like in your comment. But you have to change ALL messages in all function.
          2. The submit button get its value of the browser language. So i think every visitor can can read it.
          3. "bother" if you want. You have my email adress. :wink:

  6. Alen Alen sagt:

    Hi Tom.
    Just wanted to let you know that I made YOUR script do what I wanted to do ( you know that language issue .. ). I hope you don't mind ...
    You can see it in action on that adress. If you want to see what I've done, what clumsy "coding" i did I will send you the file .

    Just to thank you again for this usefull script ! Thanks !!

    Bye Alen

  7. Danny Danny sagt:

    is there no way to change the title

  8. robin robin sagt:

    "the widget title is hardcoded in line 208"

    that's only for the widget page though if i'm right. i'd like to change the title on my published page, like yours below says "kommentar schreiben" i'd like the top of my form to say "please contact us" or something original like that :-O

  9. gustavo gustavo sagt:

    hello, and thanks for such an awesome form!!, very handy, simple and, tiny!! I've been trying to use it and so far I've suceeded, however I have a couple issues, sorry if the question is too basic, but my knowledge in this is basic as well :-o
    The first thing is that I would like to change the title, in my website (under construction) it says tiny contact form, I would like to write "contact me" or something like that, and the second one, I'm looking for a way to change the submit button, I was able to change the fields but I can't find a way to change the background and the name of the submit button, I mean, instead of it saying "submit query", can I write something like "send" or something like that? and, how can I change the background, so it fits the rest of the theme?

    Thanks a lot for your help!!, you can check my website at http://www.lebloe.com, but my new website underconstruction is http://www.lebloe.com/wordpress, I'm still working on it, I'm new on wordpress and I still have a lot to learn :base:

    • Tom Tom sagt:

      Hello gustavo,
      for the widget title see the comments above (by Dany and robin).
      The submit button you find in line 48
      <input type="submit" name="submit" id="contactsubmit" />
      Change it to
      <input type="submit" value="send" name="submit" id="contactsubmit" />

      update: try new version 0.4

  10. Ian Ian sagt:

    IS there any chance of adding spam protection to the plugin.

    I get a lot of spam from it.

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: