Better Captcha for Pligg v0.1

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2007, 09:26 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Better Capcha v0.1
Created by: Dollars5 and Vinoth Kannan
Created on: 2007/02/27

Description
Improves the captcha that comes with the Plig framework to have alpha-numeric confirmation and including your own fonts for better protection.

Upload the better_captcha_fonts to Pligg root directory, replace the /libs/ts.php with the one provided with this release.

This module is inspired and based on the Better Captcha for PhpBB2 http://www.phpbb.com/phpBB/viewtopic.php?t=473222 by paul999



Revision History
v0.1 2007/02/27 Dollars5 - First version

Link: http://www.pligg.com/forum/attachmen...1&d=1172586228


Notes:
Should you replace with your own fonts - just name in sequence and place the fint inside the better_captcha_fonts folder.

Should you think of providing more protection against spam, replace the $pattern = "O123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; with a different pattern and make sure to adjust the numbers - we use 36 elements in this string. And to provide better difference between O (oh) and 0 (zero) - we have replaced 0 with O.

Should you make any modifications - please do notify in here or improve on it further.

Regards,
Dollars5.
Attached Files
File Type: zip better_captcha.zip (405.7 KB, 431 views)

Last edited by dollars5; 02-27-2007 at 09:41 AM.
Reply With Quote
  #2 (permalink)  
Old 02-27-2007, 09:28 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Should you think of using these captchas for story submission process too, please use the following code - this is a temporary solution and needs Admins/lead Devs suggestions to make it better.

A temporary solution would be is to do the following modifications:
1] open submit_empty_submit_form.tpl before
Code:
<input type="text" name="url" id="url" value="http://" size=55 class="form-full" />
add the following lines
Code:
<input type="hidden" name="ts_random" value="{$submit_rand}" /><br />
		<img src="{$my_pligg_base}/ts_image.php?ts_random={$submit_rand}" class="ch2" />
		<p><input type="text" size="20" name="ts_code" /><br /><br />
2] Open submit.php, in function do_submit1(); before
Code:
if($url == "http://" || $url == ""){
		if(Submit_Require_A_URL == false){$linkres->valid = true;}else{$linkres->valid = false;}
	}
add
Code:
if (!ts_is_human()) {
		$main_smarty->assign('register_error_text', "badcode");
		$main_smarty->display($the_template . '/register_error.tpl');
		return;
	}
This uses the same register_error.tpl files - should need another type of display, edit or forward accordingly.
Reply With Quote
  #3 (permalink)  
Old 02-27-2007, 09:41 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Added a sample screenshot.
Reply With Quote
  #4 (permalink)  
Old 02-22-2008, 11:35 AM
Pligg Donor
 
Join Date: Jun 2007
Posts: 61
I'm getting a broken link on the attachment download...
Reply With Quote
  #5 (permalink)  
Old 02-22-2008, 11:48 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,802
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Quote:
Originally Posted by phalcon View Post
I'm getting a broken link on the attachment download...
Link is working for me (Mac, Firefox)

Now Available: Facebook Connect Module !
Reply With Quote
  #6 (permalink)  
Old 02-23-2008, 11:36 AM
Pligg Donor
 
Join Date: Jun 2007
Posts: 61
Quote:
Originally Posted by Yankidank View Post
Link is working for me (Mac, Firefox)
I got it .. not sure what happened.

Has anyone tested it on the story submission process? I am getting a ton of story spam.
Reply With Quote
  #7 (permalink)  
Old 04-13-2009, 02:52 PM
New Pligger
 
Join Date: Mar 2009
Posts: 4
Thank for share.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need digg.com's like Captcha system alch666 Questions and Comments 3 03-02-2009 01:50 PM
Captcha v0.1 AshDigg Free Modules 31 02-26-2009 04:11 PM
Pligg captcha useless against spammers beatniak Questions and Comments 9 09-04-2007 11:31 AM
CAPTCHA (I know, I read the other posts on this already) doctorgirlfriend Questions and Comments 4 04-10-2007 10:40 PM
Captcha problems, enable_captcha variable joeboxer35 Questions and Comments 2 01-27-2007 01:42 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development