milkycode / joomla_recaptcha_j15 Goto Github PK
View Code? Open in Web Editor NEWGoogle recaptcha plugin for Joomla 1.5
License: GNU General Public License v3.0
Google recaptcha plugin for Joomla 1.5
License: GNU General Public License v3.0
Hello,
Would it be possible to add the ability to protect the user registration form as well as contact form in Joomla 1.5?
Thanks
Hello!
I'm confused to use recaptcha in the user registration form.
In file:
/components/com_user/views/register/tmpl/default.php
pasted the code:
In file:
/components/com_user/controller.php
Edited function register_save()
if (ReCaptcha::get('submit')) { // returns false
if (!ReCaptcha::get('success')) {
JError::raiseWarning('', 'Неверный код проверки!'); //если не верно выводим сообщение
$this->register();
return false;
}else{
if ( !$user->save() )
{
JError::raiseWarning('', JText::_( $user->getError()));
$this->register();
return false;
}
// Send registration confirmation mail
$password = JRequest::getString('password', '', 'post', JREQUEST_ALLOWRAW);
$password = preg_replace('/[\x00-\x1F\x7F]/', '', $password); //Disallow control chars in the email
UserController::_sendMail($user, $password);
// Everything went fine, set relevant message depending upon user activation state and display message
if ( $useractivation == 1 ) {
$message = JText::_( 'REG_COMPLETE_ACTIVATE' );
} else {
$message = JText::_( 'REG_COMPLETE' );
}
$this->setRedirect('index.php', $message);
}
}else{
print_r(ReCaptcha::get('submit'));
JError::raiseWarning('', 'Не удалось проверить капчу!'); //если не верно выводим сообщение
$this->register();
return false;
}
The condition does not work:
if (ReCaptcha::get('submit')) // returns false
What is my mistake?
Hi,
I have installed it in my site.
I came to these two issues.
The plugin doesn't work anymore (as of october 2019). It seems like the Google URL or the API changed.
There are a lot of old sites that need this plugin to avoid spamming. Hope the developer could check it soon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.