Can i not just add whats needed into registration.php?ADD Creative wrote: ↑Sat Mar 04, 2023 9:20 pmThat's why. CAPTCHA for the registration page was only added in OpenCart 2.1.x.
No, shouldn't need a database change.
Great, do you know which dir the view front end is for register please? ive found register.twig file in a 3.0.8.0 version is this wrong?
The code in 3.0.8.0 will be totally different to your version. You would be better coping from another page, such as the contact. However, I would test that actually works first, being such an old version.
https://github.com/opencart/opencart/bl ... #L133-L142
https://github.com/opencart/opencart/bl ... #L149-L155
https://github.com/opencart/opencart/bl ... #L223-L231
<?php echo $captcha; ?>
the other parts i added was in register.php
// Captcha
if ($this->config->get('captcha_' . $this->config->get('config_captcha') . '_status') && in_array('register', (array)$this->config->get('config_captcha_page'))) {
$data['captcha'] = $this->load->controller('extension/captcha/' . $this->config->get('config_captcha'), $this->error);
} else {
$data['captcha'] = '';
}
and
// Captcha
if ($this->config->get('captcha_' . $this->config->get('config_captcha') . '_status') && in_array('register', (array)$this->config->get('config_captcha_page'))) {
$captcha = $this->load->controller('extension/captcha/' . $this->config->get('config_captcha') . '/validate');
if ($captcha) {
$this->error['captcha'] = $captcha;
}
}
also added the folder and the extension/captcha files included
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Won't work unless you make changes to the settings page as well.gsc1ugs wrote: ↑Sun Mar 05, 2023 8:22 pmI found a 2.2.0.0 version with correct format .tpl and added this line but still no captcha appearing?
<?php echo $captcha; ?>
the other parts i added was in register.php
// Captcha
if ($this->config->get('captcha_' . $this->config->get('config_captcha') . '_status') && in_array('register', (array)$this->config->get('config_captcha_page'))) {
$data['captcha'] = $this->load->controller('extension/captcha/' . $this->config->get('config_captcha'), $this->error);
} else {
$data['captcha'] = '';
}
and
// Captcha
if ($this->config->get('captcha_' . $this->config->get('config_captcha') . '_status') && in_array('register', (array)$this->config->get('config_captcha_page'))) {
$captcha = $this->load->controller('extension/captcha/' . $this->config->get('config_captcha') . '/validate');
if ($captcha) {
$this->error['captcha'] = $captcha;
}
}
also added the folder and the extension/captcha files included
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I have no directory called install to add the missing captcha extension, its still not install and in the extension installer trying to upload the file upload.zip says invalid format
Users browsing this forum: nonnedelectari and 401 guests