-
AuthorPosts
-
Henning Friend
Henning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
July 23, 2014 at 1:29 pm #199916Hi,
I have added the Captcha – ReCaptcha on the Contact form of Ja Community Plus, however it’s not visible. In the Contact Manager Options I have set Captcha – ReCaptcha on ‘Allow Captcha on Contact to’. Under the Captcha – ReCaptcha plugin I have added the Public and Private Keys of the account registered on Google’s ReCaptcha.
Please advise, I’ve been breaking my head on this for hours! Any assistance or advice would greatly be appreciated.
The Joomla version is 2.5.23
Regards,
HenningSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 25, 2014 at 2:13 am #543404Hi Henning,
Could you PM me URL and admin login info of your site? and also the url of that contact page, I will investigate further.
Henning FriendHenning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
July 28, 2014 at 1:13 pm #543647Hi Saguaros,
Any progress or updates on the Captcha – ReCaptcha.
Kind regards,
HenningSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 29, 2014 at 10:33 am #543780Hi Henning,
In contact page of your site, you’re assigning a single article called Contact to display in contact page, not the single contact page as our demo site.
Please try to change the menu item type of contact page from Single article to Single contact type, the captcha should show then.
Remember to clean JAT3 cache after changing.
Henning FriendHenning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
July 30, 2014 at 9:02 am #543891Hi Saguaros,
This menu item type is a ‘Single Contact’. The contact page to which you are referring to only consists of a map and contact details. The Contact form that I’m having problems with is located under the menu ‘Xpertise’, and the name of this menu item is ‘Enquiry Form’ (This is the single contact menu item type).
Regards,
HenningHenning FriendHenning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
August 1, 2014 at 10:43 am #544154Hi Saguaros,
We’re you able to locate the ‘Enquiry Form’ single contact type menu item? Let me know if there is anything I can do from my side. Thanks again for your help.
Regards,
HenningSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 4, 2014 at 8:26 am #544397Hi Henning,
The configuration in your site seem to be correct, can you try to access file/folder in your site and apply this fix: https://www.ostraining.com/blog/joomla/broken-captcha/ ?
Please take a backup of your site first.
And let me know how it goes.
Henning FriendHenning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
August 5, 2014 at 10:39 am #544634Hi Saguaros,
I made no changes to the ‘recaptcha.php’ file located under plugins/captcha/recaptcha/. The file was already fixed.
Line 24 to 26:
const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
const RECAPTCHA_VERIFY_SERVER = "www.google.com";Line 118:
$response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
Cleared the cache and refreshed the page but the captcha is still not showing. Any other suggestions?
Regards,
HenningHenning FriendHenning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
August 11, 2014 at 10:49 am #545455Hi Saguaros,
Any progress? Please read my previous reply. Thanks again.
Regards,
HenningHenning FriendHenning
- Join date:
- February 2012
- Posts:
- 69
- Downloads:
- 45
- Uploads:
- 9
- Thanks:
- 40
- Thanked:
- 9 times in 1 posts
August 12, 2014 at 3:20 pm #545674Hi,
Does anybody have any other suggestions? The captcha is still not showing. My client is getting rather impatient, please any help would be appreciated.
Regards,
HenningNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 13, 2014 at 6:38 am #545787Hi Henning,
I have fixed the problem directly on your site. Below are steps I did:
+ Open templates/ja_community_plus/html/com_contact/contact/default_form.php file
Change
defined('_JEXEC') or die;
To
defined('_JEXEC') or die;
$captchatext = "";
JForm::addFormPath(JPATH_SITE."/components/com_users/models/forms");
$form = JForm::getInstance('com_users.registration',"registration", array('control' => 'jform'), false, false);
$captcha = $form->getField("captcha");
$captchatext = $captcha->input;+ Add captcha code into field form
Change
<div>
<button class="button validate" type="submit"><?php echo JText::_('SEND'); ?></button>
</div>To
<?php if(!empty($captchatext)) { ?>
<div class="clear">
<label title="" class="required" id="jform_captcha-lbl"><?php echo JText::_( 'COM_CONTACT_CAPTCHA_LABEL'); ?>:</label>
<em> (*)</em>
</div>
<?php echo $captchatext; ?></dd>
<?php } ?>
<div>
<button class="button validate" type="submit"><?php echo JText::_('SEND'); ?></button>
</div>Let me know if it helps
Regards
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 12 replies, has 3 voices, and was last updated by Henning 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum