Better Captcha for Pligg v0.1

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2007, 10:26 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
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, 464 views)

Last edited by dollars5; 02-27-2007 at 10:41 AM.
Reply With Quote
  #2 (permalink)  
Old 02-27-2007, 10:28 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
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, 10:41 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
Added a sample screenshot.
Reply With Quote
  #4 (permalink)  
Old 02-22-2008, 12:35 PM
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, 12:48 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM 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)

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #6 (permalink)  
Old 02-23-2008, 12:36 PM
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, 03: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
Captcha v0.1 AshDigg Free Modules 32 09-27-2010 06:19 AM
Need digg.com's like Captcha system alch666 Questions and Comments 3 03-02-2009 02:50 PM
Pligg captcha useless against spammers beatniak Questions and Comments 9 09-04-2007 12:31 PM
CAPTCHA (I know, I read the other posts on this already) doctorgirlfriend Questions and Comments 4 04-10-2007 11:40 PM
Captcha problems, enable_captcha variable joeboxer35 Questions and Comments 2 01-27-2007 02: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