Scaleable Contact Form Plugin

A Plugin for ..

.. a very customizable contact form on your wordpress blog.

Features:

  • Uses Captcha but no Akismet.
  • Required, non required Fields can be configured.
  • Five different Field Types: Textfield, Textarea, Select, Radios and Checkboxes
  • This plugin uses the wp_mail method so you can easily use an external smtp by installing a plugin like “WP-Mail-SMTP“.
  • You can choose either a regular send formular or AJAX driven
  • Optional confirmation mail

Usage:

Either put [ scaleable-contact-form ] (WITHOUT SPACES AFTER OPENING BRACE AND BEFORE CLOSING BRACE!) somewhere in a post or site or call “scf_print_contact_form()” directly from a custom page.

Usage for AJAX Form

Either put [ scaleable-contact-form-ajax ] (again: no spaces) somewhere in a post or site or call echo scf_print_contact_form_ajax() directly from a template.

Configuration

In the WP Admin interface, you’ll find a submenu entry “S.C.Form” under “Settings”. There you can add new fields, edit labels, error messages, behavior and so on..

Usage Example:

This is how you insert the form in a page or post entry:

This is how it will look like in your published page or post entry:

See it in action: http://blog.foaa.de/about/

Vote if you like it: http://wordpress.org/extend/plugins/scaleable-contact-form/

Download:

scaleable-contact-form-0.8.1

History:

  • 2010-10-26: Urgent fix: removed obsolete ini_set of display_errors
  • 2010-10-26:
    • Adjusting PHP code to be compatible with php 6.
    • Message is now optional.
    • Added new error, which will be displayed if the user hit’s (accidentally? spam?) reload (could not use redirect due to session_start for the captcha..).
    • New optional customizable confirmation mail to user.
    • Fixed non removal of the used captcha code.
  • 2010-10-13: Added screenshots explaining “howto implement it in your blog”
  • 2010-01-24: Fix for 2.9.1
  • 2009-09-24: The damn closing div again – fixed
  • 2009-09-23: Replaced bloginfo with get_bloginfo to supress the site title print out
  • 2009-09-23: Removed some fixes related to captcha to get it work again
  • 2009-09-16: Finally included Jonathan Rogers Patch and some of my own
  • 2009-07-08: Fix for PHP prior to 5 (try-catch-block removed)

FAQ

Call to a member function validateKey() on a non-object

Install the KCaptcha plugin or disable captcha usage!

64 Comments

  1. Gregor says:

    Hallo,

    today i downloaded the plugin.
    during aktivation an error is coming up:

    Parse error: parse error, unexpected ‘{‘ in /var/www/virtual/www.zumscheissnreichts.at/wp-content/plugins/scaleable-contact-form/includes.php on line 455

    Can you help me?
    kr
    Gregor

  2. Rachael says:

    I just installed this form… on my wordpress admin pages there is now a bar below the content box that says “custom fields.” Under “name” I wrote questions I wanted users to answer. Under “value” I wrote “answer here” as a place holder. I did not see any other options for settings that needed to be established. When I “published” no form appeared on that page.

    I assume there is another place I need to go to set up how my form will look, but I am very new to this and absolutely clueless about where and how I would go about doing that.

    Please help!

  3. busse says:

    hi,

    i test it on my web and after submit it broke design. how to make so that it wont broke outlook?

  4. Paul says:

    Love this but like busse said after submitting it broke my theme. Also after submitting when using ajax. I get no success message. The page just is left blank???

    Any help would be great.

    Thanks!

  5. Paul says:

    OK I figured out why it brakes the theme. After the success message you put instead of . But I don’t think any of the emails are being sent???

  6. Paul says:

    that should have said a div tag instead of an ending /div tag.

  7. Paul says:

    Nevermind the emails are being sent it just took about an hour for them to show up. I believe it is my host that is the problem there. I still can’t get the ajax to work properly though.

  8. Hi,

    I just encountered exactly the same problem as Gregor (in his 4 May comment up here), with exactly same message:

    “[…] /www/wp-content/plugins/scaleable-contact-form/includes.php on line 455″

    Did you ever find out what it was?

    Thanks a million in advance. For a great plugin, too (it installed nicely on a different site).

  9. I like the form and its simplicity but I need two forms. One for sight admin and one for actual questions, etc. Is their a way to extend this app to build two forms with two send to e-mail addresses?

  10. Nicole says:

    I found a small error in the includes.php file. You have a tag where there should be a on line 227. It broke my layout until I went in and fixed it. :)

  11. Nicole says:

    ugh, the comments ate my post. You have an opening div tag where there should be a closing div tag on line 227, that’s what’s breaking people’s layouts.

  12. uk says:

    Ok, should work now, i’ve uploaded v0.4, which should fix a couple of things, among the “div”-problem ..

  13. andreeib says:

    Great plugin, but v0.3 from WordPress.org has some errors and v.04 from site is an empty archive.

  14. uk says:

    Ok, I’ve updated the and re-uploaded the archive.. should now work. 0.4 should be in WordPress by now, too.

  15. Chrissly says:

    Hi, I tried to include [scaleable contact form] in my WordPress-Page (Atahualpa). Without checking the Captcha function the form works perfect. But when I try to activate the plugin’s captcha
    1. no captcha appears on the form, and
    2. after trying to fill in the form and clicking “send” the following message appears:
    *Fatal error*: Call to a member function validateKey() on a non-object in */home/.sites/505/site386/web/wp-content/plugins/scaleable-contact-form/includes.php* on line *180*

    (By the way, after installing “Simple Captcha”, this plugin required to activate captcha on the scaleable contact form does not appear anywhere in my WordPress-Admin-Window (for administration or activation), even if your S.C. plugin tells me that SimpleCaptcha has been installed, …

    Can somebody tell me, what’s the problem here and/or what the error message means???

  16. uk says:

    Try again with v0.5 (just up in SVN and here as zip), should work.. Thanks for reporting

  17. ulan says:

    Hi, I think in

    Version 0.6
    [ scaleable-contact-form ]

    the

    “” is missing !!

    [ scaleable-contact-form-ayax ] is OK !

    -k

  18. ulan says:

    oh, no again

    Version 0.6
    [ scaleable-contact-form ]
    [div class="scf-form-success"]… is not closed

    the

    [/div] is missing !!

    [ scaleable-contact-form-ayax ] is OK !

    -k

  19. uk says:

    Ah, damn it, not again! Ok, got it fixed .. 0.7 is up

  20. SOMA says:

    How can i make the default fields NOT required? I don’t know why you made them locked…i don’t need the big text box…

  21. I have the same problem like Gregor had.

    /home1/floriang/public_html/seebaertv/wp-content/plugins/scaleable-contact-form/includes.php on line 181

    How to fix it?
    ;) Flo

  22. uk says:

    @Flo:
    Could you provide a more details ? Line 181 is related to the captacha-generation. Maybe you dont have KCAPTCHA installed ?

    @SOMA:
    Right now, this is not supported. I will include this in the next release, but right now no time and dont want to make hasty untestet updates (again ;) ). Comment line 37 in includes.php (prefix with //) to get rid of the text for now.

  23. I had the same problem.

    Fatal error: Call to a member function validateKey() on a non-object in /my_site/wp-content/plugins/scaleable-contact-form/includes.php on line 181

    For everyone who has this problem in the future. Look in your plugins directory for the ‘simple-captcha’ folder. You have inside it 1 folder (simpleCAPTCHA) and 1 file (readme.txt). Move the folder ‘simpleCAPTCHA’ inside ‘plugins’ folder and then delete the empty ‘simple-captcha’ folder. Then activate ‘Simple CAPTCHA’ from your admin. Voila :) You will have a working Scaleable Contact Form!

  24. Brian Smith says:

    I installed the form, styled it, and set the setting to the correct email address… looks great. However when I test it, the test emails never go through. Is there something I am missing?

  25. Rob says:

    I’m curious…can this be added to the sidebar via the Text widget?

    Thanks in advance! So far, this looks like a great plugin.

  26. uk says:

    @Brian: Hard to tell ;) Could you provide more info ? Maybe your Hosting Provider disallows you to send from your E-Mail, try “Mail From”-Plugin from Andrew Hamilton.

  27. uk says:

    @Rob: Well, you could add it in a template or sidebar.php, using the PHP-Code directly: spi_print_pommo_ajax_form()

  28. tina says:

    Hi

    It was working perfectly until I update it to the new version!! Now the e-mails are not sended!!

    What’s wrong with the new version??

    Tina

  29. Chris says:

    Hi,

    I’ve installed 0.7, using the AJAX version in the footer include of my WP theme (see stylewired.com/portfolio) and got it working in so far as it sends me the emails.

    However after clicking the submit button on the form, the AJAX animation works changing the displayed content to “Loading”. Then “Loading” dissappears using the same AJAX animation and then nothing else happens.

    The success message does not appear. Any ideas? Please feel free to test live.

    Thanks,

    Chris

  30. uk says:

    @Chris: Hmm, found a debug message which might have broken it. But it should have affected WP 2.8.x too. Try new release 0.7.1, either download from here or wait for update in WP plugins repository.

  31. uk says:

    @tina: Could you provide more info? I’ve just updated to 2.9.1 and sent myself some mails without any problems..

  32. gOk says:

    Hey, there’s a bug when shortcode () is disabled on PHP. As it’s gonna be deprecated and not supported by PHP6, it’s better to fix it. Ty.

  33. Is there any way that I can set the form to email more than one email address with the information completed in the contact form?

    Thanks

  34. Your comment sounds so much like something I’d say that I’m smiling bigger than usual. Welcome to the conversation.

  35. Alta says:

    Hello, Did anyone figure this out:

    Fatal error: Call to a member function validateKey() on a non-object in /home/content/80/5826680/html/wp-content/plugins/scaleable-contact-form/includes.php on line 181

  36. Marry says:

    Great plugin, thanks! But it is bad that I can’t to define different adressers to different themes of message.

  37. Great plugin, I like it, I have download it for my blog!

  38. Alex says:

    Useful plugin, thanks !
    Is there a way to send the message to 2 emails instead of just 1 ? Even if it’s hardcoded, i’m interested !

    Thanks

  39. uk says:

    Try to put your recipients separated by “,” into to “Recipient E-Mail” field (eg “you@domain.tld,somebody@domain.tld”). If this does not work out, contact me again.

  40. I am getting the following error;

    Fatal error: Call to a member function validateKey() on a non-object in /home/content/59/5020759/html/wp-content/plugins/scaleable-contact-form/includes.php on line 181

    Please advise how I can fix this.

    Thank you.

  41. uk says:

    @Jennifer: This error occurs in a section of the code which enables the captcha. Did you install the yaCAPTCHA plugin ? Otherwise, you have to disable captcha..

  42. Omar says:

    Hi! Thanx for this great plugin!
    I got a little problem I’m suing safari (last version on osx)
    I can see that the textarea of request message is dragable…..

    Please can you fix it?

    Thanx

    This is what I mean: http://img38.imageshack.us/img38/4346/erroryt.jpg

  43. uk says:

    @Omar: That’s a safari build in. I think you can disable it via CSS, as described here. Good luck.

  44. Omar says:

    It’s ok I’ll have a look!
    thank you very much for your tips and your great plugin!

  45. Lindsey says:

    Great job and thank you. I works great!

  46. epsilon says:

    thank you ….
    دمت گرم ( damet garm)
    persian lang

  47. epsilon says:

    thank you so much
    damet garm دمت گرم
    بسیار خوب بود
    persian lang = your breath warm for always and very good

  48. Rushabh says:

    Hi UK,

    Please check or make it compatible for WordPress 3.0.1.

    Looking for you reply.

  49. CB says:

    Hi,

    I’ve installed it but how do I actually use it on my site? It doesn’t come up as a widget, and there is no button to insert it into a page… I’m not sure how I can do that? Any help much appreciated!

  50. uk says:

    @CB:

    I’ve added some screenshots here on how to add the formular to your blog above.

    What you have to to is add another page / post entry and put the following word / construct into it:
    [scaleable-contact-form]
    Which will then be magically transformed into the actual contact formular by wordpress.

  51. uk says:

    @Rushabh: Hmm, it works on this Blog, which is 3.0.1. Can you enlarge on the error messages you receive, if any – or whatelse does happen / not happens.

  52. Auke says:

    Hi there,

    Great form you made here for WordPress… lovin it!
    Run in to a problem…. whenever the form is filled in en send for the first time it always comes back as if there was a refresch done.. witch was not.
    We can resend it but it does not send… unless there is a slight change made in the name or other field.

    Please can you help me out here?

    Kind regards

    Auke

  53. rverrecchia says:

    Hi UK,

    it seems to doesn’t work with WordPress 3.0.3.

    No error message, only nothing or “you reload this page? etc…”.

  54. uk says:

    @rverrecchia:
    Do you use the AJAX mode or plain an simple? I’ve updated to 3.0.3 and it seems to work just fine (http://blog.foaa.de/about/)

  55. Peter says:

    Hello,
    i installed you Plugin and it works fine, however mails will send from the adress wordpress@lehrgang…

    Can i change this adress ? If yes, i would be happy for a hint.

    Thnaks
    Peter

  56. uk says:

    Sure. The plugin uses the wp_mail function (default wordpress mail function). So you only need to change your email in wp-admin: Settings -> General. If you want to use an external SMTP server (eg gmail or such), you can install a plugin like WP-Mail-SMTP.

  57. saffron says:

    hi ulrich,
    great plugin, thanks for the work :)

    I have installed it (using wordpress 3.1) and use a simple form (just name, email, message). However it doesnt allow any whitespaces to be typed in – they just get ignored (likethis).

    Any ideas?
    thanks

  58. mike says:

    how can I edit the title when using a widget?
    Its showing up only as a gray bar and I cannot insert a title in the widget.

    great plugin otherwise, works without any hassle

  59. rakib says:

    hi ..today i applied this plug…after active i tested ..but i am not received any message..

  60. John says:

    Nice plugin,but the ajax form dosen’t seem to working in wordpress 3.1.3. when you submit the form dosen’t show success message. Just goes blank.

  61. John says:

    I was able to get the ajax form to work by installing WP super cache.

    Thanks a bunch!

    I’m using WP v3.1.3

  62. meg says:

    I’ve been very happy with this plug in for the last couple months. Then all of a sudden I stopped getting form submissions from my users although they told me they filled it out and got a success message when finished. Today I installed your latest update and it’s working again. Any chance those past forms that I missed are stored somewhere?! I would love to recover them.

    Thanks!
    Meg
    http://pcrcollective.org/?page_id=280

  63. Peter says:

    Although it needed some custimization and I did not yet try the captcha, this is a great plugin, thanks!

  64. Rick says:

    I installed this plugin but it doesn’t send anywhere. I developed this website for a customer of ours and I don’t know how to read code to see how this contact form authenticates. The customer says that the DNS record needs to resolve………..DNS has to match IP???? I don’t know how to answer his questions.

    Now I can’t install any other plugin.

Leave a Reply

CAPTCHA image