Results 1 to 7 of 7

Thread: [MOD] reCaptcha on Contact Form

  1. #1
    Thread Starter
    Member patrickjose's Avatar
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    83
    Thanks
    1
    Thanked 25 Times in 15 Posts

    Lightbulb [MOD] reCaptcha on Contact Form

    Hello AppThemes Community!

    This is my first contribution and I know that there is a solution for it here from barukar but I wanted to reuse the code of ClassiPress to make it more efficient.

    And I noticed that lot of users had some troubles styling the reCaptcha.

    This one uses a custom theme. So, there are no buttons for help or audio just the button to get a new captcha.

    I made it using the CP 3.2.1 and maybe it's compatible with older versions.

    If you are using child theme it will work. As this is a modification on a core file, all you going to do is replace one file.

    But make sure to backup your file first!

    Below you can see how it will look like:



    That icon inside the text field, where the user will gonna fill with the answer is from original theme: arrow-right.png

    Possible customizations:

    If you want to replace with your custom button, just change the line 88: /images/arrow-right.png - assuming that /images/ is http://www.yoursite.com/wp-content/t...ipress/images/

    If you want to change the alignment of the Send Inquiry button just change the line 101: change <p align="right"> to <p align="left"> or <p align="center">

    If the user press the Send Inquiry button without filling any field it will look like this:





    If the user press the Send Inquiry button with a wrong captcha code it will look like this:





    If the user press the Send Inquiry button filling all fields and with a working captcha it will look like this:





    All the output texts are from the original ClassiPress (no strings attached), so I don't thing you'll have to add them to your .PO file.

    Make sure to enable reCaptcha in your administration and fill with your private and public keys.

    If you change the theme in the administration it won't affect the reCaptcha in the Contact Form. It will change the reCaptcha from registration page.

    If you have any questions or suggestions, please, feel free to share.

    Best Regards.
    Attached Files Attached Files

  2. The Following 2 Users Say Thank You to patrickjose For This Useful Post:

    cgatherings (March 11th, 2013), rubencio (May 11th, 2013)

  3. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,755 Times in 1,441 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  4. #3
    Thread Starter
    Member patrickjose's Avatar
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    83
    Thanks
    1
    Thanked 25 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. The Following User Says Thank You to patrickjose For This Useful Post:

    samcy (March 6th, 2013)

  6. #4
    Amateur bababombe's Avatar
    Join Date
    Dec 2011
    Location
    Spain
    Posts
    13
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #5
    Thread Starter
    Member patrickjose's Avatar
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    83
    Thanks
    1
    Thanked 25 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    Senior Member cgatherings's Avatar
    Join Date
    Jan 2012
    Location
    Washington
    Posts
    208
    Thanks
    30
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #7
    carlitospr's Avatar
    Join Date
    Jul 2013
    Location
    Puerto Rico
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TUTORIAL] reCaptcha on the contact form of single-page ads.
    By barukar in forum ClassiPress General Discussion
    Replies: 103
    Last Post: September 15th, 2015, 08:22 AM
  2. Using recaptcha on Job Roller contact form
    By acsepic in forum Report JobRoller Bugs
    Replies: 10
    Last Post: February 6th, 2013, 03:06 PM
  3. Original Recaptcha on Form Contact
    By precocerto in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: August 12th, 2011, 09:59 AM
  4. How to add the reCaptcha also to the contact form?
    By jerome281 in forum JobRoller General Discussion
    Replies: 1
    Last Post: December 29th, 2010, 12:10 AM