Keyword

item form recaptcha

  • Anthony
  • Anthony's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago #115168 by Anthony
item form recaptcha was created by Anthony
Hi,
how can i use recapcha to k2 itemform.php?

As always, your assistance is appreciated!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #115169 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: item form recaptcha

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Anthony
  • Anthony's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago #115170 by Anthony
Replied by Anthony on topic Re: item form recaptcha
Thanks Krikor,

But I try what you recommend the link and steps , still unable to successfully
and i think perhaps the following syntax reasons,so itemform.php can not be work:
array('namespace' => 'com_users.registration')
I do not know what to do... :(



<?php
if (!($this->K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key'))) {
$configured_captcha = JFactory::getApplication()->getParams()->get('captcha', JFactory::getConfig()->get('captcha'));
if (!empty($configured_captcha)) {
$jcaptcha = JCaptcha::getInstance($configured_captcha, array('namespace' => 'com_users.registration'));
if (!is_null($jcaptcha)) {
JRequest::setVar('session_secret', uniqid()); // Required by playthru captcha plugin
$ccode = $jcaptcha->display("jcaptcha", "jcaptcha", "required");
echo '<tr>' . "\n";
echo '<td class="key">' . JText::_('TPL_BOS_PLAYTHRU_CAPTCHA_LABEL') . "</td>\n";
echo "<td>" . $ccode . "</td>\n";
echo "<td> * </td>\n";
echo '</tr>' . "\n";
}
}
}
?>

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum