close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CAPTCHA customization

Thread began 4/28/2009 10:17 pm by Jon Gibson | Last modified 5/01/2009 7:51 am by Ray Borduin | 2010 views | 6 replies |

Jon GibsonBeta Tester

CAPTCHA customization

Hello:

I was wondering if there was a way to reduce the noise level in the CAPTCHA. Or is there a way to add a custom 'screen'? I did see in the help PDF that there is a noise variable, but I tried using a few different colors with no success.

Thank you,
Jon

Sign in to reply to this post

Peter

Jon, I think you just have to keep playing with it until you get the look that works for you. I'm going through the same thing right now experimenting with it and the advice from tech support was to just follow customization instructions in the supporting doc.

Sign in to reply to this post

Ray BorduinWebAssist

The avalable captcha settings, set through the src url are:

width = (width of captcha in pixels)
height = (height of captcha in pixels)
characters = (number of characters)
bgcolor = (hex color of background, do not include #)
textcolor = (hex color of text, do not include #)
noisecolor = (hex color of random noise, do not include #)
font = (path to .tff file that defines the font to use)
transparent = (1 or 0 to identify whether the background should be transparent, bgcolor is used as transparent color in this case)
bgimage = (path to image to be repeated for background of captcha)
gridfreq = ( 0- 99 amount of grid lines where 0 = none and 99 = completely covered)
gridcolor = (hex color of grid lines, do not include #)
gridorder = ("in front of text" to move in front, otherwise will be behind)
noisefreq = ( 0- 99 amount of white noise where 0 = none and 99 = completely covered)
noiseorder = ("in front of text" to move in front, otherwise will be behind)
charheight = (hieght of text in pixels... text will still automatically be shrunk if it will not fit based on the width and number of characters so this setting can only be effectively used to shrink text and not make it larger since it will always shrink to fit)

so if you add or alter their values in the image src you should be able to get the effect you want. Looks like you would want to lower the noisefreq value to reduce white noise.

Sign in to reply to this post

Peter

Jon sorry to commandeer your thread but have to ask Ray, what do you mean the src url and how does one access that? Dumb question I'm sure but the answer will be of great value!

Sign in to reply to this post

Ray BorduinWebAssist

Where the <img src=""> tag is located for the captcha image. You will see some of those values are already there with the values from WA Globals referenced for allowing you to edit some of these properties directly within the WA_Globals.php file. You can override the globals settings or add new settings in the individual <img> tags for the captcha on the page.

Sign in to reply to this post

Peter

Here is the code from my file:

<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=<?php echo $WAGLOBAL_Captcha_Noise; ?>&bgcolor=<?php echo $WAGLOBAL_Captcha_BG; ?>&textcolor=<?php echo $WAGLOBAL_Captcha_Text; ?>&transparent=<?php echo $WAGLOBAL_Captcha_BG_transparent; ?>&characters=<?php echo $WAGLOBAL_Captcha_Characters; ?>&width=<?php echo $WAGLOBAL_Captcha_Width; ?>&height=<?php echo $WAGLOBAL_Captcha_Height; ?>&font=<?php echo $WAGLOBAL_Captcha_Font; ?>" alt="security code" />

I don't see too many values reflecting my changes to the WA_Globals.php file. So not terribly clear how one changes this code as one way to modify the Captcha image.

Sign in to reply to this post

Ray BorduinWebAssist

What have you changed? What updates to the CAPTCHA do you think aren't working?

Add a second one to the page, or play around with it on a new page to see how it works.

Start with:
<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php">

That will give it the default values. Then try changing them. Try:
<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?bgcolor=ff0000">

To make it update from a global you would do:
<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?bgcolor=<?php echo $WAGLOBAL_Captcha_BG; ?>">

and now the value would come from WAGLOBAL_Captcha_BG. You can remove the globals and add the code inline if that is easier for you, or add more globals to handle more of the available configuration options.

If you find one that doesn't work the way you would expect, copy and paste the resulting <img> tag by viewing the source code on the resulting CAPTCHA image. I will be able to use that to reproduce the problem and I can try to help from there.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...