SimpleModal Contact Form (SMCF)


SimpleModal Contact Form (SMCF) is an Ajax powered modal dialog contact form plugin for WordPress.

It is built on the jQuery JavaScript library and uses the jQuery SimpleModal plugin.

Please visit the WordPress SMCF Plugin page to download as well as for information regarding installation, FAQ's, screenshots, etc.


For SMCF v1.2.2+

Italian (Gianni Diurno)
French (E Neuville, ICS-INFORMATIQUE)
Portuguese (Vitor Borges)
German (Mika)
Polish (Tomek Nowak)

For SMCF v1.2 - v1.2.1

Italian (Gianni Diurno)
German (Nathalie)


  1. January 6, 2008 @ 8:07 pm #

    Thank you.

  2. January 22, 2008 @ 3:54 am #

    Wonderful ! thanks very much.

  3. February 4, 2008 @ 6:54 am #

    hi...i reallyyy love your plugin...but i have a little problem...i did everything exactly as you said in the readme and when i click the contact click i get a 404 page...PLS HELP !!!

  4. February 4, 2008 @ 9:45 am #

    @K.Z. - what is the URL that it is trying to access? Does it look correct? Do you have a link I can view?

  5. February 4, 2008 @ 2:50 pm #

    yeah... the website is ... PLS HELP !!!

  6. February 4, 2008 @ 3:21 pm #

    @K.Z. - 1) when viewing your site in IE7 - it throws all kinds of JS errors.
    2) you need to put the smcf_link class on your contact link:

    <a href="/contact" class="smcf_link">Contact</a>

    Edit: As of SMCF v1.1, the SMCF link class changed to smcf-link

  7. February 4, 2008 @ 3:35 pm #

    i did exactly as you still doesn't work... :((

  8. February 4, 2008 @ 3:36 pm #

    i even tried to use it without any other plu-in installed...still nothing !!!

  9. February 4, 2008 @ 3:44 pm #

    @K.Z. - there is something wrong with the smcf_javascript.php file that is being loaded. Did you place the smcf directory under wp-content/plugins ?

  10. February 5, 2008 @ 1:18 am #

    yes...i placed it in wp-content/plugins !!!

  11. February 6, 2008 @ 1:17 pm #

    Hmmm. Can't get it to work in IE 6. Can't break it in FireFox.

  12. February 7, 2008 @ 9:10 am #

    @K.Z. - The first line in smcf/js/smcf_javascript.php is:

    <?php require_once('../../../../wp-config.php'); ?>

    Which should be loading the WordPress configs. However, when I look at the file as it is loaded on your site, it appears that it is pulling something else - looks like CSS - which is causing the JS to fail. You'll need to get that figured out in order for it to work.

    As you can see from the require above, it expects smcf_javascript to be in:

    @chad - What is not working?

  13. February 11, 2008 @ 9:02 am #

    It does work with the default theme, but not with my modified theme.

    It just turns darker and then hangs.

    Can you see what I have to change in this them in order to get in working?

    Poetry Blog

    The contact link is at the bottom of each post on the front page.

  14. February 11, 2008 @ 9:21 am #

    @Niemi - The problem is that the plugin is looking for hidden data in your page, but it is not there. The data is inserted in your footer and is called when wp_footer runs. So, my guess is that you are not calling wp_footer() in your theme.

    If you have a footer.php page, add the following before the </body> tag:

    <?php wp_footer(); ?>
  15. February 11, 2008 @ 9:39 am #

    That's it, thank you Eric.

    I could have been struggling with this for days.

    Great job on this plugin.

  16. February 11, 2008 @ 9:41 am #

    And one more thing, is there a way of closing the dialog box when the email have been sent? So the users wont have to click 'X'.

  17. February 11, 2008 @ 11:15 am #

    @Niemi - Well, there are a lot of different options. Do you want it to close immediately, or after a pause? If you wanted it to close after displaying the final message, you could change the complete function to look like:

    complete: function (xhr) {
    	jQuery('#contactModalContainer .loading').fadeOut(200, function () {
    		jQuery('#contactModalContainer .title').html('Thank you!');
    		jQuery('#contactModalContainer .message').html(xhr.responseText + '<br/>Closing in 3 seconds...').fadeIn(200);

    If you just want it to close immediately (which won't let them know whether the message was sent or not, you could change the above to just:

    complete: function (xhr) {
  18. February 11, 2008 @ 1:22 pm #

    You're the devil Eric, thank you a lot.

  19. February 11, 2008 @ 4:10 pm #

    It may be worth adjusting, as it may be causing some of the above commenter's problems, the name of the directory when un-zipped is simplemodal-contact-form-smcf as opposed to smcf as referenced in the smcf_data.php file. Thanks for this great plugin, still no able to receive e-mail from it but I have a feeling its more a result of a problem on my server end.

  20. February 11, 2008 @ 6:16 pm #

    Great plugin, and I'm almost there. The only problem is that I'm not receiving the emails (a pretty big problem). I've sent several tests and got nothing. I've copy/pasted the two examples you gave at .org plugin page so that there's an href link on my contact page (see link on my name) and a dynamically created one on my 404 page.

    When I send an email, it gives me a message that the email was sent. Do I need to do more than just straight copy/paste? I feel like I'm missing something that should be obvious.

    I appreciate your help.

  21. February 12, 2008 @ 9:00 am #

    Opened up my email this morning and found a bajillion test emails I sent myself. So it's working, I was just experiencing major lag for some reason.

    Again, it's a beautiful plugin.

  22. February 13, 2008 @ 10:56 am #

    Hi, I have installed your nice plugin contact form. The only thing I cant get working is the big background of the form.

    You can check it here: by pressing the Contact link.

    Can you help me to solve this?

    Thanks in advance.

  23. February 14, 2008 @ 10:35 am #

    @bob - thanks for that note...I wasn't aware of that. I've update SMCF documentation to reference the actual plugin folder name. I've also update the code so that it can dynamically determine where it is installed.

    @Matt - glad it is working!

    @DogDay - looks like you got the background issue resolved...

  24. February 15, 2008 @ 4:37 am #

    Yes, and I have restored (translated to spanish) the credit link that I removed by error trying to solve my problem.

    By the way, your plugin crashes with Live Search Popup plugin.

    If I enable yours, Live Search Popup stops working.

  25. February 17, 2008 @ 3:01 pm #

    I just wanted to drop you a note and tell you I think your program is great! I had no problems!

  26. February 22, 2008 @ 11:10 pm #

    I really love this plugin. One question though, is there any future to allow for multiple forms? For example, I would like a form for the main contact of the site, but I would also like to be able to have forms for each individual team member listed on the site (about 15 or so). I think this would be a really slick way for customers to contact them and avoid displaying their email address directly on the page.

    Keep up the awesome work!

  27. February 24, 2008 @ 7:44 am #

    @Chris - thanks, I'm glad you like it!

    @Rene - thanks for the suggestion...I'll keep it in mind for a future version.

  28. February 25, 2008 @ 10:57 pm #

    Awesome plugin, Eric. I'm going to use it on several sites.

    If I can ever be of service, let me know!


  29. February 28, 2008 @ 2:14 pm #

    It'd also be nice to offer the option of the sender cc-ing themselves. I know I hate it when I use a form that just doesn't give me some proof of success.

  30. February 28, 2008 @ 10:16 pm #


    Could you please add a "Subject" field to the contact form? Thanks.

  31. February 29, 2008 @ 10:50 am #

    @Matt - I agree...the cc feature is something is on the to-do list.

    @Vasile - the ability to add/remove fields through the admin interface is something I'm considering, but for the time being, you can just download the changes I made, which include a subject field. The field is not required and the default will be used if not entered.

  32. March 1, 2008 @ 4:45 am #

    Thanks for a great plug-in. This is easilly the coolest looking contactform for wordpress and it is great since it doesn´t require any special page or subject to be set up.

    Since you solved a problem för me (the footer thing) I´m also really greatful for your quick support!


  33. March 5, 2008 @ 9:15 am #

    Great plugin. Very useful for me.

  34. March 5, 2008 @ 10:05 pm #

    Hi Eric,
    Regarding the question Niemi had about having the dialog box close after sending the message, where exactly do I add the code you've provided? I went to the plugin editor in wordpress, and I'm assuming that the code is to be added to the file it displays, but I don't know exactly where to place it without causing damage if I'm wrong (excuse my ignorance, but I don't know much about php files). I don't see any complete function code in the file which I would then edit.

  35. March 6, 2008 @ 10:07 am #

    @Patou - those changes are for the js/smcf_javascript.php file. You'll have to edit that file by hand, it is not available through the plugin editor in WordPress.

  36. March 6, 2008 @ 11:47 am #

    Let me start off with a thank you for this contact plugin and then a comment that I don't know what I'm doing! This is my first wordpress site and I'm not a programmer. I'm trying to use your plugin with the Lightbox2 plugin ( When I go to the Options - SimpleModal Contact Form Configuration - and then select the Include jQuery and the Include SimpleModal the Lightbox2 image view stops working. Any ideas?

  37. March 6, 2008 @ 12:04 pm #

    @Spencer - the problem has to do with conflicts between the different JavaScript libraries. If you are not using jQuery anywhere else on your site, you can add the following to the js/smcf_javascript.php file (right below the var smcf_url ... line):


    That should do the trick ;)

  38. March 6, 2008 @ 12:21 pm #

    Thanks. The smcf_javascript.php file now has the code below;

    var smcf_url = '';


    I have deselected the "Include jQuery" in the configuration tag and then I have the "Include SimpleModal" selected.

    The Lightbox2 now works but the contact page is reporting errors. This is what I've got in the contact page;

    <a href="/contact">contact</a>

  39. March 6, 2008 @ 2:04 pm #

    @Spencer -
    1) I hope that smcf_url in smcf_javascript isn't actually empty ;) It should be:
    var smcf_url = '<?php echo get_bloginfo('wpurl') . SMCF_DIR ?>'
    2) You need to have "Include jQuery" checked, or SMCF will not work
    3) The contact link should look like:
    <a href="/contact" class="smcf_link">contact</a>
    4) Please read the box right above the "Leave a Reply" textarea on how to post code snippets.

  40. March 6, 2008 @ 2:29 pm #

    hehe, thanks. Like I said in my first comment, I don't know what I'm doing! :D

    1) var smcf_url = '';
    2)"Include jQuery" AND "Include SimpleModal" are checked
    3)the contact link is <a href="/contact">contact</a>
    4)jQuery.noConflict(); is right below the var smcf_url ... line in the js/smcf_javascript.php file

    it all seems to work now. Thanks!

  41. March 8, 2008 @ 4:34 am #

    Hello there and Hello Eric,

    great plugin you offered! I've got it working on my new website on firefox, safari etc. but still not working on IE, it seems that nothing is happening. I've read all the reply before but found nothing to help me.

    Your help would be highly appreciated.

    Thanks in advance

  42. March 8, 2008 @ 6:55 am #

    @damo - it looks like jQuery is being loaded twice on your site. You can try de-selecting the include jQuery option in the SMCF options. However, the other version that is being loaded (it looks by Thickbox) is older and I'm not sure that SMCF will run correctly on that version.

    So either try removing the Thickbox jQuery version or the SMCF one and see if that fixes the issue.

  43. March 8, 2008 @ 8:20 am #


    I've tried removing the SMCF jQuery in the option menu by de selecting the "include jQuery" option and now it just doesn't work in firefox neither. How do I remove the Thickbox jQuery version? I just don't get it.

    Thks in advance

  44. March 8, 2008 @ 8:35 am #

    With so many people using lightbox, it'd be nice to have an update that played nicely with LB automagically. Especially for us non-code-monkey types. Great plugin, BTW. Thanks for your work.

  45. March 10, 2008 @ 9:35 pm #

    @damo - I downloaded and activated the Thickbox plugin. I just edited the thickbox.php plugin file and commented out the following line:

    //echo '<script src="'.$url.'/thickbox/jquery.js" type="text/javascript"></script>'."\n";

    @jp - I have two thoughts:
    1) I should update SMCF to put the JS files in the footer, as opposed to the header. That would speed up page loading and help with one Thickbox compatibility issue.
    2) The Thickbox plugin I tried did not have an option to include/not include jQuery (like SMCF does). As long as any other plugin uses a compatible version of jQuery (1.2+), all should be fine.

  46. March 11, 2008 @ 3:55 am #

    Hello Eric,

    thanks for your reply. I've done what u told me and it still doesn't work on I.E but still working on firefox... What else? :)

  47. March 11, 2008 @ 8:17 am #

    @damo - I tested it with IE6 & 7 and it worked fine. When you say it doesn't work, what is the problem? Have you turned on JS debugging in IE to see if it is throwing any errors?

  48. March 12, 2008 @ 7:02 am #

    Hi Eric,

    I can't believe it's working for you and not for me or my clients...this is so weird. I've just tried again with IE 7 and here's the dubugging message:

    Script Error Informations:
    OS Information: Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    OS Language: fr
    Browser: Microsoft Internet Explorer 4.0 (compatible; MSIE 7.0; Windows NT 5.1) 0
    Web Browser Language: fr
    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
    Cookies enabled
    Java enabled
    Script Error:
    Line: 11
    Character: 4
    Code: 0
    Error Message: Cet objet ne gère pas cette propriété ou cette méthode (if you can't speak french basically it says that this object can't handle this priority or method).

    I've tried to enable a lot of things in the internet options / security window but it doesn't seem to change anything.

    Sould I try something else? or do you need information about my wordpress plugins? Should I uninstall the plugin and install it again?

    See I'm desperate...

  49. March 12, 2008 @ 7:51 am #

    @damo - it looks like you still have another version of jQuery being used by wp-shopping-cart. Once you stop it from loading it's copy of jQuery, all should be fine.

  50. March 12, 2008 @ 11:15 am #

    @Eric - Ok thanks Eric but how do I stop it from loading? (I'm far from being a php/html pro...) What kind of line do I have to find, is it the same kind of thing you told me to do with thickbox?

    Thanks and sorry for being such a pain :)

  51. March 13, 2008 @ 7:45 pm #

    @damo - the easiest thing to do would be to copy the version of jQuery that comes with SMCF into the wp-shopping-cart/js folder. Then just disable jQuery for the SMCF in the Admin Options.

  52. March 13, 2008 @ 11:20 pm #

    Hi, Eric. First of all I'd like to say great plugin you've got here. However, I can't seem to get it to work the way I'd like to.

    I notice you have it working directly from a page and instead of having your Contact link take you to a page, it brings up the contact form. Is there a way I can do this from the dashboard and with a pre-made theme?

    I listed my site if that helps at all. Thanks.

  53. March 14, 2008 @ 4:18 am #

    @Eric>> I've tried and it just doesn't work for me...So I've decided to give it up and get back to a more "classical" contact form. That's a shame because yours was awesome. Anyway thank you for your time and I'm sure other users will enjoy it !

  54. March 14, 2008 @ 8:11 am #

    @David - Are you wanting to have a contact link that takes you to a contact page, where the user would then click another contact link (or button/image/etc) and that would display the contact form?

    If so, then all you need to do is (assuming the plugin is activated):
    1) create a contact page (wordpress)
    2) add a contact link to your site (theme)
    3) edit the contact page and include a link/button/image/whatever to open the contact form. It must have a class of smcf-link.

    @damo - I'm sorry to hear that. If you want to contact me privately, I can get it working for you.

  55. March 14, 2008 @ 8:32 am #

    @Eric - Nope, I'm looking to try to do exactly what you did: have the contact tab directly bring up the form rather than being taken to a page first. I'm just wondering how you did this, since I can't edit what kind of links the page links are. So I'm wondering if you were able to do this because you wrote your own theme/stylesheet or if there's a way to give the link to the page the smcf-link class so it can bring up the contact form rather than taking me to a static page

  56. March 14, 2008 @ 9:19 am #

    @David - ahh...sorry for the misunderstanding ;) I downloaded K2 and True Blue and just added a Contact link as a top menu item (along with Main and About). To do that, I just edited the themes/k2/header.php file and right below:

    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

    I added:

    <li><a href="/contact" class="smcf-link" title="Contact">Contact</a></li>
  57. March 14, 2008 @ 11:36 am #

    @Eric - that worked perfectly. Thanks a ton for your help. Great plugin!

  58. March 15, 2008 @ 12:07 pm #

    thank you for nice plugin.

  59. March 26, 2008 @ 10:40 am #

    Hey, thanks for the update with the cc:self option. Works great.

  60. April 2, 2008 @ 6:01 am #

    I installed your plugins, it's very nice, but when i fill the form and clic on send, i get "Uh Oh... 404: not found" error message.

    Can you please help ?

    many thanks

  61. April 2, 2008 @ 6:28 am #

    @Glucoze - I made some changes to how it determines the URL to send to, so that could be the problem. In Firefox/Firebug, check the smcf_javascript.php file and see what value it has for var smcf_url = ?. You can also your URL and I can take a look.

  62. April 2, 2008 @ 8:46 am #

    thanks for the quick reply
    the smcf_url variable is

    var smcf_url = '';

    the URL of my pre-prod WP site is

    Contact form is accessible via the tab on the top of the header.

    many thanks

  63. April 2, 2008 @ 8:52 am #

    in Firebug -> var smcf_url = '';

  64. April 2, 2008 @ 9:19 am #

    Ok i probably got it.
    with WP 2.5, there is no "wpurl" variable in the wp_options table.

    the wp url variable seems to be -> siteurl
    the blog url variable seems to be -> home

    i delete the "parse_url" function in smcf_javascript.php and i get

    var smcf_url = '';


    var smcf_url = '';

    but if i put the parse_url back i get

    var smcf_url = ''

  65. April 2, 2008 @ 9:50 am #

    it works with this :

    var smcf_url = '';

  66. April 2, 2008 @ 9:52 am #

    var smcf_url = '<?php
    $lurl = parse_url(get_bloginfo('siteurl') . SMCF_DIR);
    echo $lurl[path];

  67. April 2, 2008 @ 10:45 am #

    @GluCoZe - thanks for the info. I found out that it was an issue with the parse_url PHP function. I was using the component parameter, which is only supported in PHP 5.1.2+. I fixed the problem in SMCF v1.1.2.

    Also - wpurl is not in the database, but it is a valid WP variable ;)

  68. April 3, 2008 @ 1:53 am #

    You're welcome :) and thanks for the info, and most of all for the plugins. Very nice and well done !

  69. April 3, 2008 @ 7:08 pm #

    I love this plugin. How can I make the dialog close when clicking outside the box? Perhaps as an alternative to clicking the X, like lightbox.

  70. April 3, 2008 @ 8:43 pm #

    @K-Dog - in smcf_javascript.php where you see:

    show: function (dialog) {
    	jQuery('#smcf-container .smcf-send').click(function (e) {

    Change that to:

    show: function (dialog) {
    	// allow the user to click on the overlay to close the contact form"click", function () {
    	jQuery('#smcf-container .smcf-send').click(function (e) {
  71. April 4, 2008 @ 10:29 am #


  72. April 5, 2008 @ 4:24 pm #

    Hi Eric,

    I've been trying to get SMCF running on my site, but I'm a bit unclear with your instructions.

    I understand that I need to create a page called Contact, but I'm a little stuck on where I'm supposed to do this:

    a) Add the "smcf-link" to your existing contact link:

    I tried to send this with your contact form here, but it doesn't seem to want to go thru. Any help would be appreciated.

    Thanks much,

    nina aoki

  73. April 7, 2008 @ 10:13 am #

    @nina - sorry the instructions aren't clear :( Once you've installed and activated the plugin, you have two options for "making it work". 1) If you already have a contact link on your site, you just need to add the smcf-link class to that link. or 2) If you don't already have a contact link, use the smcf() function to create one. You'll need to edit your template files and place the code to call the function in there (like sidebar.php)

    If you need further details, let me know.

  74. April 8, 2008 @ 4:21 pm #


    I'm Daniele, an Italian guy. I've just installed your nice plugin in my blog-platform (WP 2.5) but when I use SMCF in IE7 it doesn't work...
    Could you try to understand, please, what's going on?
    (to use SMCF you have to click the "Scrivici" related image on the home-page sidebar or the same image you can find on the page called "contatti")
    Thanks much

  75. April 8, 2008 @ 9:47 pm #

    @Daniele - hello! The problem is that you have a comment on the first line of your HTML, which throws IE7 into quirksmode. So, you have two options, remove the comment or add the following CSS to your page (right above </head>):

    <!--[if IE 7]>
    <style type='text/css'>
    #modalOverlay, #modalContainer {position:absolute;}
  76. April 9, 2008 @ 2:42 am #

    But which file do I have to edit?
    Thanks much

  77. April 9, 2008 @ 4:01 am #

    because I cannot find a file with the /head code you referred to. (I've opened home.php, page.php, index.php, style.css and default.css). The only way to find the html code of the page is to show the source code directly from the browser, but then?

  78. April 9, 2008 @ 5:50 am #

    @Daniele - look in header.php. Also, I'd just remove the comment from (most likely) that file, then you won't have to add any additional markup.

  79. April 9, 2008 @ 5:09 pm #

    Sorry Eric,
    I've put the code you indicated in header.php, above /head... but nothing!!!! It's still the same...

  80. April 10, 2008 @ 10:09 am #

    what do you mean with "comment"?

  81. April 10, 2008 @ 11:32 am #

    thanks a lot Eric, this is by far the best contact plugin out there. good work mate!

  82. April 10, 2008 @ 1:27 pm #

    @Daniele - if you look at your HTML source, at the very top, you'll see:

    <!-- Header Start -->

    I'm assuming that if you open your header.php file, you'll see that somewhere. I suggest removing it!

    @theWizard - thanks!

  83. April 10, 2008 @ 6:35 pm #


    Okay - I gathered that I need to add the code in to my theme files. Right now I don't have a page called Contact - but if I use option 2 and add the code to the sidebar, it should work? I hate to sound so dumb - But I tried creating a page called Contact and then didn't know where I was supposed to add the the smcf-link class to that link. I looked in my header.php and didn't see any link to any of my pages. There's code in my header which seems to call to a list to get the pages to appear across the top of each page. So, I guess I might have been looking for something that wasn't there? But - I'm okay with adding it to the sidebar - I just have to figure out how to do that!

    Thanks much,

    nina aoki

    ps - I will try and send you something again. Thanks for your email.

  84. April 10, 2008 @ 6:44 pm #


    Hello again - in the configuration screen:

    Contact Link URL -- would that be the path to the contact page? Ex:

    Is this the correct formating if I was trying to use this with a page named 'Contact'?


    nina aoki

  85. April 10, 2008 @ 7:02 pm #


    I got it working! Yay!


    nina aoki

  86. April 10, 2008 @ 8:09 pm #

    @nina - great, I'm glad you got it working! I found an issue's the same issue that Daniele has/had. You'll want to edit your header.php (most likely) file and remove the comment that gets put in the page before the doctype.

  87. April 10, 2008 @ 9:02 pm #

    @eric - last one tonight! I'm getting feedback from users that SMCF doesn't work in IE7 and causes display problems. I tested myself in IE7 and see the problem. Are there any known issues with IE7 or might I have done something wrong? It works fine in FireFox and Safari tho.

    nina aoki

  88. April 10, 2008 @ 9:04 pm #

    @eric - sorry, just saw your reply. So I should remove that code from my header.php - got it! Thanks!


  89. April 11, 2008 @ 11:42 am #

    Thanks much Eric, now it's all right!!! Good luck!

  90. April 17, 2008 @ 7:35 pm #

    Works like a charm

    Thank you

    The text is a little light, I believe it is my css, any idea where I can edit this.?

    Thanks again.?

  91. April 17, 2008 @ 7:54 pm #

    @Steve - in your smcf.css, you need to edit #smcf-container form:

    #smcf-container form {margin:0pt; padding:0pt; background-color:#333; border:0;}
  92. April 23, 2008 @ 8:49 am #

    Been searching a while for something like this. Tried many others, but really nothing worked per my specs. If this works you have got yourself a fan for life. Will be checking out emAlbum too. Thanks for sharing.

  93. April 25, 2008 @ 6:18 am #

    Hey Eric, thanks for the comment and tip. The two errors I was getting were due to the default version of prototype that WP included in their package. I upgraded my prototype and scriptaculous libraries and it seems to work now... I think. Thanks again for your help!

  94. April 25, 2008 @ 10:04 am #

    OMG! This is the coolest ever contact form. I used up whole day to configure Contact Form II and I ended up with disappointment because I couldn't make it with my gmail account.

    With this plugin, I tuned
    <a href="/contact">Contact</a>
    <a href="/blogmiji/contact" class="smcf-link">Contact</a>
    then it works perfectly with cool ajax effect.

    Thanks Eric. =D

  95. May 1, 2008 @ 11:27 pm #

    this SMCF contact form is great can we do upload in this form ?
    i changed the input type text to file in contact.php and printed the $_FILES array
    in $action==send but did get a blank array not file arrays exact information.....:(

  96. May 2, 2008 @ 8:52 am #

    Eric, this is very cool. I would really like to try to implement this on my wordpress blog. Up to this point I haven't configured much on my blog, if I mess it up will you help me?

  97. May 2, 2008 @ 5:30 pm #

    Good stuff man. I was actually looking for a decent contact plugin. I really appreciate it.

  98. May 3, 2008 @ 11:53 am #

    Thanks for th plug-in. This was very useful to me. It's great it doesn´t require any special page or subject to be set up.

  99. May 3, 2008 @ 12:09 pm #

    Eric, just wanted to say thanks for this amazing plugin. Worked great for me and and I definately will be using in for a long long time. Great job!

  100. May 4, 2008 @ 7:15 am #

    this is brilliant, works a treat.



  101. May 5, 2008 @ 9:28 am #

    Hi Eric,

    first of all congratulations for this code. It's fantastic.

    I'm getting problems with my ie7 version. The Contact Form appears at the end of the page. Terrible. I've tried to find out the solution in this section but all the changes I made didn't fix the problem. Could you please help me?

    Thanks in advance, sir!

  102. May 5, 2008 @ 4:31 pm #

    Really good stuff, I like this alot, Thanks

  103. May 6, 2008 @ 3:57 am #

    Thanks, thats a really sweet contact form. However it would be cool if you could change the colour/fonts of the form via the wordpress admin panel.

  104. May 6, 2008 @ 5:38 am #

    Wow, really cool plugin. Thanks!

  105. May 6, 2008 @ 7:38 am #

    Great Plugin. Took me a while to configure it, but it is working now. I had to upgrade by wordpress version and it worked like a charm. TY

  106. May 6, 2008 @ 7:49 am #

    Great Plugin

  107. May 6, 2008 @ 7:59 am #

    cool plugin. Thanks!

  108. May 6, 2008 @ 9:56 am #

    It work fine, but if your extend configuration options (as said above) it'll be the best!

  109. May 6, 2008 @ 2:27 pm #

    Works well.. I had a real struggle with the configuration though. I think it's probably just an IE thing though because I had no problems in Firefox.

  110. May 7, 2008 @ 2:41 pm #

    thanks- i used this for a client today and it worked fantastic and saved me a ton of time

  111. May 8, 2008 @ 6:42 am #

    oh, thanks. that's a grat plugin, but
    there is a problem!

    here, on this page (;
    It doesn't work!

    I'm sorry, can you take a look for me ?
    thanks (:

  112. May 8, 2008 @ 6:43 am #

    Oh, is
    sorry ;P

  113. May 8, 2008 @ 7:47 am #

    Thanks for the SMCF. Great plugin. More of those please!!!

  114. May 8, 2008 @ 8:00 am #

    @Joel - glad you got it working. I'm looking forward to your review of SMCF!

    @Brendan - glad you like it!

    @Rabindra - you should be able to. Did you add enctype="multipart/form-data" to the form tag?

    @Bob - yes, if you need help, just let me know!

    @Dani - Try changing your DOCTYPE to:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    If that doesn't work, let me know.

    @HTML Guru - I'll keep that in mind for a future version, thanks!

    @Annie - what version of WordPress were you using?

    @Lúu - it doesn't look like smcf.js is being loaded. In your theme, do you have the wp_footer() call?
    Also, you have a JS error in the lightbox.js file. You might have to add this line of code to prevent a conflict with SMCF.

  115. May 8, 2008 @ 9:19 pm #

    very nice script dude, might use it on a couple of my sites

  116. May 9, 2008 @ 9:42 am #

    thanks- i used this for a client today and it worked fantastic and saved me a ton of time

  117. May 11, 2008 @ 6:50 am #

    Hi Eric but why my comment deleted ?

  118. May 12, 2008 @ 10:05 am #

    Great plug in for my website

  119. May 13, 2008 @ 11:00 pm #

    Great, I'll try the plugin on my blog tonight.

  120. May 14, 2008 @ 6:34 pm #

    Great plug-in. Thanks a bunch :)

    , Mike

  121. May 14, 2008 @ 7:10 pm #

    Very very cool one. I am surely going to use it. Thanks a lot

  122. May 16, 2008 @ 4:24 am #


    Thanks for the plugin. I have a few questions...

    1) I've added the following code to smcf_javascript.php and the dialog still does not automatically close after sending a mail...

    complete: function (xhr) {

    2) How do you change the opacity of the overlay? It's set to "0.5" and I'd like to change it to 0.8 to fall in line with other parts of my site.

    3) While the dialog is open, the mouse changes to the hour-glass icon when placed anywhere over the overlay; how do I change that so it stays at the normal pointer icon.

    Thank you,

  123. May 16, 2008 @ 6:58 pm #

    Thanks for the awesome plugin Eric.

  124. May 19, 2008 @ 1:55 am #

    Hi Eric,
    Regarding the question Niemi had about having the dialog box close after sending the message, where exactly do I add the code you’ve provided? I went to the plugin editor in wordpress, and I’m assuming that the code is to be added to the file it displays, but I don’t know exactly where to place it without causing damage if I’m wrong (excuse my ignorance, but I don’t know much about php files). I don’t see any complete function code in the file which I would then edit.

  125. May 19, 2008 @ 4:49 am #

    Great Plugin!

    But mir Firebug says:

    jQuery("div.wpcf7 > form").ajaxForm is not a function
    Line 5

  126. May 19, 2008 @ 10:37 am #

    @Hakan - sorry. I've been getting a lot of spam lately and it's not so easy to always figure out what is legit and what isn't.

    @Craig - 1) should work. If it's still not working, let me know and send me a link, if you can.

    2) You can change the opacity on the modal call by adding overlay: 80. For example, in 1.1.3:

       close: false,
       overlayId: 'smcf-overlay',
       containerId: 'smcf-container',
       onClose: contact.close,
       overlay: 80

    3) Edit the smcf.css and change/remove the cursor attribute for #smcf-overlay

    @dizi izle - the best place is in the footer.php file, right above the </body> tag:

    <?php wp_footer(); ?>

    @Fabian - I just took a look at your site and was able to open and submit a message using the form and did not see any errors...

  127. May 19, 2008 @ 1:30 pm #

    Its already done. My fault. But thanks for the fast reply.

    Nice Plugin - nice support!

  128. May 20, 2008 @ 1:36 pm #

    i did exactly as you said…it still doesn’t work… :((

  129. May 22, 2008 @ 9:47 am #

    @video izle - do you have a url I can see...

  130. May 22, 2008 @ 3:20 pm #

    Great Plugin,

    I followed the instruction and it works great.

    To video Izle, please remove and follow the intructions closely. It should work

  131. May 28, 2008 @ 9:36 pm #

    This is by far the coolest plug-in I've ever used.
    Thanks for putting it out there!
    It's great!

  132. June 1, 2008 @ 11:52 am #

    Hi Eric, AWESOME plugin, thanks so much! Question: Any way to get it to work with other plugins that use lightbox? (Specifically, Lightbox-2 from ??) Thanks!!!

  133. June 2, 2008 @ 11:22 am #

    I was wondering the same thing, I have lightbox on a few of my pages. Thanks Eric

  134. June 2, 2008 @ 12:10 pm #

    @Ramsey - I just downloaded the lightbox-2 plugin and got it working w/o any issues. What specifically is the problem that you are having?

  135. June 20, 2008 @ 11:41 am #


    I installed your plugin on my site, and it all seems to work correctly - yaaa! - but the messages that we receive via email have subject lines full of gibberish. We tried various settings for the subject lines: allowing the user to specify one; the default settings; and having the same subject line of our choice by default, but it always comes through as gibberish like this:


    Any ideas?

  136. June 21, 2008 @ 1:07 pm #


    I am also having the similar problem. The mail reached but contains a garbage subject. I dont understand why.

    Can it be corrected?



  137. July 1, 2008 @ 7:24 am #

    My server is an IIS based server and I've been having problems even getting regular scripts to send mail. My hosting company told me that I needed to add the line below to get mail to send properly from a mail() script.
    ini_set ("sendmail_from","");
    I am wondering if you can give me some advice how I can get your code to work with an IIS based server.

  138. July 23, 2008 @ 2:48 pm #

    Hi Eric,
    funny contact form this is and work like a charm.
    Just one thingy, Id like to use it for my authors, which means multiple email adresses as well as a title header like
    ". $title; _e($curauth->first_name); _e($curauth->last_name); . "
    - doesnt work of course.

    Any idea or upgrade in sight?


  139. July 24, 2008 @ 8:32 am #

    @Sara, @Vivek - sorry for not getting back to you sooner...I sent you both messages.

    @Shane - I haven't run anything on IIS in quite some time, but a quick google search seemed to provide some helpful information. Were you able to get it working?

    @Os.. - where is $curauth coming from? Anything is possible, really, but you'll need to customize the script in order to achieve what you are looking for.

  140. July 31, 2008 @ 6:47 am #


    I just installed you plugin for my blog site. but which not showing for me when i click the contact link on top. when i click the contact link which shows another contact link button and it shows ajax contact form.

    please support me to work the form when the user click the contact link on top bar itself.

    i created the page name as "contact" and added the following code on "Contact" on the page.

    Thank you in advance

  141. July 31, 2008 @ 8:12 am #

    @Sheriff - the contact link on the top needs to have the smcf-link class:

    <a title="Contact Me" href="" class="smcf-link">Contact Me</a>
  142. August 12, 2008 @ 10:15 pm #


    sorry to reply back. I have sent mail also. It is still causing problem.

  143. August 15, 2008 @ 8:58 am #

    Hi Eric, thanks for the plugin, fantastic. If you ever consider using the same simple functionality and look and feel to do a simple modal login and register for WP I'll be on the beta crew!

    Thx very much, will link you from our charity site when we go live.


  144. August 15, 2008 @ 11:51 pm #


    I'm having the same problem that Fabian above had back in May, with the following error from Firebug:

    jQuery("div.wpcf7 > form").ajaxForm is not a function
    Line 5

    Looks like he somehow fixed it, but I don't know how. How do I fix it?

  145. August 16, 2008 @ 6:21 am #

    @Rob - if you can show me an example of what you're looking for, I can see about creating something like that.

    @Josh - it looks like you are using Contact Form 7, not SMCF. However, it looks like you have 3 different copies of jQuery loading...try getting that down to just one and see if that helps.

  146. August 16, 2008 @ 12:04 pm #


    Oops, thanks for the help. I just did a search for the error message, I didn't even notice I was looking at a different plugin! Sorry about that.

    Although I am a software guy, I am not a php/js programmer, so I know just enough to get into trouble. I haven't customized WP other than to add plugins and use a theme. So I don't know how it is that I have multiple copies of jQuery loading. Is that because different plugins are probably doing it? Is this just a plugin incompatibility problem? Where would I even look to figure out where 3 different copies of jQuery are coming from?

  147. August 18, 2008 @ 4:59 am #

    @Eric - I dont know that I have an example. The idea would be that when the user clicks register or login that the pop up form would use the WP code but display it in a simple modal pop up instead of going through to the WP login page. There are AJAX login plug ins, but they appear as sidebars or the like. It would be fantastic to click register and the site dims down and pops a box with the WP register info, same for forgot password or login.

    I could mock something up on Photoshop for you in the next few days.


  148. August 18, 2008 @ 6:25 am #

    @Josh - if you use Firefox/Firebug or just view source, you'll see that jQuery is being loaded 3 times. You'd have to look at your theme header.php file to see, but it looks like it is being loaded twice by your theme and one more time by the contact form.

    I'd suggest making sure your theme only loads it once and them having the contact form not load it at all.

    @Rob - sounds good. I probably won't be able to look into it until after this week...but it sounds like a fun idea!

  149. August 18, 2008 @ 1:00 pm #

    Thanks Eric. I'll figure it out.

  150. August 22, 2008 @ 6:21 am #

    I look forward to helping you test it :) I really need to learn to develop and write code. It looks like such good fun! Hacking other peoples scripts to pieces just isn;t that gratifying! :)

    I'm also trying to solve the problem of subscribers changing their passwords WITHOUT having to see the back end dashboard! Those WP passwords just ain't that memorable!

  151. August 25, 2008 @ 6:52 am #


    ajax does not display ie5

  152. August 25, 2008 @ 10:17 am #

    @Mansur - IE5 is not a supported browser...

  153. September 25, 2008 @ 12:25 am #


    Excellent work. I have installed your plugin and everything works. However, like others, the email I receive has a bizarre subject. Example: "=??B?bXkgc3Vi?="

    Any idea what is up?


  154. September 25, 2008 @ 6:17 am #

    @Joyde - I need to update the plugin to prevent that. In the meantime, you can open smcf_data.php and comment out the following line:

    $subject = "=?$charset?B?" . base64_encode($subject) . "?=\n";

    The problem is that your instance of PHP does not have mb_encode_mimeheader enabled. So having that enabled would be another way to fix the issue.

  155. September 25, 2008 @ 8:35 am #

    Hey Eric. I'm having an issue again and I'm not sure what the deal is. I've tried everything I can think of from including the simplemodal jquery plugin as a standalone (apart from the SMCF plugin) to disabling an enabling in endless combinations. I'm not sure if SMCF is in conflict with the other jQuery stuff I'm doing or what. But the form will not pop open.

    If you have a minute and are willing, I would deeply appreciate any thoughts you might have: - thanks for the endless support you seem to give on this plugin :)

  156. September 25, 2008 @ 1:01 pm #

    @Joel - hello! Good to hear from you. I checked out your site - the new design is really nice, congratulations!

    As for the SMCF problems - I'm getting 2 JS errors when I load your site, which are probably what is causing SMCF to not work.

    missing } after property list
    /js/ Line 12
    $("#photoGallery").flickr is not a function
    / Line 66

    It looks like the error is being caused by the api_key setting in the file. Try quoting the api_key value and see if that helps.

  157. September 25, 2008 @ 1:19 pm #

    thanks Eric... that fixed the problem!

  158. September 25, 2008 @ 6:08 pm #

    Brilliant. Thanks so much. I wouldn't have caught that... some third-party scripts you know ;)

    Thanks for the quality and compliments!

  159. September 27, 2008 @ 7:05 am #

    hi. Thanks for plugin



  160. September 27, 2008 @ 10:07 pm #

    Hi Mr. Eric

    I take your plugin and translate to Turkish for more people can use this good job but i don't use it.

    I use 2 way too. Function and smfc link but i saw to 404 Page. Dırırın... Not Found...


    İf you want another information i can give it and i take to you my translation when i'm start to use it because Turkish people come to me when they have a problem but i won't be use.

    İt will be laught... :))

    İf you can send my mail your answer will be more good. I will be waiting...

    Thanks Again

  161. September 28, 2008 @ 8:33 am #

    @immortalance - I need to localize SMCF and once I've done that, I'd love to have a Turkish translation.

    As for SMCF not working on your site...I don't see any of the SMCF files being loaded. Please make sure you've activated the plugin, and gone through the Settings. You also need to make sure that your theme uses the wp_head() and wp_footer functions.

  162. September 28, 2008 @ 12:50 pm #

    hi Eric, i have installed SMCF in my blog. it is ok in Firefox and Opera but it does not work in Internet Explorer, could you help me with this bug.. thxx...

    my blog;

  163. September 28, 2008 @ 2:01 pm #

    @Birkalem - it looks like the issue might be because you have multiple version of jQuery loading. Can you prevent the older version from loading? It looks like it is coming from your theme.

    I'd suggest upgrading jQuery in your theme and then disabling the version that SMCF loads (in the SMCF settings).

  164. September 28, 2008 @ 3:12 pm #

    hi i got wat u mean bu i dont know how 2 do it, could u get in touch with me via msn messenger

  165. September 28, 2008 @ 3:38 pm #

    ok Eric, i think i made it work :) thx anyway,great plugin !!!

  166. September 28, 2008 @ 10:41 pm #

    Hi there. One quick question: does your plugin work with SMTP? mail() is not available for everyone, you know. :)
    Thank you.

  167. September 28, 2008 @ 10:55 pm #

    @Birkalem - Glad you got it working.

    @Dirtchamber - At this time, it requires mail(). If the demand is great enough, I will consider adding SMTP support.

  168. October 3, 2008 @ 6:18 am #

    hi eric, how can i combine all javascript http requests on my website in a one request on php?

  169. October 7, 2008 @ 8:37 am #

    @Birkalem - are you asking about just the SMCF files, or every JS file on your site?

    This post may provide some insight:

  170. October 7, 2008 @ 6:56 pm #

    i have tried that method, but SMCF does not work when i try to combine simplemodal.js and smcf.js with jquery.js in my theme in a single PHP file. r there any suggestion for that?

  171. October 9, 2008 @ 8:42 am #

    @Birkalem - as long as they are in the correct order, it should work...

    1) jquery.js
    2) jquery.simplemodal.js
    3) smcf.js

  172. October 10, 2008 @ 1:14 pm #

    Eric, I'd like to make the changes in the code to have the modal box close by itself after the email is sent, but the most recent release of your plugin doesn't include a file named smcf_javascript.php , where you point out the changes to be made in comments from last February and March. I've also looked for that function in other files; have you changed the file names? Where can I add the code to have the modal box self close? Thanks - Mark

  173. October 14, 2008 @ 9:23 pm #

    Eric, I'm getting this error that FireBug is showing:
    jQuery("div.wpcf7 > form").ajaxForm is not a function
    Line 5

    I'm assuming that something may be conflicting with my theme since it is JQuery too. I have updated and I'm using latest version of plugin. Can you help? I see someone else had this problem above, but it didn't require an answer because they figured it out on their own. Thanks...

  174. October 15, 2008 @ 8:58 am #

    @songdogtech - that file is now js/smcf.js. Let me know if you can't get it working.

    @Andy - any relation to Kirby ;) Anyway, you are asking about Contact Form 7, which was written by someone else. I looked at your site and didn't see the error, so I'm guessing you got it resolved.

  175. October 15, 2008 @ 12:11 pm #

    There's no "complete" function in smcf.js; I'm guessing it's now either "close" or "success" in the newer version. I don't know javascript well enough to splice things together! If you could point out where to add the complete function or how to modify the newer functions for automatically closing the dialog box after the email is sent, I'd appreciate it. - Mark

  176. October 18, 2008 @ 6:31 am #

    @songdogtech - you are correct, it is now the success function.

    Something like the following should work:

    success: function (data) {
    	jQuery('#smcf-container .smcf-loading').fadeOut(200, function () {
    		jQuery('#smcf-container .smcf-title').html('Thank You!');
    		jQuery('#smcf-container .smcf-message').html(data + '
    Closing in 3 seconds...').fadeIn(200); setTimeout('jQuery.modal.close()', 3000); }); },
  177. October 20, 2008 @ 9:22 am #

    Eric, That new "success" function doesn't want to self-close...and I don't know enough Javascript to figure it out. If you want to take a stab at it, I'd appreciate it. Thanks, Mark

  178. October 21, 2008 @ 8:18 pm #

    Eric, My bad - that new success function does work OK. I needed to dump caches or something, but it works now! Thanks, Mark

  179. October 23, 2008 @ 7:53 am #

    Hi there,

    I'm having a little problem understanding some. On settings page it asks for a contact link url - I thought this was meant to be a link to another page if the person didn't have javascript and couldn't use the pop-up. I created a page and put the code:

    on it but I just get another link to the javascript popup.

    Am I misunderstanding part of what the plugin does? Is it only a pop-up?

  180. October 24, 2008 @ 8:40 am #

    @songdogtech - glad you got it working.

    @Hazel - SMCF is only the Ajax modal/popup dialog. The contact link URL is there for the purpose you mentioned, but SMCF does not have the feature of creating a non-JavaScript contact form. This is something that I'm considering adding in a future version.

  181. October 25, 2008 @ 12:03 am #

    Thanks for explaining. I think it would be valuable in a future release.

  182. October 26, 2008 @ 8:11 am #

    Great plugin mate. Only one thing.. at -> left sidebar & "Contact". All works great, but theres this white line between the header and the first input line, which I cant get rid of. Dunno if theres some conflict between my WP-theme & the SMCF..

  183. October 27, 2008 @ 9:04 am #

    @malenami - it is being caused by h1, body .entry .title style in your theme. To override it, add border:0; to #smcf-container h1 style in smcf.css. You should end up with:

    #smcf-container h1 {border:0; color:#d76300; margin:0; padding:0 0 6px 12px; font-size:1.2em; text-align:left;}
  184. October 28, 2008 @ 4:01 am #

    Thanks Eric.. its works just great now.

  185. November 4, 2008 @ 12:10 pm #

    Hi Eric,

    The Contact Form that you have presented in your Demo is not working on my Local Machine and on my Server. Note: My Website is not powered by Word Press. So i mean do your scripts only work with Word Press, because i really like the contact form that you have presented in the Demo and i would like to integrate it in my Website. So please help me with this.

  186. November 4, 2008 @ 12:16 pm #

    Please Eric,

    I really want to integrate your Contact Form (Demo) in my website. I would appreciate if you can help me with this issue. I mean i have downloaded your Contact From, but it is not working on my local machine and on my server. When i click on the Demo Button in the Index.html file, nothing is happening. It is like the demo button is not working at all as nothing is happening when i click on the demo button in the Index.html

    Please i need your help. Regards.

  187. November 7, 2008 @ 9:30 am #

    Thank you for your help Eric. I changed some code and now the contact form is working perfectly on my website. Thank you once again.

  188. November 11, 2008 @ 3:44 pm #

    We had so much problems with Contact 7, the other guys, that's why we switched to you, thanks, the form looks great.


  189. November 17, 2008 @ 7:28 am #

    Hello Eric, I was wondering if you could help me out? I have recently installed your (smcf) and for some reason it did not populate my pages with the necessary code. I proceeded to pick through other sites to see what my site was missing to make your script work and did so with the exception of my mail being sent. With further research I realized that my form should have received a personal token value, the one that is there now is the one that came with the form I took of someone’s page. I guess my question to you is how do I get my own or can I just get rid of the token code all together??? My URL…

  190. November 17, 2008 @ 1:56 pm #

    @martin - just checked your site - it looks like you got it working. Looks good...I like the way you implemented the form!

  191. November 17, 2008 @ 5:18 pm #

    Hey Eric,
    Thank you for the complements on my form and my hat’s off to you for this great script. My apologies in bothering you again but the problem I am having is the fact that I don’t get any emails. When I try and send an email the message given back to me is “unfortunately your message could not be verified”. What I feel may be the problem is the token code belongs to someone else, the plug in did not generate me one so I picked at other peoples scripts to get to where I am at now. I was wondering how can I get my own token value or is it possible to just get rid of the token code? Again thank you for all your help.

  192. November 26, 2008 @ 10:31 am #

    @martin - were you able to get it working? The token code is generated based on values from your site, so that should not be the problem. You *could* remove the token, but I suggest leaving it.

  193. December 7, 2008 @ 1:18 pm #

    I'm having trouble getting the contact form to work properly. It shows up and everything, but neither the closing "X" nor the "cancel" button work or work properly. If you have time, have a look at my page and click on 'Contact Us!' on the right to open the contact form. I'm not sure how to fix it, if you have any suggestions. Thanks.

  194. December 7, 2008 @ 2:29 pm #

    @Dave - I took a look at your page, and it looks like the error is coming from the sikbox js file. The error doesn't seem to happen until the modal dialog opens.

    The problem is with this code:


    The $ needs to be jQuery.

  195. December 8, 2008 @ 11:19 am #

    Eric, whatever you did in the new version, you made the animation work in the Collapsing Categories plug in I've been trying. Thanks!

  196. December 8, 2008 @ 11:44 am #

    @Matt -, the Collapsing Categories plugin was not working and then you upgraded SMCF and now the Collapsing Categories plugin works?

    Were you getting any JavaScript errors? I'll have to try it out and see if I can reproduce the problem...

  197. December 8, 2008 @ 3:22 pm #

    It was a javascript error, but that's way out of my depth, so I'm afraid I couldn't be much more help. The other plugin worked with the animation turned off, but when I turned it on worked at all.

  198. December 18, 2008 @ 1:47 pm #

    I don't use any js files for the sikbox search form. It pulls from the Sikbox site. Am I not able to use both the Sikbox and SMCF?

  199. December 18, 2008 @ 4:19 pm #

    @Dave - I've contacted Sikbox and asked them to fix their JS file. Until it is fixed, you can edit your theme and add the following, right before </head>:

    <script type="text/javascript">
    window.$ = jQuery;
  200. January 6, 2009 @ 4:54 am #


    I have a problem with this fantastic plugin, hope you can help me to solve it.
    When I try to send a message, the following error appears: "500: internal server error".

    I've already had problems with ajax powered plugins, but I never found a solution.

    I followed all your instruction, my server is Linux. PHP version 5.2.8

    You can see the error entering my website, click on "contattaci" and trying to send an email.

    Thanks a lot!


  201. January 14, 2009 @ 9:13 am #

    @Marco - With an error like that, you'd really need to look into your webserver logs to see what the problem is.

  202. January 16, 2009 @ 9:26 pm #

    Hey Eric - Great plug-in! It works when When I post the link anywhere on my blog, but I'm trying to set it up just like yours (Instead of an actual "contact page" it just opens the form). I am new to wordpress and I have 2.7 installed. I also have a custom theme installed as well. I tried doing it through the header.php file like you had posted earlier but it doesn't get formatted with the other "Nav" links. I really don't wanna build a custom nav just to make this work, is there a way to do this from the dashboard?

  203. January 16, 2009 @ 9:34 pm #

    lol, nevermind I got it. Silly.

  204. January 27, 2009 @ 5:23 pm #

    Hey Eric,

    This is an amazing plug in! Thanks so much for all the work you did. I am using it on our test site and it is working, except that I do not receive the email. It said it sent successfully, I just dont receive anything. I did a bit of researching and it may be caused by an anti spam system that was just installed by our hosting company. They gave us two work arounds. I wanted to see I could use these in the code somewhere, and if so where and how would I do it. Any help you could give would be SO APPRECIATED!

    Work around from host company was to add this (where I have no idea):
    ini_set(’sendmail_from’, ‘’);

    I found a guy who wrote a work around for this specific host company and a similar php mail problem. Again, not sure where I would add this code:

  205. January 27, 2009 @ 5:24 pm #

    sorry... the last part of the code didnt paste... trying again:


    function ixw_phpmailer_init($php_mailer){
    ini_set('sendmail_from', '');

  206. January 29, 2009 @ 11:33 pm #

    @Jay - glad you got it working!

    @Dave - Try putting it in scmf_data.php, right after:

    Let me know if that does not work!

  207. January 30, 2009 @ 7:54 am #

    Hi Eric,
    Thanks for plugin but i have an error, the mail wasnt send.. How can i solve? I edit my header.php with the codes.

  208. January 30, 2009 @ 1:27 pm #

    (Hmm don't think my post went thru)

    Eric, you are a star.. I don't know how you have the patience to help so many people. I hope many donate or you make money somehow from this because you certainly deserve it!

    I had a crude version of modalbox (or facebox rather) working on my site but it didn't validate data so I thought I would give yours a go. I am getting the server error response even though I know mail() is installed and working on the server. Any ideas? - click 'contact' on the signpost.

    Best regards..

  209. January 30, 2009 @ 10:25 pm #

    @Ryan - sorry, your comments were flagged as spam. I appreciate your kind words ;)

    I just checked your site and it appeared to let me know if you're still having any problems.

  210. January 31, 2009 @ 1:54 am #

    Hmm it does in fact work now, perhaps it just needed a little time to kick in or something? Much appreciated!

  211. January 31, 2009 @ 9:16 pm #

    I am running WP 2.7 and I installed your plugin.

    I added a link to one of my posts and when I click the contact form appears. I enter in the info. and click "Send" and I get the error:

    "Uh oh...

    404: Not Found"

    I have the following settings for the plugin (via WordPress):

    Contact Link URL: /contact

    Do I need to have some page (i.e contact.php) available somewhere? if so I haven't created one. If I do need it where does it go??


  212. February 4, 2009 @ 11:33 pm #

    great plugin ... my favourite contact page ever!!

    i came to try and find out how to add it to the pages menu. the code you provided in the comments worked perfectly.

    love it!! thanks for your hard work.



  213. February 5, 2009 @ 12:25 pm #

    @Ryan - who knows, but I'm glad it is working now ;)

    @codecraig - that's a strange one. It looks like it would work without the /dsc at the beginning of the URL, but that is where everything else is coming from. I'd have to know more about how you have WP setup...

    @david - thank you!

  214. February 5, 2009 @ 6:45 pm #

    I have a main domain ( and digitalchickenscratch points to a directory there, specifically, WP is installed in the "dcs" directory.

  215. February 9, 2009 @ 6:47 am #

    Hi Eric! You plugin works on my blog,, nicely. But after configuring the permalink it do not works any more and shows 404 error. Would you tell me how to solve this problem.

  216. February 9, 2009 @ 9:58 am #

    @codecraig - that is really strange. I can't understand why it would load the JS and CSS fine, but then have an issue trying to reach the php page. You're sure all of the files are in the correct folder?

    @Tanim - It looks like the JS is not working. I was getting a JS error on your site, which probably is what is causing it.

  217. February 12, 2009 @ 8:53 am #

    Hi, I'm having problems using scriptaculous and this library... I can get working only one of the functionalities (feature using scriptaculous or the form using this library).

    I am able to run the functionality which uses the library that has been included the last.


  218. February 12, 2009 @ 10:27 am #

    AWESOME PLUGIN! Works like a charm. You da man!

  219. February 12, 2009 @ 6:48 pm #

    @eric - I uploaded the plugin to the wp-plugins folder, was there something else?

  220. February 15, 2009 @ 8:22 am #

    @david - the SMCF JavaScript shouldn't be causing any issues, perhaps it is being caused by something else? Do you have a link I can view?

    @JJ Honeycutt - thank you :)

    @codecraig - so, I finally realized what is going on. It looks like files from are being pulled fine, but anything from is not. It sounds like a configuration issue and unless I can see how you have everything configured, I'm not sure what to tell you. If you'd like to send me some more information via email, perhaps I can help figure out the issue.

  221. February 15, 2009 @ 11:48 am #

    First, let me say that I love your plug in and can't wait to use it. I am using WP2.7 and can't figure out how to add the class <a href="/contact" class="smcf-link">Contact</a> to the menu with a theme that uses the wp_page_menu to create menus.

    Can you help?

  222. February 17, 2009 @ 4:51 pm #

    Must be b/c of the domain pointer. Basically digitalchickenscratch points to (which is where WordPress is installed).

    Not sure what to do to fix the plugin or wordpress to handle that

  223. February 18, 2009 @ 4:15 pm #

    @rgregory - I need to look into that. Thanks for the reminder...

    @codegraig - can we continue this off of the comments, please. Send me an email with the settings you have for WordPress (WordPress URL and Blog URL).

  224. February 19, 2009 @ 9:50 am #

    Thanks for looking into it! I have done a fair share of research to try and solve it. Enough to know that no one has published a workable solution and the old way of doing it doesn't work.

    I found a similar solution where someone was using jQuery to add a class dynamically to a link, but I wasn't able to change the code to suit this. My java abilities are nil. I think it would be a simple and elegant solution if you were already using jQuery.

    I also found a plug-in page-lists-plus that allows the adding of classes to wp_list_pages, which worked when I changed the code to use the older call up. But this is a clunky solution that requires another plugin and some code hacking. (of course if you were going to change the code, you could get the link class there without the plugin)

    Just thought I would throw this out there, not sure if it's helpful or not.

  225. February 24, 2009 @ 7:03 pm #

    I have downloaded your SMCF plugin for wordpress and it's great, but for some reason safari doesn't even recognize the link. What can I do?

  226. February 26, 2009 @ 3:01 am #

    @Eric sorry I don't have any link on the problem, but I have stopped using scriptaculous to enjoy your plugin. Thanks.

  227. February 26, 2009 @ 11:11 pm #

    @rgregory - sorry for the delay. I'll need to work something into the actual plugin, but I came up with a temporary solution. In either the SMCF plugin file or your theme's functions.php file, add the following:

    function smcf_menu_add_class($menu) {
    	$menu_title = "Contact";
    	$find = '/title="'.$menu_title.'"/';
    	$replace = 'title="'.$menu_title.'" class="smcf-link"';
    	return preg_replace($find, $replace, $menu);
    add_filter('wp_page_menu', 'smcf_menu_add_class');

    Just change $menu_title to whatever the title is for your contact page. Let me know if you have any issues.

    @Scott Greskovic - do other browser have the issue? What version of Safari? Do you have a link I can view?

    @david - well, glad you got it working ;)

  228. February 28, 2009 @ 1:01 pm #

    Hi, Eric. I've recently run into a problem, and I hope you can help. If I enable Include "Send me a copy" Option, and the user activates that option in the SMCF, messages will not send. Instead SMCF returns the error "Unfortunately, a server issue prevented delivery of your message."

    However, as long as the sender CC option isn't used, the form submits correctly.

    You can see it yourself at Use the e-mail link in the left sidebar under "Quick Connect."

    Any help would be greatly appreciated. Thank you.

  229. March 1, 2009 @ 2:30 am #

    Hi there - okay, you're dealing with a cyber-dork here, so once you've finished rolling around on the floor at my ignorance....

    Installed and activated plugin. Great! Went to config and did that. Greater! My noggin said "go make contact page". Did that....

    So now what? Went to the WP site and guess what, nothing obvious re installation etc. Ideally I would have liked a little drop down widget-type thingy, but all of them say "not tested on your version" (2.7) so I'm avoiding those. What do I have to do to make the actual form materialise out of the ether and land on the nice little page I made for it??

    I know this is probably soooooo simple, and I apologise in advance - being severely cyber-challenged, most "techi-speak" goes over the top of my head, so keep it sweet and simple, please please...

    Many thanks

  230. March 2, 2009 @ 1:05 am #

    My blog was running under a number of subdirectories after the domain, I tried this and got 404 error.
    <a href="/contact" rel="nofollow">Contact</a>

    Used this and it works fine. :)
    <a href="contact" rel="nofollow">Contact</a>

    Maybe it helps someone with 404 error.

  231. March 2, 2009 @ 11:26 am #

    As far as I know, no other browsers are experiencing the issue and I have the most recent version of safari. You can give it a look at On the right there is a link that says join the mailing list. Thanks

  232. March 3, 2009 @ 10:36 pm #

    @Pariah Burke - that is strange. Have you modified the php files any?

    @Judah Raine - currently SMCF only creates the animated modal contact form that you can see on this page - it does not embed a form into an existing page.

    @Trav - hmm...neither of those should work. SMCF is looking for a specific class to bind the click event to.

    @Scott Greskovic - That is really strange. Unfortunately, I can't reproduce the error and Safari doesn't have the developer tools I need to troubleshoot the issue.

  233. March 4, 2009 @ 9:55 am #

    @Eric Nope. No modifications to SMCF at all. Any thoughts on the problem, anything I can try by way of troubleshooting?

  234. March 5, 2009 @ 10:14 am #

    @Pariah Burke - in smcf_data.php, you can remove the @ in front of @mail(...) and the actual error message should be displayed. You could also check your web server logs to see if there is any information in there.

  235. March 6, 2009 @ 7:49 am #

    Hi sir. Thanks for this great plugin!
    I just want to ask a question about the error in my form. I successfully installed your plugin into my wordpress theme and it went good but there seems to be a problem, when it submits the message the error was this message:

    Strict Standards: Assigning the return value of new by reference is deprecated in /mnt/Target01/334531/ on line 520

    You can check at this site:

    Thanks Eric

  236. March 6, 2009 @ 11:38 am #

    Eric, I just got it working, thanks! As a suggestion, how about an option to include in the subject (or just as the subject) something like "A message has been sent from your SMCF" or even let us choose the subject. I have a lot of email running through my inbox, this would help a great deal.

    Keep up the good work! Thanks for being so responsive.

  237. March 11, 2009 @ 10:16 pm #

    @Archi - that is strange - shouldn't have anything to do with SMCF. Looks like you may just need to turn off PHP error reporting.

    @rgregory - there's an option on the configuration page to set the Subject - is that what you mean?

  238. March 20, 2009 @ 9:43 am #

    Hey Eric, Thanks for the great work you have done here. I do have a question however. I installed SMCF on the website im currently working on successfully. But what I was looking to do with the form was to succesfully add an Image (something printable) and download link to the final success screen of SMCF. I played around a bit with the javascript success() function and tried to append the HTML that way but this one is over my head because i really dont know enough about javascript to effectively implement this. Is there any way you could help with this!

  239. March 20, 2009 @ 6:41 pm #

    Thanks for the nice plugin.
    Just wanted to know how to make the subject field a compulsory field just like email and message field.

  240. March 21, 2009 @ 10:41 am #

    I get 404 error page when I'm trying to access contact form...I've done all at well...

  241. March 24, 2009 @ 9:33 am #

    How do I turn off the error reporting?? Thanks.

  242. March 25, 2009 @ 1:27 pm #

    can somebody help me?

  243. March 25, 2009 @ 9:16 pm #

    @Verious Smith III - sure, send me an email with the specifics.

    @Ashish Jha - by compulsory, do you mean required? You'll just have to modify the HTML to add the * and the JS validation to make sure it is entered.

    @Sergiu - please email me with more information like your site URL and any other info you have.

    @Archi - error reporting for what? All of the errors in SMCF are suppressed.

  244. April 1, 2009 @ 6:59 pm #

    Does this currently support multiple forms? IE: If I have a request a quote feature on my site yet each quote request form is different?

  245. April 1, 2009 @ 7:26 pm #


    How can i add the class to a link. I realy dont know and would like to know. I added a link call Contact Us and i dont know hoy to add a class to this link.

  246. April 2, 2009 @ 2:43 pm #

    Thank you for this great plugin!

    I made a translation, but I'm not sure where to put translated .mo file, and what name should it have... help :)

  247. April 3, 2009 @ 2:35 am #

    Sorry ... can't find a js/smcf_javascript.php file, is that now smcf.js? However i couldn't find a "complete: function" in there.

    I want the box to auto-close after confirming that the message was sent, also i want to remove the "goodbye" message (avoid suggesting user has to leave site after sending a message ...)

    Would you mind pointing out the exact location and code-to-be replaced once more? thanks

  248. April 3, 2009 @ 2:49 pm #

    @mikeD - for something like that, I'd suggest a custom solution using SimpleModal. In that case it would be much easier to do as you want.

    @mg - not sure if I understand exactly what you are asking. In order for SMCF to work, it needs to attach to an element with a class of "smcf-link". That means, something like: <a href="/contact" class="smcf-link"/>Contact</a>

    @Victor - it just needs to go in the lang folder and should be named according to the following:
    - smcf-
    - ISO 639 language code (lowercase)
    - an underscore
    - ISO 3166-1 alpha-2 country code (uppercase)
    - .mo

    So for an Italian translation, the file name would be

    @Mike - yes, the file was renamed to smcf and the function is now success:. If you want it to auto-close after a short interval without the Goodbye message, you'll need to do the following:
    - Modify the code as described in a previous comment.
    - In the close: function callback, comment out the following line:

    jQuery('#smcf-container .smcf-title').html(smcf_messages.goodbye);
  249. April 6, 2009 @ 12:49 am #

    Very nice plugin. I have localized it for the Danes.

    In the "var smcf_messages" section, you have 'is', 'are' and 'required'. This is unfortunate, as not all languages conjugate verbs in the same way. For example, in Danish the required verb form is one single word, not "is required" or "are required". Of course, if 'is' and 'are' are only used with the word 'required', then it might be easy to fix this problem. If 'is' and
    'are' are used as auxiliaries with other main verb forms (but I did not notice that in the po file), then there might be a little more work.

    Anyway, thank you for a fine plugin and for considering this issue!

    The translation will soon be avaible via the following url:

    All the best!

  250. April 6, 2009 @ 7:33 pm #


    Great Plugin and I did get it working (didnt test email) using the sidebar. I am confused (as a new wordpress user) on how I can add the link without putting it in the sidebar? I really didn't understand what you mean when you refer to "contact link?"

    What's the best way, if I can to use your great plugin to simply add a link into my blogrole or something?

  251. April 7, 2009 @ 3:17 am #

    Eric, can't leave it but once again say thank you, also for your responsiveness to all our noob questions. You rock!

  252. April 14, 2009 @ 12:37 pm #

    Works like karma, thank you... one question: Can I send the message to various emails instead of one? I am not talking about carbon-copy option... For example, one of my jobs is webmaster of a model site, when someone wants to book her for a photo shooting I want also know it to reclame my $$$ percentage :) Thank you!

  253. April 14, 2009 @ 1:57 pm #

    Another thing... It seems not to be working with Hotmail accounts. Any one knows something about this? Thank you

  254. April 14, 2009 @ 2:05 pm #

    Hi Eric, Help me please.

    I love this plugin but i have a big problem. When i click on contact, the window contact goes under my flash viewer. Can you have a look in my website please ?

    Thank you.

  255. April 15, 2009 @ 12:05 pm #

    Nice plugin!

    @anto you may want to give the id a higher z-index and make sure your wmode in the flash is set to "transparent".

  256. April 15, 2009 @ 5:08 pm #

    I love the plugin, but whenever I use it in the contact field like specified it works whenever it comes up, but for some reason whenever I click for it to be sent it says its been sent but I never receive the e-mail whenever I do a test to myself or to another e-mail address that I try. I don't even receive the send a copy to me. Please let me know what I'm doing wrong.

  257. April 16, 2009 @ 4:01 pm #

    @ The Frosty @WPCult
    THANK YOU :-)

  258. April 22, 2009 @ 9:22 am #

    Hi Eric, Quick question: how would I disable jquery loading with this plugin? I found in my page source that jquery is loading twice - once for Lightbox in the header and again in the footer for SMCF - but Lightbox won't use the jquery that SMCF loads. And there is no longer an admin option to load/not load jquery. Thanks, Mark

  259. April 22, 2009 @ 7:21 pm #

    I am excited to use this plugin. I downloaded it to the wp-content/plugins directory but it does not appear in the admin panel so that I can activate it. Any advice? Thank you!

  260. April 22, 2009 @ 7:25 pm #

    Scratch that. I was trying to do it manually without success. I tried the plugin installer and it worked. Thanks.

  261. May 3, 2009 @ 9:59 am #

    Hello Eric,

    you must be tired of answering support questions! ;)

    thanks for this great plugin anyhow, it's the contact form i've been waiting for.

    however i can't figure out how to get it working on my website, and I usually manage myself, but i'm lost here. I tried it on 2 websites, but couldn't figure it out.

    i'm a wordpress+sidebar user, I have in my sidebar showing up fine, but when I click on "contact" nothing. I have the js loading fine in the document's head as far as I can tell, footer is in my template...

    i don't get it. I'm going to leave it as is, in case you check this out, for 5 days, after that I'm going to have to put a contact form, as I'm freelance and I still need people to... contact me :)

    thanks in advance if you get a chance to check it out, otherwise great plugin anyhow and good luck with what's next.

  262. May 3, 2009 @ 9:11 pm #

    Dose anybody know if you can use this wordpress comments?

  263. May 4, 2009 @ 8:51 am #

    @Georg - I thought about the is/are issue, but wasn't sure what kind of issues it would cause. The only use of it in SMCF is "x, x and x are required" or "x is required". Will that work? Thanks for your translation!

    @mike - there are 3 different ways to use SMCF. 1) edit your template file (could be any number of different files - just depends on where you want the link) and add a contact link, making sure to use class="smcf-link". 2) use the built-in smcf() function in one of your files to add the link. 3) if you use one of the WordPress functions to automatically generate your menus and it includes a contact item, SMCF should be able to add the necessary info as long as the Link Title matches in the SMCF settings.

    @Lobo Wolf - just edit the script to include you as one of the recipients, perhaps as a bcc. As for Hotmail, you mean it won't send to Hotmail accounts? Check the "spam" folder - there is nothing about the script that would prevent it from sending there.

    @anto - You need to edit your flash objects to use the wmode attribute. See the second comment here:

    @The Frosty @WPCult - thanks...the wmode attribute will fix it, like you mentioned.

    @Chip Simpson - sounds like a server issue. Do you get any errors back if you remove the @ from the @mail function in smcf_data.php?

    @songdogtech - that means that the other plugin is not using the correct methods to load jQuery ;) You can have them fix it or edit smcf.php and 1) comment out wp_enqueue_script("jquery");, 2) change the following 2 lines:

    wp_enqueue_script("simplemodal", get_option("siteurl") . SMCF_DIR . "/js/jquery.simplemodal.js", "jquery");
    wp_enqueue_script("smcf", get_option("siteurl") . SMCF_DIR . "/js/smcf.js", array("jquery", "simplemodal"));


    wp_enqueue_script("simplemodal", get_option("siteurl") . SMCF_DIR . "/js/jquery.simplemodal.js");
    wp_enqueue_script("smcf", get_option("siteurl") . SMCF_DIR . "/js/smcf.js", array("simplemodal"));

    @lynne - glad you got it working!

    @laurent - I don't get tired of answering questions...I'm just not always the best at keeping up ;) I just looked at your site and it does not appear to be loading SMCF at all. Can you please confirm that the plugin is installed and enabled? Nice site, btw - your work looks very interesting!

    @Ben - Can you expand? Not sure I understand your question.

  264. May 6, 2009 @ 5:35 am #

    Hi Eric Super Sweet form , was trying to use it on my blogger blog but cant seems to make it work " Contact Me "

    Maybe im doing it all around i tried to host all ur files and folders on my hosting account and link them to

    Help or a tip would be grateful even if i cant use this on blogger very nice job .

  265. May 9, 2009 @ 4:49 pm #

    Hi, nice for the nice plugin.

    I'm impressed there's no spanish translation so i made one :P.

    If you want to add it you can find it here:

  266. May 9, 2009 @ 7:46 pm #

    I get no errors at all. It says that the e-mail was sent successful with no issues.

  267. May 9, 2009 @ 8:58 pm #

    Hi Eric,

    I am looking to use your form on my blog. I am currently using contact form 7. however, my biggest problem with that is the lack of a confirmation page for when an email is sent successfully. it prints an an arcane url like:

    I will liek something clean like

    how does your handle this? does it output a separate url for each of the possible messages?
    Thanks ...

  268. May 13, 2009 @ 12:08 am #

    You could also check your web server logs to see if there is any information in there.

  269. May 17, 2009 @ 4:42 pm #

    Hello Eric,

    I have been trying to make this plugin work for me and have had no success. Would you mind taking a look at my site below and seeing if there is anything that looks wrong.

    Thanks, I appreciate the help.

  270. May 19, 2009 @ 4:24 am #

    Great plugin that I'll definitely earmark for future sites. Unfortunately I have a flash banner that obscures the form horribly.

    Thanks for sharing.

  271. May 21, 2009 @ 9:24 am #

    Thank you for the great job!

    There is my Russian translation for Simple Modal Contact Form v.1.2.3.

  272. May 22, 2009 @ 9:38 am #

    Thank you so much for this plugin. It's fantastic and easy to use, great for my clients!

  273. May 26, 2009 @ 2:22 am #

    Hi Eric

    Ajay from india
    Cant get this working, trying since two hours and read the comments also, i can't believe im this dumb

    This is what i did
    1) installed the plugin and activated it
    2) it tried to put the below code in lot of places, header.php, sidebar.php and where not. The paths are good, js and everything in plugins/smcf/ folder
    <a href="/contact" title="Contact" rel="nofollow">Contact</a>

    Really frustrated please help

  274. May 29, 2009 @ 11:36 pm #

    I'm getting the "Unfortunately, a server issue prevented delivery of your message" error message when I hit the "send" button.

    Added the near the bottom of my footer, and that got the visuals to pop up ... now I'm trying to figure out why it won't send. You say that PHP mail() is a requirement. Is this loaded by default with WordPress?

    This has GOT to be the coolest form out there.
    Thanks for all your work.

  275. May 29, 2009 @ 11:48 pm #

    Got it working Eric!
    Awesome job!

  276. June 2, 2009 @ 4:46 pm #

    Hello Eric, thanks for a great plugin! Is it possible to insert for in sidebar instaed of just having a link and then form popping up?


  277. June 6, 2009 @ 1:21 pm #

    How would one tweak this to allow the user to select a recipient, out of a list of several?

  278. June 8, 2009 @ 7:48 am #

    Great plugin, got it working no problem, many thanks.

  279. June 11, 2009 @ 4:16 am #

    I'm getting the "server issue" error just when trying to send from a Hotmail, Gmail, Msn address. With other domain email addresses, there's no problem. Any tip? TIA!


  280. July 31, 2009 @ 8:06 pm #

    @Jose & @Nikolaj - thanks for the translations!

    @Victor - have you tried the demo? The messages are all "inline".

    @Marc - that can easily be solved by setting the wmode property on the embedding code.

    @Ajay - if the link does not have the smcf-link class, it will not work.

    @Elena - currently a "pop-up" is the only option. I will be adding an option to embed the form in a page in a future release.

    @trumpetmic - you'd have to edit the files to include the drop down and then do some more editing them to handle the selected recipient.

    @Pani - sounds like a server or SMTP configuration issue - not anything that has to do with SMCF itself.

Leave a Comment

Sorry, comments are closed. You can contact me directly, if you like.

Eric Martin