I cant find this text in CAPTCHA, need help!

Started by LaBamba, February 17, 2006, 10:11:19 AM

Previous topic - Next topic

LaBamba

I have installed the CAPTCHA-based code verification, and cant find this text: You must read and type the 5 chars within 0..9 and A..F

I have translated all other text but this is hided somewhere?
:-\

JayBachatero

In the Source file for the mod it says loadLanguages() then if it says Login it's located in Login.english.php.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

LaBamba

Not found in Login.english.php ? Where else can it be?

JayBachatero

Well these are the text strings that the mod uses.  They are located in modifications.english.php


//Begin CAPTCHA Mod 0.1
//General Strings
$txt['captchaEnter'] = "Please enter the code as shown";
$txt['captchaEnterShort'] = "Enter Code";
$txt['captchaWrong'] = "Sorry, you didn't enter the correct code.<br>You must go back, refresh the page, and enter the new code!";
$txt['captchaMaxTries'] = "Sorry, you've entered the code wrong too many times. Registration cannot continue.";

//When posting a reply to a topic
$txt['error_captcha_wrong'] = "The code was entered incorrectly.";

//Administration strings
$txt['captchaHeading'] = "CAPTCHA Settings";
$txt['captchaChars'] = "Number of characters to use for code";
$txt['captchaMinSize'] = "Minimum Font Size";
$txt['captchaMaxSize'] = "Maximum Font Size";
$txt['captchaMaxRotate'] = "Maximum angle for character rotation";
$txt['captchaNoise'] = "Enable Noise <div class='smalltext'>enabled = make characters 'noisy' (recommended), disabled = use grid</div>";
$txt['captchaWebSafeColours'] = "Only use web safe colours";
$txt['captchaBadGuysURL'] = "'Bad Guys' URL <div class='smalltext'>(when someone tries to avoid the CAPTCHA, they will get redirected here)</div>";
//End CAPTCHA Mod
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

LaBamba

#4
This is translated already but there is shown this text too, and in english. I want this translated too, if found somewhere?

You must read and type the 5 chars within 0..9 and A..F



JayBachatero

Ok I found it.  It's located in /captcha/hn_captcha_class.php
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

LaBamba

Thanks a lot!

But how to get this captcha working in another theme? It doesn't show up in my other theme  :-[

Quote from: JayBachatero on February 17, 2006, 06:53:50 PM
Ok I found it.  It's located in /captcha/hn_captcha_class.php

JayBachatero

You need to edit Register.template.php for your themes.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

LaBamba

#8
Thanks again for your help, you're the man, you know everything  ;D

Also observed that you have to edit in other themes the Post.template.php file, to get captcha visible in posting messages!

Quote from: JayBachatero on February 17, 2006, 10:45:15 PM
You need to edit Register.template.php for your themes.

JayBachatero

Well if the mod says to do so then yeah.  I though this was only used for registration.  And no I only know a little tiny bit :P
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

LaBamba

Yes, there seems to be option to use it for Guest messages too with code request for all quest made messages if allowed to post ;)

Quote from: JayBachatero on February 18, 2006, 02:53:22 PM
Well if the mod says to do so then yeah.  I though this was only used for registration.  And no I only know a little tiny bit :P

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

LaBamba

Right, all parts nees amall added text, remember it was Post.template.php for messgae areas ;)

Quote from: JayBachatero on February 18, 2006, 06:00:03 PM
Oh ok.  So edit all the required parts :)

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Daniel15

Hi,
Sorry, I'm really sorry about not being able to reply to this topic. I've been really busy with school and stuff. As you found, the text 'You must read and type the 5 chars within 0..9 and A..F' is not located within the language file. This text was in the CAPTCHA script. I didn't write the CAPTCHA script, I just wrote some code to make it work with SMF.

If you have any more problems, please be sure to let me know ;)

--daniel15

I guess I should make a guide on how to install the MOD on other themes, then?
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

elstinko

1. unzip the Mod package, and look for a file ending with .mod

Captcha does not have a file that ends in this extension now what?

I am trying ot get this mod enabled for YabbGrey theme.


JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Daniel15

Hi,
Once you install the MOD, you'll need to open the 'install.xml' file and look for the sections relating to Themes/default/Post.template.php and Themes/default/Register.template.php. Once you find the sections, you'll need to do the same changes, except with your new theme's files.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Advertisement: