Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2007, 08:26 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,160
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 266 Times in 178 Posts
Smile Better Captcha for Pligg v0.1

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, 121 views - Who Downloaded?)

Last edited by dollars5 : 02-27-2007 at 08:41 AM.
Reply With Quote
The Following 3 Users Say Thank You to dollars5 For This Useful Post:
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 02-27-2007, 08:28 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,160
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 266 Times in 178 Posts
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
The Following User Says Thank You to dollars5 For This Useful Post:
  #3 (permalink)  
Old 02-27-2007, 08:41 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,160
Downloads: 29
Uploads: 1
Thanks: 292
Thanked 266 Times in 178 Posts
Added a sample screenshot.
Reply With Quote
  #4 (permalink)  
Old 02-22-2008, 10:35 AM
phalcon phalcon is offline
Pligg Donor
 
Join Date: Jun 2007
Posts: 62
Downloads: 10
Uploads: 0
Thanks: 4
Thanked 4 Times in 4 Posts
I'm getting a broken link on the attachment download...
__________________
RandomEgg.com
Where ideas are hatched.

RandomNinja.com
Comes at you like a spidermonkey! (Oh Baby Jesus, I need a template!)
Reply With Quote
  #5 (permalink)  
Old 02-22-2008, 10:48 AM
Yankidank's Avatar
Yankidank Yankidank is online now
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Pligg Founder
Pligg Version: SVN
Pligg Template: LemonTwist
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,540
Downloads: 65
Uploads: 6
Thanks: 100
Thanked 156 Times in 105 Posts
Quote:
Originally Posted by phalcon View Post
I'm getting a broken link on the attachment download...
Link is working for me (Mac, Firefox)
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #6 (permalink)  
Old 02-23-2008, 10:36 AM
phalcon phalcon is offline
Pligg Donor
 
Join Date: Jun 2007
Posts: 62
Downloads: 10
Uploads: 0
Thanks: 4
Thanked 4 Times in 4 Posts
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.
__________________
RandomEgg.com
Where ideas are hatched.

RandomNinja.com
Comes at you like a spidermonkey! (Oh Baby Jesus, I need a template!)
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding CAPTCHA verification to Pligg Permanent4 Retired Threads 25 03-16-2008 05:44 AM
CAPTCHA Image Problems : Some Tips roschler Bug Report 3 07-29-2007 07:15 PM
CAPTCHA (I know, I read the other posts on this already) doctorgirlfriend Bug Report 4 04-10-2007 09:40 PM
Captcha problems, enable_captcha variable joeboxer35 Installation and Upgrade Help 2 01-27-2007 12:42 PM
missing CAPTCHA 3dKiller Bug Report 10 06-22-2006 03:59 PM


LinkBacks Enabled by vBSEO 3.0.0