Re: Captcha using TTF & GD
I finally got Captcha to work on all of my sites. I found the problem.
I had an empty enter, new line or space at the end of my english.php located in includes/languages/YOUR_TEMPLATE/english.php
This must have happened when I edited some lines for the footer customization. Hard to see with the editor. I just hit delete a few times at the end of the file and made sure no extra space or anything remains. If you have the same problem that there is no captcha, just the "Enable this picture" text, check out your english.php in your template override folder. Last thing in the file has to be just ?>
Don't know why this affected Captcha only but not the other customizations in the english file. All other customized text in the file worked just fine.
Re: Captcha using TTF & GD
Quote:
Originally Posted by
mydanilo
I finally got Captcha to work on all of my sites. I found the problem.
I had an empty enter, new line or space at the end of my english.php located in includes/languages/YOUR_TEMPLATE/english.php
Interesting... I have spaces at the end of my english file and Captcha works! May be the editor is leaving something behind... I use Notepad++ for editing.
I did come across something the other day that may shed some light for some. I added some rewrites to my .htaccess file to stop hotlinking. Without thinking I added png to the list. After that, no captcha image would show. Removed png and it was back... I use png images for my layout and captcha so that shouldn't be a problem for me.
mydanilo -- Glad to hear you got yours worked out.
Re: Captcha using TTF & GD
Yea, I am glad too. :yes:
I use Notepad ++ too. I had issues before when editing files that there were some additional things left in it that I did not see, but they caused problems. Not sure how to prevent this....
I already set it to not do word wrap.
I saw the problem when I did a winmerge and compared with an out of the box english.php. Winmerge showed me that extra thing just before ?>.
Re: Captcha using TTF & GD
if i wanted captcha just on the contact us page... and i don't want to merge the captcha files with my current files... can i just upload the contact us files and NOT upload the other files?
should i also delete reference to the other files from the sql patch?
thanks.
Re: Captcha using TTF & GD
Quote:
Originally Posted by
gsdcypher
if i wanted captcha just on the contact us page... and i don't want to merge the captcha files with my current files... can i just upload the contact us files and NOT upload the other files?
should i also delete reference to the other files from the sql patch?
thanks.
To the best of my understanding you can certainly limit the captch to the pages you want and ignore the rest, and you can leave the SQL untouched, so don't worry about having to edit it; but you will have to edit/replace the appropriate files for the pages where you do want to implement the captcha.
Set up a test copy of your site if you have the capability, and try it out there first.
:cool:
Re: Captcha using TTF & GD
Yes, you can just add captcha for your contact us page. that what i did on my site , I didn't even install the SQL patch .. it will work without the patch , but limit you to default number of chars on captcha , i think is 4 character by default.
Re: Captcha using TTF & GD
If you don't do the sql to setup the defaults, you can edit the class file and replace the variable defaults with what you want.
You also need to remove the IF statement in the tpl_ and Header pages for it to work.
if(is_object($captcha){
and the trailing }
Here's another tidbit... if you don't want Captcha for login customers, this is what I added...
In the header and tpl_ page replace the IF statement with this..
if(is_object($captcha) && (!$_SESSION['customer_id'])) {
If they are login, I don't drive them nuts trying to read a captcha image..
Re: Captcha using TTF & GD
thanks everyone...
i uploaded just the basic files and the contact_us files.
i installed the sql (unedited).
i have the captcha only on the contact us page.
i can edit the parameters via the admin.
and everything "seems" to be working.
Thanks!
Re: Captcha using TTF & GD
Quote:
Originally Posted by
davewest
if(is_object($captcha) && (!$_SESSION['customer_id'])) {
Yes, i did that too, should probably be better default.
Did anyone manage to code a snapshot if someone fails the matching code that they don't have to rewrite the whole form.
I want them just to retry the code and not redo the whole form again.
Thanks,
Jeroen
Re: Captcha using TTF & GD
Hello,
I wanted to add this option to my return authorization form. I have search for link with instructions..but couldn't find any... does anyone know how to get this to work with return authorization form? I tired but to no avail :(.
thanks nicole