Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Captcha Image Customisation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Captcha Image Customisation

 Post Reply Post Reply
Author
gm.tc View Drop Down
Newbie
Newbie


Joined: 04 April 2013
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote gm.tc Quote  Post ReplyReply Direct Link To This Post Topic: Captcha Image Customisation
    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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9534
Post Options Post Options   Thanks (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
gm.tc View Drop Down
Newbie
Newbie


Joined: 04 April 2013
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote gm.tc Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (1) Thanks(1)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
gm.tc View Drop Down
Newbie
Newbie


Joined: 04 April 2013
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote gm.tc Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.01
Copyright ©2001-2018 Web Wiz Ltd.


Become a Fan on Facebook Follow us on Twitter Connect with us on LinkedIn Community Forums Web Wiz Blogs Web Wiz News
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2019 Web Wiz Ltd. All rights reserved.