Results 1 to 8 of 8

Thread: How to change Captcha Image?

  1. #1
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default How to change Captcha Image?

    Hi Smoge,

    How can i change Captcha Image. as my site is swedish i want to add some swedish letters to my capatcha images that will cut down all fake and nigeraians signups as they dont have swedish letters on her keyboards.

    anyideas how to do this?
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    version dolphin 5.6
    Edit the array in simg/simg.php

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default

    thx smoge,

    I find it and as you know my coding is non. i added my swedish characters and tested join form, i could see my characters but not all the time.

    is it possible to have one of the 3 characters being addade all the time?
    Last edited by birkenstam; 07-17-2009 at 07:48 AM. Reason: cahnge
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    I am sure - but need to code for that.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default

    Hi Smoge,

    i just added my characters like this

    [CODE]$chars = array("a","b","c","d","e","f","h","i","k","m","n", "o","r","s","t","u","v","w","x","z","å","ä","ö","2","3","4","5","6","7","8","9");/CODE]

    i can see the characters in join form but is not working to send form.

    is it something easy tochange in code or should i just leave it?
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  6. #6
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    My god, you really are not a coder... ha ha

    Just take out the numbers and letters you dont want....

    You can just have 5 or 6 foreign characters in there if you want.

    Up to you.
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  7. #7
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default

    Thx Smoge,
    again for your help

    yes i cant code that part of my brain is missing

    i removed "w","x","z" and added "å","ä","ö" still not working i see the letters when i add them is not working to send the form the box gets red.


    [CODE]$chars = array("a","b","c","d","e","f","h","i","k","m","n", "o","r","s","t","u","v","å","ä","ö","2","3","4","5","6","7","8","9");/CODE]


    this is my code in simg.php what am i doing wrong?

    Code:
    <?php
    
    /***************************************************************************
    *                            Dolphin Smart Community Builder
    *                              -----------------
    *     begin                : Mon Mar 23 2006
    *     copyright            : (C) 2006 BoonEx Group
    *     website              : http://www.boonex.com/
    * This file is part of Dolphin - Smart Community Builder
    *
    * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. 
    * http://creativecommons.org/licenses/by/3.0/
    *
    * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    * without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    * See the Creative Commons Attribution 3.0 License for more details. 
    * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 
    * see license.txt file; if not, write to marketing@boonex.com
    ***************************************************************************/
    
    
    require_once( '../inc/header.inc.php' );
    require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' );
    
    ob_start();
    $chars = array("a","b","c","d","e","f","h","i","k","m","n","o","r","s","t","u","v","å","ä","ö","2","3","4","5","6","7","8","9");
    /*
    $chars = array("a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J",
    			   "k","K","L","m","M","n","N","o","p","P","q","Q","r","R","s","S","t","T",
    			   "u","U","v","V","w","W","x","X","y","Y","z","Z","2","3","4","5","6","7","8","9");
    */
    $textstr = '';
    for ($i = 0, $length = 6; $i < $length; $i++)
       $textstr .= $chars[rand(0, count($chars) - 1)];
    
    $hashtext = md5($textstr);
    setcookie('strSec', $hashtext, 0, '/');
    
    if ( produceSecurityImage( $textstr, $hashtext ) != IMAGE_ERROR_SUCCESS )
    {
    	// output header
    	header( "Content-Type: image/gif" );
    	
        header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
        header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
        header( "Cache-Control: no-store, no-cache, must-revalidate" );
        header( "Cache-Control: post-check=0, pre-check=0", false );
        header( "Pragma: no-cache" );
    	
    	// output error image
    	@readfile( $dir['profileImage'] . 'simg_error.gif' );
    }
    
    ob_end_flush();
    ?>
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  8. #8
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Not sure if the code supports non latin characters... this maybe the heart of the problem.

    I think you need to troubleshoot it further.. and maybe add some debug output.

    Warm regards,
    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. captcha image join form problem
    By gaminch in forum General Troubleshooting
    Replies: 2
    Last Post: 04-16-2009, 04:11 PM
  2. i change the word female and no image pic is wrong..
    By birkenstam in forum Dolphin General Discussion v6.00 and above
    Replies: 1
    Last Post: 11-05-2008, 08:50 PM
  3. captcha not working
    By kylerichards in forum General Troubleshooting
    Replies: 6
    Last Post: 04-07-2008, 06:02 AM
  4. change promotion-image to swf
    By mandygirrl in forum Graphics / Templates
    Replies: 1
    Last Post: 11-17-2007, 02:03 PM
  5. where to change group image upload maximum
    By claritydigital in forum General Troubleshooting
    Replies: 2
    Last Post: 10-11-2007, 07:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •