• If you want to display all number in a specific color: change all colors code in gdimg.php (your simplecaptcha plugin folder)

    replace all this

    $switch = rand(1, 4);
    if($switch==1) { // Blue color
    	$r = rand(000, 000);
    	$g = rand(000, 000);
    	$b = rand(000, 000);
    }
    if($switch==2) { // Blue color
    	$r = rand(000, 000);
    	$g = rand(000, 000);
    	$b = rand(000, 000);
    }
    if($switch==3) { // Green color
    	$r = rand(000, 000);
    	$g = rand(000, 000);
    	$b = rand(000, 000);
    }
    if($switch==4) { // Yellow color
    	$r = rand(000, 000);
    	$g = rand(000, 000);
    	$b = rand(000, 000);
    }

    with this and it will show only black numbers

    $switch = rand(1, 1);
    
    if($switch==1) { // Black color is 000,000 find color coder at internet
    	$r = rand(000, 000);
    	$g = rand(000, 000);
    	$b = rand(000, 000);
    }

    Removing numbers distortion or wave:
    just find this
    # Testing adding sinwave to image
    below that line of text you will find something like:

    $offset = rand(1, 10);
    $graph = true;
    for($i = 1; $i <= 96; $i++) {

    Solution: OFFSET should be put on (0, 0).

    http://wordpress.org/extend/plugins/simple-captcha/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter richardtov

    (@richardtov)

    How to change number quantity (edit gdimg.php)
    by default it will only show 6 numbers from 0 to 9.

    //we generate random number for use<br />
    $str = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);

    Edit it to show only 4 or less numbers from 0 to 9.

    //we generate random number for use
    $str = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);

    Just remove rand(0, 9) to remove a number.

    Thread Starter richardtov

    (@richardtov)

    How fix the ugly alignment, yes if you dying to find out how to fix it here is a solution that work with firefox last version and IE6,7.
    it will display it properly inline

    all TD and TR and the TABLE removed, friendly browser

    <!-- Star of SIMPLE CAPTCHA --!>
    <div style="height:23px;">
    
    		<div style="float:left;">
    		<input type="text" MAXLENGTH="3" name="publicKey" type="text" value="" tabindex="1" onclick="this.select();" style="width:50px;height:18px;" />
    		</div>
    
    		<div style="float:left;margin-left:3px;">
    		<img id="simple_captcha" src="<?php bloginfo('url'); ?>/wp-content/plugins/simpleCAPTCHA/gdimg.php?re=0" title="your code" alt="" />
    		</div>
    
    		<div style="float:left;margin-left:2px;">
    		<img src="<?php bloginfo('url'); ?>/wp-content/plugins/simpleCAPTCHA/captcha_reload.gif" onClick="setTimeout('reloadCaptcha()', 10)"
            style="cursor:pointer" title="request new code" alt="" />
           </div>
    </div>
    <!-- END OF SIMPLE CAPTCHA -->

    Remember you copy this and paste it on zrx_captcha.inc.php, line 115 below the “security code:”

    enjoy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simple CAPTCHA] Some help for you, the newbies simplecaptcha guide’ is closed to new replies.