Depends of the plugin. If you are using Google captcha, you might want to start here:
https://developers.google.com/recaptcha ... tomization
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The Basic Captcha uses GD Library to form the algorithm from catalog/controller/extension/captcha/basic.php file. This is where you'd need to make the modifications to suit your needs.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
download a free and good looking true type font and rename it to a random complex name for being nearly impossible to guess.
put the font in image folder.
go to the catalog/controller/extension/captcha and open basic.php for editing.
comment out this line:
Code: Select all
imagestring($image, 10, intval(($width - (strlen($this->session->data['captcha']) * 9)) / 2), intval(($height - 15) / 2), $this->session->data['captcha'], $black);
Code: Select all
$font = './image/YourComplexFontName.ttf';
//you can use this as a guide
imagettftext($finalimage,fontsize,angle,lowerleftX,lowerleftY,fontcolor,fontpath,captchatext);
imagettftext($image, 20, 0, intval(($width - (strlen($this->session->data['captcha']) * 9)) / 2) - 20, 35 - intval(($height - 15) / 2), $black, $font , $this->session->data['captcha']);
i also recommend to change the image type to PNG for clearer result. it means you need to change header type in next lines to:
Code: Select all
header('Content-type: image/png');
imagepng($image);
repeat the above procedure for the admin captcha through this address admin/controller/common/base.php.
now the captcha is more secure and looks more professional!(i guess


I have a question about you. how can i control characters that show in captcha and i need to write so that users can pass CAPTCHA !!!
Example use for me is someone like this to tell the script what symbols to use:
symbols_using_captcha = a-z, A-Z, 0-9;
i do not know how to encode it but i see it can do it

and the second question is about this line in your code:
// imagettftext ($ finalimage, FONTSIZE, angle, lowerleftX, lowerleftY, FONTCOLOR, FontPath, captchatext)
how to use these settings? and can you give an example of one or two or all settings

Thanks in further and best regards for you and poeple like you in this system

More secure, no, more professional, hardly.now the captcha is more secure and looks more professional!(i guess)
I don't as the basic concept of a captcha is that it is supposed to be difficult to read, that is the whole point.I recommend you insert into the default install base in opencart for all versions. I use the font ARIAL.ttf is great for users and you can see normal text in captcha.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
give some example for this line here //imagettftext($finalimage,fontsize,angle,lowerleftX,lowerleftY,fontcolor,fontpath,captchatext)
all point i know what is
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: No registered users and 32 guests