Print Page | Close Window

Captcha Image Customisation

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30720
Printed Date: 28 March 2026 at 9:18am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Captcha Image Customisation
Posted By: gm.tc
Subject: Captcha Image Customisation
Date Posted: 04 April 2013 at 11:05am
Hello,
 
I want to change the colors in the captcha image.
I've changed it in the "CAPTCHA_configuration.asp" and loaded it up again.
But the colors doesn't change, they are always the same as default.
 
CAPTCHA_configuration.asp Code:
'The settings below allow you to configure the colours, noise level, distortion type, etc. of the CAPTCHA image

'Background Colour
strCanvasColour = "f6070c"
'Border Colour
strBorderColour = "B79A5C"
'Character Colour
strCharacterColour = "B79A5C"
 
Everything works perfect but it doesn't take my color-change.
Thanks for your answers.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 04 April 2013 at 11:36am
This sounds very odd and the only thing I can think is to check that you are uploading the updated configuration file to the correct location.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: gm.tc
Date Posted: 04 April 2013 at 12:09pm
Thanks for your fast answer.
Nope, the location is definately correct. I downloaded the re-upped file to another location on my HD, the colors are changed in this document.
Maybe it's because my installation is a bit different to the guide?
What I made:
 
1. Uploaded the complete CAPTCHA directory in the same directory as the processing document.
 
2. Added this code in my form document:
<img id="CAPTCHA" alt="" src="/itemacms/js/CAPTCHA/CAPTCHA_image.asp" />
<a href="javascript:reloadCAPTCHA();">load new image</a>
<input id="CAPTCHA_Postback" type="hidden" name="CAPTCHA_Postback" value="true" /> <input id="securityCode" maxlength="12" size="12" autocomplete="off" name="securityCode" type="text" />
<script type="text/javascript">
function reloadCAPTCHA()
{
 document.getElementById('CAPTCHA').src='../itemacms/js/CAPTCHA/CAPTCHA_image.asp?'
+Date();
}
</script>
Guide says a bit different but it works better for me in this way.
 
3. Added the two documents to my processing document:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
 
4. Changed the link in the CAPTCHA_configuration.asp for "entered icorrectly":
'***** This is the name of the page you want users redirected to if CAPTCHA is entered incorrectly *****
'Place the page to be redirected to between the quote marks below
Const strIncorrectCAPTCHApage = "../../de/test06.asp"
 
5. Changed the color-hex in the CAPTCHA_configuration.asp
 
When I fill in the correct captcha-code I come correctly to my confirmation-site. Then email comes.
When I fill in the not correct captcha-code I come correctly to my "false-code-site".
So everything works but not the color-change.
 
Maybe you can help me with this information.


Posted By: Scotty32
Date Posted: 04 April 2013 at 12:28pm
The only thing that matters (in terms of the issue) is this line:
<img id="CAPTCHA" alt="" src="/itemacms/js/CAPTCHA/CAPTCHA_image.asp" />


Does the image file have the correct config file included in it? As I notice it appears to be in a different folder to the rest.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: gm.tc
Date Posted: 04 April 2013 at 12:42pm

:-)

Scotty, you are my hero!
I had the documents before in a test-folder - and forgot to change this one link.
And I've not deleted the test-folder - so it worked but without the color-change.
Thanks very much to you and Bruce!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net