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


Silent Helper
Translations

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

RSS-Feed 380 Kommentare

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

    Is there a way to edit the form so that it is even smaller for a sidebar or compact space in the content area?

    • Tom Tom sagt:

      Hello bert,
      you can use all Stylesheet you know. :wink: Type it in the style.css of your theme.
      The complete form is surrounded by a div class="contactform". Tags in FORM: LABEL, INPUT and TEXTAREA.

  2. baron baron sagt:

    hi. Thanks for plugin

    perfect.

    Regards

  3. steffino steffino sagt:

    hallo, hättest du nicht lust, eine antispam-methode in das plugin einzubauen? ich denke da an die simple aber effektive methode von sergejs antispam-bee

    • Tom Tom sagt:

      Sowas in der Art mache ich auch. Ganz ohne Schutz kann man ein Formular ja nicht frei lassen. :wink: Es gibt unsichtbare Felder die bestimmte Werte haben oder leer sein müssen. Hab die Idee von "Yawasp".

  4. steffino steffino sagt:

    mhh... mist, bei mir scheint der mailversand (mit der funktion 'mail') nicht zu funktionieren (habe das plugin mit eigenen email-adressen getestet und es kamen keine mails)

  5. steffino steffino sagt:

    herrje, jetzt geht es doch (ich sollte nicht soviel rumfrickeln...)

  6. When I plug [TINY-CONTACT-FORM] into my sidebar php, I only see it come out as [TINY-CONTACT-FORM] on the screen. How do I fix this?

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

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

  9. Brendan Ryan Brendan Ryan sagt:

    AbsChicken???

    Nice plug-in...fruitcake! :)

    maybe its me I don't get it.

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

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

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

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

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

  15. Ian Ian sagt:

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

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

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

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

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

  20. Jay Jay sagt:

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

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

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

  23. Danny Danny sagt:

    is there no way to change the title

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

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

  26. Ian Ian sagt:

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

    I get a lot of spam from it.

  27. Ditto to Ian's comment above. Spam has been a real problem. Any fix? Thanks for a exceedingly simple contact form!

  28. Oki Oki sagt:

    Hello Tom, you Tiny Form is have a great function. But I need to fiz the appearance, because it shown as a single line. See my contact page :

    http://basuki.biz/?page_id=76

    I don't really understand CSS. What must i do?

    Thx b4

  29. Oki Oki sagt:

    Now is better when i change the width. But i still need it have an enough space between line.

    http://basuki.biz/?page_id=76

  30. Alan Alan sagt:

    I'm currently trying to install the contact form on my wordpress's sidebar but it doesn't work. What do I have to write exactly to have it show? I typed [TINY-CONTACT-FORM] into a post and the form will show automatically but not when I have it on my sidebar. I am customizing my sidebar so I have a sidebar.php. Would I have to do anything different?

  31. Oki Oki sagt:

    I want to give a little contribution, translate to Indonesian. But how Tom?

  32. Greta Greta sagt:

    Hi Tom,

    What should I look at if when I hit send nothing happens - no email , no error, nothing? I had modified the php file quite a bit to remove the subject field had intermittant problems with that behavior, but when I left it last week I thought it was working. Alas - When I checked it again today it was not working. I deleted everything excpet my styles and installed 4.0, and left the subject field alone this time, but it still isn't working. I think something might be left over in the database because my settings remained after I reinstalled. I wanted to clear that too but I can't find which table they are in.

    Thanks for any advise.
    Greta

  33. Greta Greta sagt:

    More information:

    The re-install is working better than I thought - It works when I put it in a page, but the message isn't sent and the error/success message isn't displayed when it is loaded as a sidebar widget.

    Thanks again.

    Greta

  34. Greta Greta sagt:

    I discovered some more - The widget version doesn't work from the home page, but it does from the other pages. Maybe something to do withaction="'.get_permalink().' not being able to display the text in the sidebar? If I hard code that to another page it works, but that is not where I want that text to display.

    Greta

    • Tom Tom sagt:

      Hello Greta,
      i have just tested the plugin in sidebar on the Index/Start page. The mail was send and the message was displayed. But the permalink was the first post in the loop of the Index page. So this page loaded if the form was sent. That is the "error" i found.
      The options are in wp-options: "tiny-contact-form". This entry will delete if you deactivate and delete the plugin on the plugin page.

      • Greta Greta sagt:

        Hi Tom, thanks for the quick reply.

        Is your home page a blog or a static page? I suspect my problem as to do with having a static home page - there is no post to go to. The email was definitely not being sent.

        I got it to work by hacking the php file. I first tried to use if (is_home(') ), but that didn't work - maybe that is related to the other problem. So I used if (is_page('2') ) which is the page in question, and appended index.php

        $action = get_permalink(); //new variable
        if (is_page('2') ) { $action = get_permalink().'/index.php';} =
        ...

        I'm not so good with php so I don't doubt there is a better way to do this. I don't like coding this to a specific page and would like to find out why is_home doesn't work, but for now this works for the site I'm building and I can fix it better later.

        Thanks again. I'm curious if you agree with my diagnosis of the static home page being an issue.

        Greta

        • Tom Tom sagt:

          Hello Greta,
          my home page is the index (10 last posts). I will test action="" which gets the current url. Perhaps it works on all pages. You can also try $action="/" without the permalink before.
          But if your hack is working - all ok. :smile:

  35. K K sagt:

    Servus Tom,

    eine kurze Frage: gibt es eine php-Funktion um Dein Kontaktformular direkt in ein Template einzubinden? Vielen Dank uns schönes Wochenende!

  36. rajeev rajeev sagt:

    Hi I am actually coding a premium wordpress theme and I Want to provide your plugin for download along with the theme with some modifications to styling, to the users. Can I do that ? is that ok with you ?

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

  38. Michael Michael sagt:

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

  39. baron baron sagt:

    Works great, thank you

  40. PA 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 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 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:

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

  42. PA 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 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?

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

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

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

  46. Steffino 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"

  47. Steffino Steffino sagt:

    yes, this works. i just wonder why it worked the other way before (and when it changed)

    • Tom Tom sagt:

      Auf deutsch, ich weiß, du kannst das. :zunge:
      Ich hatte im letzten Update das Inline-CSS durch eine Klasse ersetzt, damit die klügeren Bots die versteckten Felder nicht einfach ignorieren. Leider wird das dann aber durch evtl. eigene Stylesheets überschrieben. "!important" verhindert das. Das sind immer diese Kleinigkeiten an die man denken muss. :roll: Ich werds gleich mal ein Update hochladen.

  48. Steffino Steffino sagt:

    Wo hier alle englisch schreiben, wollt ich halt nicht auffallen ;-)

    Dann war's also das letzte Update des Plugins - hat mich aber auch gewundert, warum da auf einmal zwei Felder mehr auftauchen... ;-)

  49. Kevin Kevin sagt:

    I just love the simplicity of your 'Tiny Contact Form', really great! However, mine has all bunched up, is there any code I can add to make it look more usable like your?

    an example of what mine looks like can be seen at: http://www.udevelopment.co.uk/members/contacting-us/
    :))

  50. It does looks like simple but awesome plugin. I'll give it a try. Thanks for sharing. Btw, you still do the support if have bug with this plugin right?

  51. maddog maddog sagt:

    I use the widget and it is displayed
    but no message arrives and error messages too
    Is there anything that must be different in a widget than in a normal page...

  52. maddog maddog sagt:

    I dont get any message..
    but 1 day later it works but it opens the widget above the mail form in the main "frame" but the rest was ok.. Now i put the form on the first palce and nothing works when i send a mail again.. maybe i must wait a day ?

  53. Nick Nick sagt:

    Super Plugin! Ich vermisse allerdings noch eine wichtige Funktion: Der Kontaktierende sollte die Möglichkeit haben sich eine Kopie seiner Nachricht zuschicken zu lassen. ("Ich möchte eine Kopie der Nachricht erhalten.")

  54. Nick Nick sagt:

    Ach so, noch etwas: Damit ein Dokument, in dem das Formular enthalten ist, fehlerfrei als "XHTML 1.0 Strict" anerkannt wird, muss hinter

    noch zum Beispiel

    und vor

    noch eingefügt werden.

  55. Steffino Steffino sagt:

    ich hab keine xhtml-validierungsfehler, dafür aber einen css-fehler: in zeile 335 des plugins steht "visibilty:hidden" - da fehlt ein 'i' -> visibility

  56. Steffino Steffino sagt:

    na die aktuelle (0.4.3) - mhh... visibility braucht man eigentlich auch gar nicht, die sache ist ja schon mit display:none; erledigt

    • Tom Tom sagt:

      Das "i" ist ein Fehler, aber ich hab absichtlich beide Varianten drin, da einige Benutzer im eigenen Inline-Style display:block; benutzen und damit wären dann auch die versteckten Felder sichtbar weil ja display:none; überschrieben wird. Solange ihr das richtige seht, ist alles OK.

    • Nick Nick sagt:

      Ups, ich benutze noch Version 0.4. Da gibt's das noch nicht.

      • Tom Tom sagt:

        Stimmt, aber wir entwickeln uns ja weiter. ;-) Ich habe das Inline-CSS durch eine Klasse ersetzt, da manche Suchmaschinen wohl display:none; so gar nicht mögen. Da könnten ja viele Wörter drin stehen, die zwar Besucher locken, aber nichts mit dem Inhalt zu tun haben.

  57. Steffino Steffino sagt:

    Also bei mir geht das auch ohne das "visibilty:hidden", obwohl ich für #tcform input "display: block" drinne hab - sonst hätte ich den Fehler ja auch früher bemerkt ;-)

    (visibility:hidden hatte ich als workaround weil ich nicht auf den trick mit "!important" gekommen war)

  58. Hi!

    I have translated this plugin to Brazilian Portuguese (pt_BR) and I want to share it with all.
    You can download it directly from:
    http://www2.dc.ufscar.br/~altieres_lopes/tcf_pt_BR.zip
    and share in the next release!

    thanks!

  59. jefblog jefblog sagt:

    hello,
    For me (and for you!)
    I do the french translation :
    if you want the .po et .mo files they are at :

    http://jefblog.free.fr/tele/

    you can copy it !

    Thanks for this very usefull plug in

    PS And a captcha? ... if it's possible ?

  60. Smokin Joe Smokin Joe sagt:

    Greetings! Great plugin, relatively simple to understand and sort through - however, whenever I submit (and it works flawlessly) it forwards me to my most recent blog posting!

    Where can I change that? I'm pretty good with php and fairly comfortable with wordpress. It's a problem that I need to fix and really want to fix because I put decent work into having it work/look right.

    • Tom Tom sagt:

      Hello Joe,
      the form calls its own page, no forward. Do you see any ok or error message? See the action parameter in form tag. It have to be the url of the current page. Any other plugins with redirects?

  61. Smokin Joe Smokin Joe sagt:

    I'll check all of those options out - I had to manipulate your code, but I'm pretty sure I didn't touch your form action, and I can't imagine any of my widgets/plugins would have redirects to that particular thread (latest one posted).

    But like I said, I'll check it out some more and let you know what's the issue!

    Thanks for the reply, i'll be back again soon! And hopefully sooner than more spammers :mrgreen:

  62. Smokin Joe Smokin Joe sagt:

    oh geez, i forgot to mention that I'm not getting any errors, the form works flawlessly (and was mighty easy to customize with css and some php/html knowledge). just the redirect is driving me bonkers. i'll maybe check out some other form actions or somethign on the sidebar.

    but i'll let you know my progress, just wanted to let you know the form works awesome other than that silly issue.

  63. Smokin Joe Smokin Joe sagt:

    Alright, dont mind me spamming your comment board - but it would look like I have my get_permalink() set to the latest thread. So I either have to find somewhere in settings where that is and change it, or search through my database (ewww).

    But that would seem to be the issue! I can't believe I didn't see that anytime before.

    Thanks for the help!

  64. Vincent Vincent sagt:

    Great plugin! An additional field to enter a phone number would great.

    Thank you!

  65. Tom,
    Eventually I got it going the way I wanted - in a side bar fitting withing the design:

    structuredinsurancesettlements.com/new/ (just to show how)

    I had to play with the settings to get the right size form. Can i suggest that a more descriptive readme be put with the plugin so it makes it easy to change to fit with layout?

  66. Scream Scream sagt:

    Great plugin.
    But the form displayed like this http://i43.tinypic.com/30mwupl.jpg
    I added .contactform input { display:block; }
    But now its like this http://i41.tinypic.com/blxlu.jpg
    How do I get the Name/Email/Subject boxes and the submit query button centered?

  67. Scream Scream sagt:

    Thank you for the quick reply.
    I could not get it to work.
    Is it easier to move the text left?
    I tried .contactform label {text-align:left;} to achieve that but it did not work.
    This all I have:

    .contactform {}
    .contactform label {}
    .contactform input {display:block;}
    .contactform textarea {}
    .contactform_respons {}
    .contactform_error {}
    .widget .contactform { /* same fields but in sidebar */ }

  68. Forrest Forrest sagt:

    Hi- Thanks for a great plug-in! I'm using the widget and was wondering: Is there a line or two of code I could add to let me (the recipient of the form) know which URL the inquiry came from?
    Thanks again!

  69. Dondado Dondado sagt:

    Error in 0.5.:
    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR in /[...]/www/wp-content/plugins/tiny-contact-form/tiny-contact-form.php on line 552

    • Tom Tom sagt:

      I don't see the error in my 3 blogs. :gruebel: But if you deactivate the captcha it should work.

      • anne anne sagt:

        I'm getting this same error after installing 0.5.

        And the plugin doesn't load, so I can't activate it, and can't access the settings to deactivate the captcha.

        I love the plugin, and it was working perfectly until I upgraded.

        Any ideas?

        Thank you so much!

        • Tom Tom sagt:

          When you get the error? After install? The captcha is default off. So that's no problem. Sorry, I can't see this error anywhere.
          Can anyone give me a link or access to a test blog with error?
          A last question: Which PHP version you uses. 4.x? I think that's the problem with the static function. I testet 5.x only.
          Not testet:
          Change line 552 to <strong>public</strong> static function isCaptchaOk() or delete static.

          • anne anne sagt:

            Vielen Dank! (And that's all I think I can write in German!) I deleted "static" in line 552, and was able to activate the plugin and it is working perfectly again. Thanks so much for getting back to me quickly, and for being such a responsive developer--an asset to the WordPress community!

  70. atze atze sagt:

    i have the same problem like dondado ...

  71. Hi!

    I have translated this plugin to Dansh (da_DK)
    and thought i would share it.

    You can find it here:
    http://jonasthomsen.com/temp/da_DK.zip
    and include it in the next release!

    Jonas

  72. Forrest Forrest sagt:

    Great plugin!

    This might be a repeat, but just in case it's not....
    In case you need the referring URL, I added:
    'URL: '.$_SERVER['HTTP_REFERER']."\r\n\r\n".
    in the '$fullmsg =' between the email and subject.

    especially helpful if you're using the widget.

    Thanks again!

  73. Manu Manu sagt:

    Hi, ich habe nur eine kurze Frage. Was muss ich ändern, damit im Header der E-Mail nicht die vom Blog auftaucht, sondern die des Senders? Ich meine die: tcf_email. Denn so wäre es viel einfacher dem Absender zu antworten. :question:

    • Tom Tom sagt:

      Klick in deinem Mailer halt auf antworten. :mrgreen: Ich trag die Sendermail nur als Antwortadresse ein, da einige Server Emails nur von bekannten Absendern weiterleiten.

      • Manu Manu sagt:

        Ich persönlich habe kein Problem damit, aber dieses Kontaktform soll nicht mit der email-addy des Administrators versehen werden, sondern mit der des Managements des Künstlers für den die Seite ist. Deshalb würde ich gerne die tcf_email im Header haben. ;-)

        • Tom Tom sagt:

          Ich glaub, das musste mir mal aufmalen. ;-) Du kannst doch Absender- und Empfängeremail in den Einstellungen angeben. Wenn die Email des Benutzers als Absender drin stehen soll, müsstest du den Code ändern.
          Zeile 116:
          $from = $this->o['from_email'];
          zu
          $from = $_POST['tcf_email'];

  74. Sadiq Sadiq sagt:

    When I submit the form it gives me an error.

  75. PA PA sagt:

    Hello Tom,

    I didn't give news for a while and I just come back to study your widget... And I still have the same trouble : the TCF doesn't send any mail :mauer:

    1/ When I create a new user, I receive a mail. It works well.
    When I use the TCF, I have an OK message, not an error message... But I don't receive anything.
    I changed the WP-mail by SMTP mail and I repeated creating a new user successfully... But the TCF still doesn't send any mail even though it tells me the mail was sent.
    I changed the FROM by different "mails" admin mail, other mail, wordpress@mydomain... Nothing solved the trouble.
    I asked my server provider to know if this trouble could come from their side. Of course, he said no... and as I receive the "create new user" mail, obviously, the WP-mail is OK...
    If you have any idea, it would be cool. :roll:

    2/ You gave me a code line to insert in my sidebar (as mine is widget deactivated) :

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


    it worked well with the 0.43 version but not with the 0.51.
    I pasted instead your new code (top of your page) :

    showForm(); ?>

    But it doesnt work. The TCF doesn't appear in my sidebar. Isn't there a -> in this code before the ShowForm that pertubates its functionning ?

    Sorry for the troubles and thanks for your answers.

    • Tom Tom sagt:

      Hello PA,

      the first problem: If you get an OK message, the mail function sent the mail. Otherwise you get the error message. The mail funcation say yes or no an i show the message. Perhaps the receiver is not correct or the mail was recognized as spam?

      second problem: Since 0.5 you have to use the class like sample in readme - installation.

      <?php if (isset($tiny_contact_form))
      $tiny_contact_form->showForm(); ?>

      If the sidebar created by an function use
      <?php global $tiny_contact_form; ?> above the code.

  76. Justin Justin sagt:

    Hello. As seen in my URL my contact form is a bit down in the page. It seems there are line breaks on the page. Is there anyway I can fix this, or is it possible for you to direct me to where I should go to fix the issue?

    Great form. I went through a few before I found this one, and I love it. :gruebel: I just don't like the line breaks. I've tried making a new page too, and the same things occurs.

    Thanks a lot
    Justin

  77. Justin Justin sagt:

    Thanks for the response.

    Another question. I've made the stylesheet like the one above. Is there anyway to put the submit button lower having a space between the textarea and button, and make it rounded?

    Thanks a lot.

  78. Iain Iain sagt:

    Great plugin, but is there an easy way to change the HTML submit button so I can submit the form with javascript and an image instead? Many Thanks

  79. Achilles Achilles sagt:

    Hi Tom
    Ich habe eine blöde Anfängerfrage:
    Bei mir funktioniert die Mehrsprachigkeit nicht.
    In wp-config ist richtig gesetzt: define ('WPLANG', 'de_DE');
    Woran kann das sonst noch liegen (ich fand im Blog keine Antwort)?
    Besten Dank für deine Hilfe

    • Tom Tom sagt:

      Hallo Achilles,
      der Eintrag ist richtig. Ist nur das Plugin englisch oder das ganze Blog/Backend?

      • Achilles Achilles sagt:

        Hallo Tom
        Nur das Plugin ist englisch

        • Tom Tom sagt:

          Das ist natürlich schlecht für mich. ;)
          Lade das Plugin bitte mal per FTP in dein Blog hoch. Ich hatte schon mal den Fall, dass beim automatischen update die Sprachdateien nicht erkannt wurden. Warum auch immer. :gruebel:

          • Achilles Achilles sagt:

            Danke für die promte Antwort.
            Ich habe das Plugin gelöscht und neu geladen. --> Funktioniert leider immer noch nicht :cry:
            Zur Info: Ich habe das deutsche WP 2.5.1 installiert (weil mein Hosting - Provider diese Version installiert).
            Danke - however- für deine Bemühungen!
            Achilles

            • Tom Tom sagt:

              OK, 2.5 könnte nun natürlich auch ein Problem darstellen. Ich befürchte, dass die Art, wie ich die Sprachdateien einbinde erst am 2.7 funktioniert. Sprich mal mit deinem Anbieter. 2.5 ist ja doch sehr veraltet.

  80. Manu Manu sagt:

    ähm ich glaub ich hab mich falsch ausgedrückt oder versteh etwas nicht. :-?

    Ich glaube was ich meine betrifft den Header von der Email. :-?
    Im Header der Email wird folgendes angezeigt:

    Betreff: Test
    Von: "ARSENIUM Official Fanclub"

    aber ich möchte, dass der Header so ausschaut

    Betreff: Test
    Von: tcf_sender

    also der Name desjenigen steht, der eine Mail über das Kontaktform geschickt hat.

    Zeile 116 habe ich abgeändert
    $from = $this->o['tcf_email'];

    Hat das Eine mit dem Anderen nichts zu tun? :-?

    • Tom Tom sagt:

      Verstanden haste wohl alles richtig, nur falsch gelesen.
      Man achte auf das $_POST. ;)
      $from = $_POST['tcf_email'];

      • Manu Manu sagt:

        :mauer:
        Manchmal sieht man den Wald vor lauter Bäume nicht! :mauer:
        Ich bin schon fast verzweifelt gewesen, denn ich hatte alle Änderungen so gemacht, wie oben geschrieben wurde, hab sogar das
        $from = $_POST['tcf_email'];
        geändert und trotzdem wurde mir noch immer das Head in der Email, wie oben beschrieben, angezeigt. Es war ein Gedankenblitz und das deaktivieren von dem Plugin "Mail From" hat das Problem gelöst!

        Nun läuft es wie es soll, VIELEN VIELEN DANK für die Hilfe!! :thumbsup:

  81. Hello,

    Great Plugin, thanks! I have just a small problem: I changed the labels in tfc-lang-de_DE.po to polite german form.. but the modified labels do not show up in my contact form. I then deleted to plugin, downloaded the zip and installed it manually (with modified .po file) but still not the good labels.. I believe it has something to do with the .mo file. Can anybody please help me?
    Thanks in advance, Oliver

    • Tom Tom sagt:

      Hallo Oliver,
      spricht man in deinem Teil der Schweiz auch deutsch? Wäre einfacher. ;)
      Also die po Dateien müssen zu mo Dateien "kompiliert" werden. Diese werden eigentlich benötigt. Das kannst du entweder mit dem Programm poedit machen oder mit dem Plugin Codestyling Localization direkt im Backend.
      Aber was ich denn ein "polite german form"?

      • Hallo Tom,
        natürlich spricht man hier in Bern auch Deutsch.. sorry, war wohl geistig umnachtet! Mit german polite form meinte ich die Sie-Form!
        Also, ganz herzlichen Dank für Deine rasche Hilfe und auch für das super plugin!
        Gruss, Oliver

        • Tom Tom sagt:

          Also so richtig deutsch ist das aber auch nicht. :mrgreen: Und in der Schweiz gibts ja auch andere Gegenden, daher habe ich es nicht gleich vorausgesetzt. Freut mich, wenns klappt. :-D

  82. David David sagt:

    Great plugin.

    How do I shorten the captcha answer input field?

    To have the captcha question and answer input field on the same line.

    Thanks,
    David

    • Tom Tom sagt:

      Hi David,
      use #tcf_captcha{ width: 100px; } in your style.css or the style sheet field on options page.

      • David David sagt:

        Thanks, that shortens the input field but the captcha question and answer input field are not on the same lime!

        • Tom Tom sagt:

          I think all label tags are display: block; in you stylesheet. To change only the catcha label you have to change line 575 in the plugin file
          <label for="tcf_captcha">
          to
          <label for="tcf_captcha" style="display: inline;">
          Also you can try
          #tcf_captcha{ width: 100px; display: inline; }
          in the stylesheet.

  83. Brett Shumaker Brett Shumaker sagt:

    Hey...I love this plug-in so far. Easy to set up...working great with 2.81!! One question though. The form is set up to go to my gmail and when it shows up in my inbox, gmail says its from "Wordpress". Is there anyway to change this? I've tried altering the php line 116 to: $from = $this->o['tcf_email'];

    Any ideas? or am I changing the wrong part of the code? I've also changed the subject string and that change shows up in my inbox...so I'm lost here. Any help is appreciated. Thanks!!

    • Tom Tom sagt:

      Hello Brett,
      this is not soooo easy because wordpress set up most of the mail data. Perhaps in next version i will include a new option.
      You can make an workaround. Create a functions.php in your theme directory if it's not exists. Add the following code.

      <?php
      function setMyMail( $phpmailer )
      {
          $phpmailer->FromName = "a new from";
      }
      add_action( 'phpmailer_init', 'setMyMail' );
      ?>
      

      But than all emails (like comment notification) of the blog will have this FROM too.

      • Brett Shumaker Brett Shumaker sagt:

        Thanks Tom, I'll try that out. The wordpress site I'm setting up is more for CMS purposes than blogging, so I'm not worried about blog comments. But I'm kinda new to PHP so is there a way I can call the $name variable from the tiny-contact-form.php? If not I can just set up a generic FromName in that function just so the client doesn't see "Wordpress" when they get contact from their website.

        Thanks again! Its great to see a developer actively helping out the users of their plugin!

        • Tom Tom sagt:

          For use the TCF name wait for the next update. I will include this function. Otherwise use the method above to change the from nam on every mail wordpress will send. I think the blog name is a good choice.
          Oh, thanks for your thank. :oops: :-D

  84. binomsc binomsc sagt:

    Hey, super Plugin. Habe etwas herum probiert, aber dank Deines Stylesheet-Beispiels konnte ich (als Anfänger) auch das gut ändern! Danke!

  85. Wordpress sagt:

    [...] Tiny Contact Form - indir Alıntı: [...]

  86. [...] Tiny Contact Form – indir WordPress contact form plugin [...]

  87. JUICEDaniel JUICEDaniel sagt:

    Sehr cooles Plugin, hat gerade Contact Form 7 abgelöst. Und danke für die Style-Vorlage, sehr hilfreich :) (Ich sehe gerade: Im Prinzip sage ich das gleiche wie mein Vordermann, dem ich mich nur anschließen kann :) -> bitte weiterhin so simpel lassen und nicht so ein Mist wie Contact Form 7 V2.0 veranstalten, danke :-) )

  88. Hi there, where should I copy and paste the code for contact me if I want it to display in my "contact us" page?

    Thanks alot!

    NooriChronicles.com

  89. @Tom, I did do that but it is not working for me :( I pasted the rest of the code into my style.css and [TINY-CONTACT-FORM] into the contact us page but I dont see anything on my contact us page......any thoughts? I appreciate your help. thanks.

  90. nope I havent changed anything. all I did is activated the plugin and then copied and pased the code into the style.css and then copied [TINY-CONTACT-FORM] into the contact us page, that is all...not sure how come it is not working for me. thanks.

  91. EdKilby EdKilby sagt:

    Wow! Just dropped your great plugin Tiny Contact Form into the Hybrid template and it worked perfectly the first time. Thanks for providing it to the WP crowd.

  92. trustin trustin sagt:

    Hi, is it possible to send the information to several mails ?

  93. Mike Mike sagt:

    Great plugin! Thanks for making it available. I am testing the above site and would like to do two things with the TCF:

    1. remove or hide the 'Subject' field from view and program a default subject line to show up in the recipient email.

    2. have the word "OPTIONAL" appear pre-typed in the From Email field.

    Is this possible? Thanks again!
    Mike

    • Tom Tom sagt:

      Hi Mike,
      1. you can delete the lines 84, 85, 344, 352 and 353. but i don't test it!
      2. in the options? no, because its no email. i dont check this.
      but with a little php knowledge...

  94. Mark Mark sagt:

    Hi Tom

    Great plugin, does what it says on the tin!

    Just one query if your blog title has an ampersand (&) in it when you do a reply to a message, that email reply doesn't show the ampersand but instead it is displayed as &#38.

    For example, if your blog title was Apples & Pears it would be diplayed as Apples &#38 Pears on the reply email.

    Is there anyway to retify this because it obviously doesn't look or read right?

    • Tom Tom sagt:

      Hi Mark,
      i simple use the WP function get_bloginfo('name') to insert the name in subject. This function creates HTML entities if needed.
      You can try to set fixed name in lines 120 and 128.

  95. Amanda Amanda sagt:

    Hi,

    I love the form but after I submit my message it disappears and won't re-appear on refresh. I'd like it to stay there.

    Amanda :verliebt:

  96. Amanda Amanda sagt:

    p.s. All the times I refreshed the page to get the form to appear again it just sent another form to my email.

    • Tom Tom sagt:

      Hi Amanda,
      that's all correct. If you send the form only the message will be show. A normal user send one message and ready. ;) Click the link (eg. headline) of the TCF page an the form will be show again.
      If you reload the page with F5 or reload button, the form data will be send to the server again - and the email too.

  97. Jay Jay sagt:

    How do I use this in a normal template? Can't get it to work.

    showForm(); ?>

    Nothing happens with this. I don't want the form in a sidebar, just be able to put it in any template file. Thanks.

  98. Jay Jay sagt:

    Oh it stripped the code. Well the code I'm using is the one in the readme...

  99. Jay Jay sagt:

    Thanks for answering. I'm using that code but nothing shows up. Using the shortcode inside the content works fine, but I need to be able to manually place it in the template file.

    Is there anything more I have to do for the $tiny_contact_form to be accessed/found by the template? I saw a post above about making it global, maybe this is the problem for me. Where do I have to set it to global? From where can wordpress reach it without it being a global variable?

    • Tom Tom sagt:

      If your template part called by a function you have "to global" the variable. Otherwise it is empty in the function.
      Type global $tiny_contact_form; just before the if but in php tag.

  100. Mark Mark sagt:

    Hallo Tom,

    dank des Beispielcodes habe ich das Formular integriert. Es funktioniert auch alles, bis auf die Tatsache, dass keine Mail nach dem Absenden des Formulars ankommt. Bestätigt wird der Versand allerdings.

    Benutze WordPress MU 2.8.3. mit Buddpress Plugin

    Gruß
    Mark

    • Tom Tom sagt:

      Hallo Mark,
      habs nicht mit MU getestet. Aber wenn die Erfolgsmeldung kommt, hat WP die Mail eigentlich auch verschickt. Vielleicht im Spam gelandet?

      • Mark Mark sagt:

        Ne, kann absolut nicht im Spam gelandet sein.
        Habe mehrfach nachgeschaut.

        Das Tiny-Contact-Form sendet die Mail ja an die Adresse, welche unter "Einstellungen › Allgemein" hinterlegt ist!?

        Gruß
        Mark

        • Mark Mark sagt:

          Ähm. Sorry,
          Klar! Ich hab jetzt erst wieder gesehen ,dass es im Plugin einen Eintrag für die E-Mail-Adresse gibt, an die die Mails versand werden sollen, welche aus Tiny-Contact erzeugt werden.
          Aber da ist die Mail-Adresse richtig eingetragen.

          • Tom Tom sagt:

            Wenn du da nichts einträgst, wird die Admin-Email benutzt. Probier mal ne andere Email. Kommst du an die Sendmail-Logs ran?

            • Mark Mark sagt:

              Hi,

              ist ganz komisch, mit manch anderen E-Mail-Adressen funktioniert es, aber nicht mit allen!? Kann es jetzt nicht in Ruhe testen, da ich mich entschlossen hatte, mit meinem DSL-Anschluss dem rosa Riesen den Rücken zu kehren und dessen Tochergesellschaft zu gehen, aber das war keine weise Entscheidung, da ich nun seit über einer Woche ohne DSL-Anschluss bin und mich mobil durch's Inet schlagen muss.
              Dachte zuerst, dass es evtl. an E-Mail-Adressen von Domains liegt, die auf dem desselben Server wie die WPMU-Installation liegen, kann ich aber nicht bestätigen!
              Ich teste weiter. Wichtig ist auf jeden Fall einmal, dass es mit bestimmen E-Mail-Adressen funktioniert. Wenn ich dann mal wieder Zeit und einen funktionierenden DSL-Anschluss habe, dann schaue ich mir das Sendmail-Log an!
              Gruß
              Mark

              • Tom Tom sagt:

                Also wenn es manchmal funktioniert, dann ist die Seite ansich OK. Ich würde wirklich in Richtung Spam oder sonstige Filter suchen. Manche Server senden nur von bestimmten Absendern die auch auf dem gleichen Server/Domain eingerichtet sind. Das Log sollte da schon helfen. Sag Bescheid, wenn du wieder ein richtiger Onliner bist. ;)

                • Mark Mark sagt:

                  Hi,

                  also qmail meldet "cannot reinject message to blabla@blabla.com "
                  Wobei "blabla..." hier nur ein Fake für diese Message sein soll. Die echte Adresse möchte ich selbstverständlicherweise nicht posten. ;)

                  Ich habe herausgefunden, dass es wohl daran liegt, dass die E-Mails auf einem anderen Server gehostet werden (Mx-Records für Domains verweisen auf anderen Server) , als auf dem, auf dem WP läuft!
                  Wie ich das in den Configs wieder geregelt bekomme, weiß ich noch nicht.

                  Gruß
                  Mark

  101. Amy Amy sagt:

    hi,
    i put
    showForm(); ?> (without spaces)
    at my theme sidebar.php, but the form did not show up.
    i also put global $tiny_contact_form; right before if, the form still do not show up at my site.

    any idea?

    thanks
    Amy

  102. Amy Amy sagt:

    Hi Tom,

    i already tried this (with global) and also simple code (without global).
    they both did not work for me.
    The contact form just simply does not show up.

    Finally, i used widget to put contact form in my theme's sidebar.
    The widget option asks to fill title, that i do not want to fill.

    Do i change smth in plugin to take out title?

    Thanks

    • Tom Tom sagt:

      Hi Amy,
      ahh, i failed. :mauer:

      <?php
      global $tiny_contact_form;
      if (isset($tiny_contact_form)) <strong>echo</strong> $tiny_contact_form->showForm();
      ?>
      

      I have to update the readme.txt!
      To hide the widget title you can
      1. you can use .widgetTcf h2 { display: none; } in your style.css.
      2. with &amp;nbsp; as title an empty widget head will be shown.

  103. Tony Tony sagt:

    Excellent script worked first time

    Silverboots Line Dancing Norwich

    Thanks

    Dolly

  104. Gordon Gordon sagt:

    Hallo leute,

    ich habe das Kontakt Form. über wordpress Installiert. Ich kann es in meiner Sitebar schieben und dann geht es auch. Ich würde aber gern das Formular in einer Seite haben nicht im Menue. nun habe ich mir die readme angeschaut und werde leider net schlau. Was für ein Code muss in die seite eingetragen werden damit es geht?

    Danke

    • Tom Tom sagt:

      Hallo Gordon,
      na steht doch GANZ GROß da ;) [TINY-CONTACT-FORM] ist ein Shortcode. Du legst dir eine Seite "Kontakt" oder so an und schreibst nur den Shortcode rein. WP zeigt dann an dieser Stell das Formular an.

  105. Amy Amy sagt:

    i m using WPML plugin to multilingual my site
    unfortunately, tiny contact form does not include multilingual support (like, Contact Form 7)

    can you, please, include this support at your plugin?
    or any other solution?

    Thanks
    Amy

  106. André André sagt:

    Hey mate, great plugin.

    But is there anyway of having the page NOT have to refresh to check the fields? Maybe some ajax would do the trick? Any support of this in the near future?
    I don't think it would be that much bigger plugin ;)

    Thanks
    André

  107. 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! :verliebt:

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

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

  110. dorjee dorjee sagt:

    I add this:

    <form action="" method="post" autocomplete="off">

    "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 '<meta http-equiv="refresh" content="0;URL=http://okpage.php">';
              }
              else
                  // error
      echo '<meta http-equiv="refresh" content="0;URL=http://errorpage.php">';

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

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

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

  113. 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? ;)
      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.

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

  115. [...] Tiny Contact Form – Skapa ett litet smidigt kontaktformulär till er blogg för att låta era besökare kontakta dig. Kan infogas i varje artikel eller sida. [...]

  116. [...] Questo plugin vi fornisce un semplice e sicuro form di contatti Ajax based da inserire nelle pagine del vostro blog. Facile da configurare, direi che è la modalità più utilizzata nei blog WordPress. Tiny Contact Form [...]

  117. [...] die PluginsWordpress.com Stats (Ersatz: Piwik)Akismet (Ersatz: Antispam Bee)Contact Form 7 (Ersatz: Tiny Contact Form)Vermutlich gibts da noch viel mehr Optimierungsmöglichkeiten, aber man will ja in Zukunft auch [...]

  118. Hi Tom,

    Firstly I'd like to thank you for creating what seems to be an excellent little WordPress plugin. I have installed TCF and styled it, however I am unable to receive any emails sent by the form.

    I have added my email address in the Plugin Setting page, and when I press submit after filling in the form it tells me that the submission was successful, however I never receive an email.

    Any ideas?

  119. Darje Darje sagt:

    Hi how can I insert some predefined text like "Paste your interview link here..." into the text box in sidebar? I want it to disappear when I click on the text box. I know this is ussually done with adding value="Paste your interview link here..." and onfocus="this.value=" ' ' " but this breaks the php.

    • Tom Tom sagt:

      To insert a default text try to change the code. Insert in line 77 before $form = ...

      if ( empty($_POST['tcf_msg']) )
          $_POST['tcf_msg'] = 'Your text';


      To blur the field you can use onfocus="this.blur()".

  120. Katrina Deas Katrina Deas sagt:

    Ich bin relativ Neu mit WP und habe folgendes Problem: habe das Plugin zwar installiert, aber wenn ich auf "bearbeiten" klicke dann sehe ich eine leere Seite. Habe die neueste WP-Version 2.9.2 - help! bitte! :pray:

    • Katrina Deas Katrina Deas sagt:

      ... und noch was: sobald das plugin installiert ist, funktioniert das editieren meiner Seiten nicht mehr: ist alles leer! Seltsam. Danke im Voraus, ich hoffe meine Kommentare kommen an. Gruß K

      • Tom Tom sagt:

        Wenn du das Plugin deaktivierst ist alles OK? Welche Plugins hast du noch? Evtl. mal nur Tiny Contact Form aktivieren.
        Du kannst auch in der Datei wp-config.php (im WordPress-Hauptverzeichnis) mal die Zeile define ('WP_DEBUG', true); eintragen. Dann werden Fehlermeldungen angezeigt. Die schick mir bitte mal per Kontaktformular.

        • Katrina Deas Katrina Deas sagt:

          Danke für Deine Antwort! Habe inzwischen mit dem Service Provider gesprochen, im Endeffekt lag es am Server. Musste eine htaccess Datei herstellen, damit der Server meine Plugins versteht, das Problem hatte ich nämlich auch mit anderen. Danke nochmal! Super Plug-in.

  121. Ian Ian sagt:

    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

    • Tom Tom sagt:

      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.

  122. Ian Ian sagt:

    Thanks a lot for that Tom

  123. mili mili sagt:

    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

    <?php
    $post_id = 16;
    $queried_post = get_post($post_id);
    ?>
    
    <div id="contacttext"> 
    <h2 class="postheader" align="center"><?php echo $queried_post->post_title; ?></h2>
     </div>
    <br />
    <div class="starsrow" align="center"> </div>
    
    <div class="art-postcontent">
    
    <?php echo $queried_post->post_content; ?>
    


    for displaying the post..
    you can see it here
    http://www.circusloco.com/#contact
    thanks for any help
    mili

  124. Ian Ian sagt:

    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 :oops:

    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 :oops:

    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

    • Tom Tom sagt:

      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. :mrgreen:
      But you can change line 544
      $operation = rand(1, 4);
      to
      $operation = rand(1, 2);
      to only use + and -.

  125. Yusef Yusef sagt:

    Hello,
    How do you change the text color?

  126. kristina kristina sagt:

    hi.. i need to make your contact form a little narrow for my sidebar. mainly the content box. can you tell me how? kristina

    • Tom Tom sagt:

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

  127. BD BD sagt:

    I would like to be able to send the completed form to more then just one email...Is it possible?

  128. Nick Nick sagt:

    Bitte in der deutschen Sprachdatei "Email" zu "E-Mail" ändern. Danke!

  129. [...] Tiny contact form : handig omdat het beschikbaar is als widget [...]

  130. titi titi sagt:

    Hi,

    I'm expecting a problem. When I submit the form I got no confirmation message but I receive the e-mail correctly.

    But the error message displays good.

    Any help?

  131. titi titi sagt:

    Your last idea was the good one :) It works !! ahah :)

    It's been weeks I try to find THE contact plugin... others plugins are in conflict with my JS, and some others are sh***.

    Thanks. But I think maybe you should take a look at the SFC Like Button plugin,and try to save your "unset" function in another way. :)
    Because many people are using it.

  132. titi titi sagt:

    And a translation for the JS popup could be great :))

    Thanks for your help and for this simple plugin.

  133. titi titi sagt:

    Hi,

    I'm expecting another problem. After submitting and I click just one time. I receive the e-mail 3 times. Why that?

    Thank you,

  134. lijing lijing sagt:

    hallo,

    ich wollte das "abschicken" Button ein grauer hinterground einlegen. Wie geht das? Ich habe das Script von tiny-contact-form.php versucht, geht nicht weiter. Es wäre cool, Sie mir hilfen könnten. Dank!

  135. titi titi sagt:

    Also the subject of the email contain the title of the blog and mine contains accent and quote. So I receive like this: "...... l & #39 ; air"

    Maybe you should fix this while I will remove the title in the subject ;)

  136. ilBi ilBi sagt:

    Hi Tom,
    i upload and add your plugin in my contact page,
    but i have to ask u a question?

    In your options page the second voice it would mean to insert the e-mail of sender for receiving a copy of its own message?
    That is?

    PS
    Italian translation is not properly done in a correct/ right way, i hope to find some free time to sent u the right italian translation for IT version.

    POST PS
    in message error label i write a " ' " charater but when i save the options a " " character appeas before the " '".
    I could not verify that but how the ERROR message will be displayed?

    another question:

    1)How to customize submit button in TCF option?
    i.e. using class :-)
    2)Why in my contact form there isn’t any space beetwen captcha and the submit buttom?

    A suggestion:
    Did you ever thinking about changing "/" with ":" or "÷" in captcha code?

    Cheers

    • Tom Tom sagt:

      Hi ilBI,

      1. With the second (optional) email on options page you can set the FROM Email. Default is the blog admin email. A CC to the sender i will add in the next update.
      2. It's difficult to keep the translations up to date. You can always sent me an new version. ;)
      3. ' is wrong escaped. It's on my check list.
      4. The submit button has id="contactsubmit".
      5. Space captcha-submit: try #contactsubmit {margin-top: 10px;}
      6. I think "/" is ok, on all keyboards.
      That's all? :schwitz: ;)

  137. ilBi ilBi sagt:

    Hi Tom,
    did u eve listeng about follwing trouble:
    i can save the option both with your plugin that with another contact form plugin
    Contact Form 7.
    Usually i don't find such kind of problem during my duty with my wp blog.

    Bye

    • Tom Tom sagt:

      sorry, i don't understand.
      just use only one plugin. ;)

      • ilBi ilBi sagt:

        Ok i forget a " 't" so:
        i can' t save the option both with your plugin that with another contact form plugin Contact Form 7.
        I've tried before with your plug in, than disabled your plug in and clered your code in contact page and installing the other plug in mentioned.
        Did you ever seen about save option problem?
        maybe caused by incompatibility with other plugins? :gruebel:

        Cheers
        and thanks for your support :thumbup:

        • Tom Tom sagt:

          you have installed tcf and cf7. and now you can't save my options? ok, that's strange. i will take a look to cf7 and made a test. give me some days. ;)

          • ilBi ilBi sagt:

            No...the problem is: already yesterday in the afternonn o could not save your page option ( infinitive loop) so later i triey more.
            See that no saving was possible i disinstalled your and i tryied with another contact form plug in: same problems with saving process.
            So i think to contact you about if you ever listening about saving options problems of such kind of pligin:-)

            Cheers
            :roll: :!:

  138. ilBi ilBi sagt:

    Least but not the last:
    maybe some incompatibility with Simplemodal contact form?

    Bye bye and sorry for the quantity of comments:-)

  139. hi..
    i like your tiny contact form widget, i have had no problems with its use.. i do have one issue.. its too wide for my sidebar.. please take a look, http://www.broadwayweststudio.com . its on the lower right, how do i adjust the box width? thanks for your time.
    kristina

    • Tom Tom sagt:

      Hi Kristina,
      you have to change the Style like this:

      .widget .contactform { width:200px; }
      .widget .contactform input { width:98%; }
      .widget .contactform textarea { width:98%; height:100px; }

      Maybe only the last line, because only your textarea is to big.

  140. I am a complete beginner in WordPress. I have the Headway theme installed.
    I've placed your form on a page, but the submit button is next to the field where the captcha is.

    How can I put a line break in so that the button moves onto its own line? I tried using Firebug and inserting the html code for line break into the html, but it won't let me save it.

    Am I doing something wrong?

    Many thanks
    James

  141. Hi Tom,

    Love the contact form, just trying to implement it, but I want to be able to put multiple "TO" addresses. Is there any way of making this work or is it not possible with Tiny Contact Form?

    Chris

  142. titi titi sagt:

    Hey,

    Loading the css only on the contact form page would be cool :)
    Cleaner & lighter code for our website :thumbsup:

  143. Mary Mary sagt:

    Are you creating one for WordPress 3.0?

  144. Lars Lars sagt:

    I need the contact form on different pages, but I can only use one instance of the widget.

    Using [TINY-CONTACT-FORM] in a text widget doesn't work and I'd rather not hard code on the theme.

    Is there a method, so I can duplicate the widget button?

    Thanks,
    Lars

  145. Lijing Lijing sagt:

    Hallo Tom,

    ich habe lange Kontaktformular installiert und finde sehr gut.
    Aber ab und zu bekommen ich auch Spammail durch Kontaktformular. Wie kann ich dieses Problem lösen.

    Vielen Dank!
    Lijing

    • Tom Tom sagt:

      Das Captcha kann Spam erschweren, aber um ihn ganz los zu werden, müsstest du das Kontaktformular abschalten. ;) Ich arbeite aber auch gerade an einem Update. Das wird ein zusätzliches Feld enthalten, in dem du den Inhalt vorgeben kannst, der eingetragen werden muss. Also Captcha-Alternative.

  146. Jakub Stary Jakub Stary sagt:

    Hello Tom, I administrate one sites and use on them your tiny contact form, but the sites are in two languages, so I need change text in label for="tcf-msg" and in input type="submit". How I can change it? Is it possible? Thank You.

    • Tom Tom sagt:

      If you empty the Submit button in settings, the visitor will see it in his browser language.
      The input field labels are in the translation. You can change the code to use hard codes labels like "your words".

  147. Dave Dave sagt:

    This is a great plugin which I am using on many sites.

    For the first time i am using the widget.

    How can I change the background color and font color of widget title ?

alle Kommentare anzeigen / show all comments

Kommentar schreiben




Tiny Corner