Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-27-2010, 05:45 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 19,672
BMR777 is on a distinguished road
Default RE: Installing CAPTCHA - Where to put these two PHP codes?

I would suggest ReCaptcha:

http://recaptcha.net/

Adding that would be super easy.

To use the one you are using though, maybe something like...

Find:

PHP Code:
else{

    
//We are attempting to register the user...

    //First MD5 hash the passwords:

    
$pass1 md5($pass1);
    
$pass2 md5($pass2); 
Replace With:

PHP Code:
else{

    
//We are attempting to register the user...

include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';

$securimage = new Securimage();

    
//First MD5 hash the passwords:

    
$pass1 md5($pass1);
    
$pass2 md5($pass2); 
Find:

PHP Code:
    else if($tos != "yes"){

    
//User did not agree to TOS
    
$article_title "Terms of Service Error";
    
$article_content $notos;

    } 
Replace With:

PHP Code:
else if($tos != "yes"){

    
//User did not agree to TOS
    
$article_title "Terms of Service Error";
    
$article_content $notos;

    }
else if(
$securimage->check($_POST['captcha_code']) == false){

// The captcha is wrong, put your message here...

$article_title "Captcha Incorrect";
$article_content "Captcha Incorrect";


Try that and see if it works. :)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Captcha / reCaptcha / Anti-Bot Question Lone Wolf Suggestions and Feature Requests 5 04-23-2011 01:18 AM
How to add a Re captcha Code in Register Page? SieghartZeke Questions and Supports 5 10-09-2009 04:35 AM
Help with installing a theme [Answered] RipJawWolfFang Questions and Supports 10 05-22-2009 11:06 PM
BB CODES zhiichiro Questions and Supports 4 03-24-2009 06:52 PM
New idea for CAPTCHA? lupus6x9 Other Chat 8 08-19-2008 03:16 AM


All times are GMT -5. The time now is 12:47 PM.

Currently Active Users: 4531 (0 members and 4531 guests)
Threads: 4,082, Posts: 32,047, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636