Tensor is a sleek template that can fit many different websites. It can have a…
Shopping/Ecommerce Plugin Solutions For WordPress
Here is a list of Shopping/Ecommerce Plugin Solutions For WordPress. I thought i would start this post purely because i spent most of the day trying to find a ecommerce plugin that actually works. So hopefully it helps you too! Jigoshop Jigoshop is an eCommerce plugin for WordPress developed by...
06
Jul
2011
1 Comment
Read More
Good SEO practices – How to beat Google panda
Last week we did a post on Google panda “Has your site been Google Panda slapped?”. This week I want to share with you some ideas and practice that you can apply to your website to help improve and beat the panda! Google has released Panda update 2.2, just as...
27
Jun
2011
No comments
Read More
Sliding login panel with jQuery
Came across this great script for slide down login This script is based on a previous script “Show/Hide Login Panel with Mootools 1.2″ but now works with jQuery 1.3.2 instead of Mootools 1.2. Please note the Login and Register forms in this demo will not work “out of the box”...
22
Feb
2011
No comments
Read More
YouTube Clone Script
http://www.clipsharetemplates.com clone script allows you to run your own video sharing portal like YouTube.com, Metacafe, DailyMotion, and others The ClearWater template is a stunning and light design featuring stylish mouseover effects and will be a great addition to any video sharing website using Clipshare 4.1 Professional. The Clearwatter template utilizes...
10
Oct
2010
1 Comment
Read More
PHP Coupon Clone Script
Easy-to-use SEO friendly coupon script which allow you to create Discounts/Promotion Coupons web site. Earn affiliate commissions while offering discounts for your visitors! With 9 different designs you will be able to create perfect coupon web site in any niche! Add website/store with Seo title, keywords and affiliate url Activate...
23
Sep
2010
No comments
Read More
Image Sharing Script
Create your own popular image sharing website. Allow users to share their picture and photos with everyone. Host images instantly with this image hosting script. Features Rate Images Users can rate images with the 5 star rating system (ajax). Rate Images Security Users are only allowed to vote once per...
14
Jul
2010
1 Comment
Read More
Yahoo answers clone scriptYahoo answers clone script
Looking to create your own Yahoo Answer Website. Well here is the script that will help you achieve that goal! Question Answer Script with a large and highly customizable set of key features makes it the best of php answer script available. Question answer script has the question & answer...
30
May
2010
No comments
Read More
Domain Auctions Script Flippa clone script
This fantastic script can be used to create your very own Flippa website. Not only can it be used as a flippa type website, but it’s great for any marketplace niche. With this Clone Script you will be able to produce a marketplace website within minutes. PRICE: $57 DEMO...
29
May
2010
2 Comments
Read More
Today we look at very simple feature to which is a very important one. A Captcha Security device, to help prevent that unwanted spam.
This script generates images (known as “Captcha’s”) which contain security codes used for protecting a form from spam bots. By encoding a ‘password’ inside an image and asking the user to re-enter what they see you can verify the user is a human and not automated software submitting your form.
<font color="#3366ff"><span class="hl-inlinetags"><?php</span><span class="hl-code">
</span><span class="hl-identifier">session_start</span><span class="hl-brackets">()</span><span class="hl-code">;</span></font>/** File: CaptchaSecurityImages.php*
<font color="#3366ff"><span class="hl-comment">Author: Simon Jarvis* Copyright: </span></font><font color="#3366ff"><span class="hl-comment">2006 Simon Jarvis* Date: 03/08/06
* Updated: 07/02/07
* Requirements: PHP 4/5 with GD and </span></font><font color="#3366ff"><span class="hl-comment">FreeType libraries
* Link:
</span><span class="hl-url">white-hat-web-design.co.uk/articles/php-captcha.php</span><span class="hl-comment">* </span></font>This program is free software;you can redistribute it and/or* modify it under the terms of theGNU General Public License*as published by the Free Software Foundation;either version 2 * of the License, or (at your option)any later version. * * This program is distributed in thehope that it will be useful, * but WITHOUT ANY WARRANTY; without even theimplied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the * GNU General Public License for more details: * http://www.gnu.org/licenses/gpl.html**/ class CaptchaSecurityImages { var $font = 'monofont.ttf'; function generateCode($characters) { /* list all possible characters, similarlooking characters and vowels have been removed */ $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while ($i < $characters) { $code .= substr($possible, mt_rand(0,strlen($possible)-1), 1); $i++; } return $code; } function CaptchaSecurityImages($width='120',$height='40',$characters='6') { $code = $this->generateCode($characters); /* font size will be 75% of the image height */ $font_size = $height * 0.75; $image = imagecreate($width, $height) or die('Cannot initialize new GD image stream'); /* set the colours */ $background_color = imagecolorallocate($image, 255, 255, 255); $text_color = imagecolorallocate($image, 20, 40, 100); $noise_color = imagecolorallocate($image, 100, 120, 180); /* generate random dots in background */ for( $i=0; $i<($width*$height)/3; $i++ ) { imagefilledellipse($image, mt_rand(0,$width),mt_rand(0,$height), 1, 1, $noise_color); } /* generate random lines in background */ for( $i=0; $i<($width*$height)/150; $i++ ) { imageline($image, mt_rand(0,$width),mt_rand(0,$height),mt_rand(0,$width), mt_rand(0,$height), $noise_color); } /* create textbox and add text */ $textbox = imagettfbbox($font_size, 0,$this->font, $code) or die('Error in imagettfbbox function'); $x = ($width - $textbox[4])/2; $y = ($height - $textbox[5])/2; imagettftext($image, $font_size, 0,$x, $y, $text_color,$this->font , $code) or die('Error in imagettftext function'); /* output captcha image to browser */ header('Content-Type: image/jpeg'); imagejpeg($image); imagedestroy($image); $_SESSION['security_code'] = $code; } } $width = isset($_GET['width']) &&$_GET['height'] < 600 ? $_GET['width'] : '120'; $height = isset($_GET['height']) &&$_GET['height'] < 200 ? $_GET['height'] : '40'; $characters = isset($_GET['characters']) &&$_GET['characters'] > 2 ? $_GET['characters'] : '6'; $captcha = new CaptchaSecurityImages($width,$height,$characters);
Copy and paste the above code and save it on your webserver as CaptchaSecurityImages.php.You will also need to place a copy of the “Monofont” font in the same directory as the CaptchaSecurityImages.php file. (Alternatively you can replace the line var $font = ‘monofont.ttf’; with the name of whatever font you want to use)download You can download the captcha zip which contains all the files needed to implement the script including the required font.
Place the following code on your form. This will generate an image with a random string of characters along with the text field where the user will retype the code.
<img src="CaptchaSecurityImages.php" /> Security Code: <input id="security_code" name=
"security_code" type="text" />
You can also specify certain options for the image by passing them as variables to CaptchaSecurityImages.php.
The options available are the width and height of the image and the number of characters
<img src="CaptchaSecurityImages.php? width=100&height=40&characters=5" alt="captcha" /> <input id="security_code"
name="security_code" type="text" />
session_start(); if(($_SESSION['security_code'] ==
$_POST[ security_code'])
&& (!empty($_SESSION['security_code'])) ) { // Insert you code for processing the form here,
e.g emailing the submission,
entering it into a database. unset($_SESSION['security_code']); } else { // Insert your code for showing an error message here }
Just a Big thank you to the http://www.white-hat-web-design.co.uk team, for this wonderful development. Please note that this code can be implemented into any php file, and is very easy to use

Thanks very nice concept
Very nice post on this site!