<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Website Ideas &#187; Tutorials</title>
	<atom:link href="http://www.website-ideas.co.uk/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.website-ideas.co.uk</link>
	<description>All the design inspiration you will need</description>
	<lastBuildDate>Sat, 12 Nov 2011 06:54:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pagination with PHP, jQuery and MySQL.</title>
		<link>http://www.website-ideas.co.uk/2011/09/29/pagination-with-php-jquery-and-mysql/</link>
		<comments>http://www.website-ideas.co.uk/2011/09/29/pagination-with-php-jquery-and-mysql/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 14:46:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/?p=1411</guid>
		<description><![CDATA[So many emails hit my inbox with readers asking me how to implement pagination with php. So i decided to put one together using Jquery, php and Mysql. It looks difficult, but its rather simple. The Structure contains three PHP files and two js files includes jQuery plugin. -database.php (Database Configuration) -pagination.php -paginationdata.php Database Table CREATE TABLE users ( users_id INT PRIMARY KEY AUTO_INCREMENT, user TEXT ); config.php You have to change hostname, username, password and databasename. &#60;!--?php $mysql_hostname = &#34;localhost&#34;; $mysql_user = &#34;username&#34;; $mysql_password = &#34;password&#34;; $mysql_database = &#34;database&#34;; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die(&#34;Opps some thing went wrong&#34;); mysql_select_db($mysql_database, $bd) or die(&#34;Opps some thing went wrong&#34;); ?--&#62; pagination.php User interface page. &#60;!--?php include('config.php'); $per_page = 9; //Calculating no of pages $sql = &#34;select * from users&#34;; $result = mysql_query($sql); $count = mysql_num_rows($result); $pages = ceil($count/$per_page) ?--&#62; &#60;ul id=&#34;pagination&#34;&#62; &#60;!--?php&#60;br /--&#62; //Pagination Numbers for($i=1; $i&#38;lt;=$pages; $i++) { echo ' &#160; &#160; &#60;li id=&#34;'.$i.'&#34;&#62;'.$i.'&#60;/li&#62; '; } ?&#38;gt;&#60;/ul&#62; paginationdata.php Simple php script display data from the users table. &#60;!--?php include('config.php'); $per_page = 9; if($_GET) { $page=$_GET['page']; } $start = ($page-1)*$per_page; $sql = &#34;select * from users order by user_id limit $start,$per_page&#34;; $result = mysql_query($sql); ?--&#62; Demo To Follow Shortly! &#38;... ]]></description>
			<content:encoded><![CDATA[<p>So many emails hit my inbox with readers asking me how to implement pagination with php. So i decided to put one together using Jquery, php and Mysql. It looks difficult, but its rather simple.<br />
<span id="more-1411"></span></p>
<p>The Structure contains three PHP files and two js files includes jQuery plugin.</p>
<p>-database.php (Database Configuration)<br />
-pagination.php<br />
-paginationdata.php</p>
<p><strong>Database Table</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CREATE TABLE users<br />
(<br />
users_id INT PRIMARY KEY AUTO_INCREMENT,<br />
user TEXT<br />
);</div></div>
<p><strong>config.php</strong><br />
You have to change hostname, username, password and databasename.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;!--?php $mysql_hostname = &quot;localhost&quot;; $mysql_user = &quot;username&quot;; $mysql_password = &quot;password&quot;; $mysql_database = &quot;database&quot;; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die(&quot;Opps some thing went wrong&quot;); mysql_select_db($mysql_database, $bd) or die(&quot;Opps some thing went wrong&quot;); ?--&gt;</div></div>
<p><strong><br />
pagination.php</strong><br />
User interface page.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;!--?php include('config.php'); $per_page = 9; //Calculating no of pages $sql = &quot;select * from users&quot;; $result = mysql_query($sql); $count = mysql_num_rows($result); $pages = ceil($count/$per_page) ?--&gt;</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul id=&quot;pagination&quot;&gt; &lt;!--?php&lt;br /--&gt; //Pagination Numbers<br />
for($i=1; $i&amp;lt;=$pages; $i++)<br />
{<br />
echo '<br />
&nbsp; &nbsp; &lt;li id=&quot;'.$i.'&quot;&gt;'.$i.'&lt;/li&gt;<br />
';<br />
}<br />
?&amp;gt;&lt;/ul&gt;</div></div>
<p><strong>paginationdata.php</strong><br />
Simple php script display data from the users table.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;!--?php include('config.php'); $per_page = 9; if($_GET) { $page=$_GET['page']; } $start = ($page-1)*$per_page; $sql = &quot;select * from users order by user_id limit $start,$per_page&quot;; $result = mysql_query($sql); ?--&gt;</div></div>
<table width="800px"><!--?php while($row = mysql_fetch_array($result)) { $user_id=$row['user_id']; $user =$row['user']; ?--></p>
<tbody>
<tr>
<td><!--?php echo $user _id; ?--></td>
<td><!--?php echo $user ; ?--></td>
</tr>
</tbody>
</table>
<p>Demo To Follow Shortly! &amp; Download</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2011/09/29/pagination-with-php-jquery-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful PHP Snippets</title>
		<link>http://www.website-ideas.co.uk/2011/07/01/useful-php-snippets/</link>
		<comments>http://www.website-ideas.co.uk/2011/07/01/useful-php-snippets/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 18:49:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Scripts]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/?p=921</guid>
		<description><![CDATA[As a PHP developer i&#8217;m always in the search for little snippets to add to my library. This at times so often proves useful when coding big projects and quick little functions. Snippets as such are great to add to existing CMS systems, such as WordPress, drupal or Joomla. Calculate distances in PHP I used this on an accommodation website not to long ago. this snippet allows you to measure the distance from one point to another. Great combo with Google maps too! function distance($lat1, $lon1, $lat2, $lon2, $unit) { $theta = $lon1 - $lon2; $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + &#160;cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); $dist = acos($dist); $dist = rad2deg($dist); $miles = $dist * 60 * 1.1515; $unit = strtoupper($unit); &#160;if ($unit == &#34;K&#34;) { return ($miles * 1.609344); } else if ($unit == &#34;N&#34;) { return ($miles * 0.8684); } else { return $miles; } } Force file download This allows you to force file downloads such as mp3 and other files being played in browsers. function downloadFile($file){ $file_name = $file; $mime = 'application/force-download'; header('Pragma: public'); &#160; // required header('Expires: 0'); &#160; &#160; &#160; // no cache header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Cache-Control: private',false); header('Content-Type: '.$mime); header('Content-Disposition: attachment;... ]]></description>
			<content:encoded><![CDATA[<p>As a PHP developer i&#8217;m always in the search for little snippets to add to my library. This at times so often proves useful when coding big projects and quick little functions. Snippets as such are great to add to existing CMS systems, such as <a href="http://www.website-ideas.co.uk/category/wordpress/">WordPress</a>, drupal or <a href="http://www.website-ideas.co.uk/category/joomla/">Joomla</a>.</p>
<h2>Calculate distances in PHP</h2>
<p>I used this on an accommodation website not to long ago. this snippet allows you to measure the distance from one point to another. Great combo with Google maps too!</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function distance($lat1, $lon1, $lat2, $lon2, $unit) {</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$theta = $lon1 - $lon2;<br />
$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + &nbsp;cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));<br />
$dist = acos($dist);<br />
$dist = rad2deg($dist);<br />
$miles = $dist * 60 * 1.1515;<br />
$unit = strtoupper($unit);</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;if ($unit == &quot;K&quot;) {<br />
return ($miles * 1.609344);<br />
} else if ($unit == &quot;N&quot;) {<br />
return ($miles * 0.8684);<br />
} else {<br />
return $miles;<br />
}<br />
}</div></div>
<h2>Force file download</h2>
<p>This allows you to force file downloads such as mp3 and other files being played in browsers.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function downloadFile($file){<br />
$file_name = $file;<br />
$mime = 'application/force-download';<br />
header('Pragma: public'); &nbsp; // required<br />
header('Expires: 0'); &nbsp; &nbsp; &nbsp; // no cache<br />
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');<br />
header('Cache-Control: private',false);<br />
header('Content-Type: '.$mime);<br />
header('Content-Disposition: attachment; filename=&quot;'.basename($file_name).'&quot;');<br />
header('Content-Transfer-Encoding: binary');<br />
header('Connection: close');<br />
readfile($file_name); &nbsp; &nbsp; &nbsp; // push it out<br />
exit();<br />
}</div></div>
<h2>Get latitude and longitude from an address</h2>
<p>This is a great snippet and goes well with the first one i mentioned. This allows you grab the latitude and longitude from the Google map url and returning the values as an array!</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function getLatLong($address){<br />
if (!is_string($address))die(&quot;All Addresses must be passed as a string&quot;);<br />
$_url = sprintf('http://maps.google.com/maps?output=js&amp;amp;q=%s',rawurlencode($address));<br />
$_result = false;<br />
if($_result = file_get_contents($_url)) {<br />
if(strpos($_result,'errortips') &amp;gt; 1 || strpos($_result,'Did you mean:') !== false) return false;<br />
preg_match('!center:\s*{lat:\s*(-?\d+\.\d+),lng:\s*(-?\d+\.\d+)}!U', $_result, $_match);<br />
$_coords['lat'] = $_match[1];<br />
$_coords['long'] = $_match[2];<br />
}<br />
return $_coords;<br />
}</div></div>
<h2>Get how many times a page have been retweeted using PHP</h2>
<p>This snippet will return the number of tweets that a page was tweeted. Using the tweetmeme API</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function tweetCount($url) {<br />
$content = file_get_contents(&quot;http://api.tweetmeme.com/url_info?url=&quot;.$url);<br />
$element = new SimpleXmlElement($content);<br />
$retweets = $element-&amp;gt;story-&amp;gt;url_count;<br />
if($retweets){<br />
return $retweets;<br />
} else {<br />
return 0;<br />
}<br />
}</div></div>
<h2>Send Mail using mail function in PHP</h2>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$to = &quot;viralpatel.net@gmail.com&quot;;<br />
$subject = &quot;VIRALPATEL.net&quot;;<br />
$body = &quot;Body of your message here you can use HTML too. e.g.<br />
&lt;strong&gt; Bold &lt;/strong&gt;&quot;;<br />
$headers = &quot;From: Peter\r\n&quot;;<br />
$headers .= &quot;Reply-To: info@yoursite.com\r\n&quot;;<br />
$headers .= &quot;Return-Path: info@yoursite.com\r\n&quot;;<br />
$headers .= &quot;X-Mailer: PHP5\n&quot;;<br />
$headers .= 'MIME-Version: 1.0' . &quot;\n&quot;;<br />
$headers .= 'Content-type: text/html; charset=iso-8859-1' . &quot;\r\n&quot;;<br />
mail($to,$subject,$body,$headers);<br />
?&amp;gt;</div></div>
<h3>Updated 7/8/2011</h3>
<h2>Validate email Address</h2>
<p>This snippet will help you validate a email addy. It will check the MX records of the domain to make sure the email is more robust</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function is_valid_email($email, $test_mx = false)<br />
{<br />
&nbsp; &nbsp; if(eregi(&quot;^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$&quot;, $email))<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($test_mx)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list($username, $domain) = split(&quot;@&quot;, $email);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return getmxrr($domain, $mxrecords);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
}</div></div>
<h2>Zip Files on the Fly</h2>
<p>Snippet created by David Walsh. zip files on the fly!</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/* creates a compressed zip file */<br />
function create_zip($files = array(),$destination = '',$overwrite = false) {<br />
&nbsp; &nbsp; //if the zip file already exists and overwrite is false, return false<br />
&nbsp; &nbsp; if(file_exists($destination) &amp;&amp; !$overwrite) { return false; }<br />
&nbsp; &nbsp; //vars<br />
&nbsp; &nbsp; $valid_files = array();<br />
&nbsp; &nbsp; //if files were passed in...<br />
&nbsp; &nbsp; if(is_array($files)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //cycle through each file<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach($files as $file) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //make sure the file exists<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(file_exists($file)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $valid_files[] = $file;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; //if we have good files...<br />
&nbsp; &nbsp; if(count($valid_files)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //create the archive<br />
&nbsp; &nbsp; &nbsp; &nbsp; $zip = new ZipArchive();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($zip-&gt;open($destination,$overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE) !== true) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; //add the files<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach($valid_files as $file) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $zip-&gt;addFile($file,$file);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; //debug<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo 'The zip archive contains ',$zip-&gt;numFiles,' files with a status of ',$zip-&gt;status;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //close the zip -- done!<br />
&nbsp; &nbsp; &nbsp; &nbsp; $zip-&gt;close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //check to make sure the file exists<br />
&nbsp; &nbsp; &nbsp; &nbsp; return file_exists($destination);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; }<br />
}<br />
/***** Example Usage ***/<br />
$files=array('file1.jpg', 'file2.jpg', 'file3.gif');<br />
create_zip($files, 'myzipfile.zip', true);</div></div>
<h2> Resize Images on the fly</h2>
<p>This is a very useful snippet, especially when design wordpress templates and so on. Even shopping comparison websites!</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/**********************<br />
*@filename - path to the image<br />
*@tmpname - temporary path to thumbnail<br />
*@xmax - max width<br />
*@ymax - max height<br />
*/<br />
function resize_image($filename, $tmpname, $xmax, $ymax)<br />
{<br />
&nbsp; &nbsp; $ext = explode(&quot;.&quot;, $filename);<br />
&nbsp; &nbsp; $ext = $ext[count($ext)-1];<br />
<br />
&nbsp; &nbsp; if($ext == &quot;jpg&quot; || $ext == &quot;jpeg&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; $im = imagecreatefromjpeg($tmpname);<br />
&nbsp; &nbsp; elseif($ext == &quot;png&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; $im = imagecreatefrompng($tmpname);<br />
&nbsp; &nbsp; elseif($ext == &quot;gif&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; $im = imagecreatefromgif($tmpname);<br />
<br />
&nbsp; &nbsp; $x = imagesx($im);<br />
&nbsp; &nbsp; $y = imagesy($im);<br />
<br />
&nbsp; &nbsp; if($x &lt;= $xmax &amp;&amp; $y &lt;= $ymax)<br />
&nbsp; &nbsp; &nbsp; &nbsp; return $im;<br />
<br />
&nbsp; &nbsp; if($x &gt;= $y) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $newx = $xmax;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $newy = $newx * $y / $x;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $newy = $ymax;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $newx = $x / $y * $newy;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; $im2 = imagecreatetruecolor($newx, $newy);<br />
&nbsp; &nbsp; imagecopyresized($im2, $im, 0, 0, 0, 0, floor($newx), floor($newy), $x, $y);<br />
&nbsp; &nbsp; return $im2;<br />
}</div></div>
<p>Please bookmark this post, im going to weekly update it with snippets so watch this space!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2011/07/01/useful-php-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad Website Ideas &#8211; What Makes a Bad Website</title>
		<link>http://www.website-ideas.co.uk/2010/04/01/bad-website-ideas-what-makes-a-bad-website/</link>
		<comments>http://www.website-ideas.co.uk/2010/04/01/bad-website-ideas-what-makes-a-bad-website/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 06:18:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Ideas]]></category>
		<category><![CDATA[Bad Website ideas]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/?p=641</guid>
		<description><![CDATA[If you consider yourself to be a creative individual, or you simply want to express your passion for a certain subject, then creating a website could be for you. Many new websites enter the internet every day, and that is hardly likely to change anytime soon. Unfortunately, many of these places have a poor concept of just how their domain should be designed, and this hurts their popularity and visitor count. If you don&#8217;t want to meet the same fate, there are certain things you can do in order to make your website attractive and easy to navigate. What can you lose by trying? 1. Don&#8217;t have music playing, either in mp3 or midi form, on the website. People are not fond of having music suddenly blast from their speakers, and they are likely to hit the back button before they even get a chance to check out anything. You might think you&#8217;re sharing your favorite song with people, but odds are they won&#8217;t appreciate it. If you must have a music player, make sure it is either manually activated or it can be turned off by the visitor. This is very important to keep in mind. 2. Never use... ]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_642" class="wp-caption alignnone" style="width: 538px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-642" title="bad-website-ideas" src="http://www.website-ideas.co.uk/wp-content/uploads/2010/04/bad-website-ideas.gif" alt="Bad Website Ideas" width="528" height="501" /></dt>
</dl>
</div>
<p>If you consider yourself to be a creative individual, or you simply want  to express your passion for a certain subject, then creating a website  could be for you. Many new websites enter the internet every day, and  that is hardly likely to change anytime soon.</p>
<p>Unfortunately, many of  these places have a <strong>poor concep</strong>t of just how their domain should be  designed, and this hurts their popularity and visitor count. If you  don&#8217;t want to meet the same fate, there are certain things you can do in  order to make your website attractive and easy to navigate. What can  you lose by trying?<span id="more-641"></span></p>
<p><strong>1.</strong> Don&#8217;t have music playing, either in mp3 or midi form, on the website.  People are not fond of having music suddenly blast from their speakers,  and they are likely to hit the back button before they even get a  chance to check out anything. You might think you&#8217;re sharing your  favorite song with people, but odds are they won&#8217;t appreciate it. If you  must have a music player, make sure it is either manually activated or  it can be turned off by the visitor. This is very important to keep in  mind.</p>
<p><strong>2. </strong>Never use a tiny font to enhance your text. If you visited a website  and the font was too tiny for comfort, would you stick around? The  answer would likely be no. Therefore, make sure any text is of a size  that most people would be able to read. You will also want to refrain  from using fancy fonts that have the potential to create a problem; this  is just as bad as tiny fonts, because it can be just as difficult to  make out. If you aren&#8217;t sure, ask a friend or someone you know to take a  look at the website before it goes &#8220;live.&#8221; They can give you feedback.</p>
<p><strong>3.</strong> Don&#8217;t flood the pages with animated pictures. This is a sure fire way  to give off an air of unprofessional, a fatal mistake if you plan to  put up an online business. Some browsers might also be unable to load  the pictures properly, and it may end up taking a long time. Will the  visitor have that kind of patience? Would you?</p>
<p><strong>4.</strong> Let people know what the website is about right away. If they become  confused and are unable to figure out what they are looking at, they  will leave.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2010/04/01/bad-website-ideas-what-makes-a-bad-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Captcha For Joomla 1.5.x and integration with Sobi2</title>
		<link>http://www.website-ideas.co.uk/2009/03/19/captcha-for-joomla/</link>
		<comments>http://www.website-ideas.co.uk/2009/03/19/captcha-for-joomla/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 10:29:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Sobi2]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Tools]]></category>
		<category><![CDATA[Sobi2 Captcha]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/?p=432</guid>
		<description><![CDATA[OK so we finally managed to crack this bad boy for Joomla 1.5.9 . This script allows users to add a Captcha form to there Sobi2 contact page, helping the prevention of spam.  Snake was kind enough to modify and donate this script to us. This Captcha script can be used for any component in Joomla 1.5.x. If you need help setting it up please use our forum and we will assist with the setup and integration into your components. But this should be easy to setup. This specific demo will show you how to set it up using joomla 1.5 and Sobi2. I&#8217;ve attached the files to be downloaded from here. Firstly you need to download the Font file and Capctha file ( Download Here: ) ( This script is built of the one from Simon Jarvis ).  Copy these two files into your root folder. Then open your details template  &#8220;sobi2.details.tmpl&#8221; and copy and paste the code below. ( please note if you wish to use this function else where, you can ignore the sobi2.details.tmpl and add the form to your component of choice. For Sobi2 Only ( Testing done in legacy mode ) &#160;&#60;em&#62;&#60;span&#62;$link = sefRelToAbs(&#34;index.php?option=com_sobi2&#38;amp;sobi2Task=sobi2Details&#38;amp;catid={$catid}&#38;amp;sobi2Id={$mySobi_id}&#38;amp;Itemid=2&#34;); $task... ]]></description>
			<content:encoded><![CDATA[<p>OK so we finally managed to crack this bad boy for<strong> <a href="http://www.joomla.org/">Joomla 1.5.9</a> .</strong> This script allows users to add a <strong>Captcha </strong>form to there <strong><a href="http://www.sigsiu.net">Sobi2</a> </strong>contact page, helping the prevention of spam.  Snake was kind enough to modify and donate this script to us. This<strong> Captcha script</strong> can be used for any component in Joomla 1.5.x. If you need help setting it up please use our <strong><a href="http://www.website-ideas.co.uk/community/index.php">forum</a></strong> and we will assist with the setup and integration into your components. But this should be easy to setup.</p>
<p>This specific demo will show you how to set it up using <strong>joomla 1.5</strong> and <strong>Sobi2. </strong>I&#8217;ve attached the files to be downloaded from here.</p>
<p>Firstly you need to download the Font file and <strong>Capctha </strong>file <strong>( Download Here: <a class="downloadlink" href="http://www.website-ideas.co.uk/wp-content/plugins/download-monitor/download.php?id=1" title="Version1.1 downloaded 1231 times" >Captcha (1231)</a> )</strong> ( This script is built of the one from Simon Jarvis ).  Copy these two files into your root folder. Then open your details template  &#8220;sobi2.details.tmpl&#8221; and copy and paste the code below. ( please note if you wish to use this function else where, you can ignore the sobi2.details.tmpl and add the form to your component of choice.<span id="more-432"></span></p>
<p><strong>For Sobi2 Only ( Testing done in legacy mode )<br />
</strong></p>
<p><span style="color: #993300;"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;&lt;em&gt;&lt;span&gt;$link = sefRelToAbs(&quot;index.php?option=com_sobi2&amp;amp;sobi2Task=sobi2Details&amp;amp;catid={$catid}&amp;amp;sobi2Id={$mySobi_id}&amp;amp;Itemid=2&quot;);<br />
$task = mosGetParam( $_REQUEST, 'task', '' );<br />
$mySobi_id = $mySobi-&amp;gt;id ;&lt;/span&gt;&lt;/em&gt;</div></div>
<p><em><span></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">switch ($task) {<br />
case 'email' :<br />
emaillisting($mySobi_id);<br />
}</div></div>
<p></span></em></span></p>
<p><span style="color: #993300;"><em><span>function emaillisting($mySobi_id) {<br />
global $database, $mainframe;<br />
global $mosConfig_live_site, $mosConfig_mailfrom, $mosConfig_fromname;</span></em></span></p>
<p><span style="color: #993300;"><em><span>$directory_email = mosGetParam( $_POST, &#8216;directory_email&#8217;, &#8221; );<br />
$directory_name = mosGetParam( $_POST, &#8216;directory_name&#8217;, &#8221; );<br />
$v_firstname = mosGetParam( $_POST, &#8216;name&#8217;, &#8221; );<br />
$v_email = mosGetParam( $_POST, &#8216;email&#8217;, &#8221; );<br />
$v_telephone = mosGetParam( $_POST, &#8216;telephone&#8217;, &#8221; );<br />
$v_comments = mosGetParam( $_POST, &#8216;comments&#8217;, &#8221; );<br />
$v_province = mosGetParam( $_POST, &#8216;province&#8217;, &#8221; );<br />
$number = intval( mosGetParam( $_POST, &#8216;number&#8217;, 0 ) );<br />
$othernumber = intval( mosGetParam( $_POST, &#8216;othernumber&#8217;, 0 ) );<br />
$sum = intval( mosGetParam( $_POST, &#8216;sum&#8217;, 0 ) );<br />
$DIRECTORY_CONTACT_LETTER=(&#8220;<br />
Name: %s</span></em></span></p>
<p><span style="color: #993300;"><em><span>Email: %s</span></em></span></p>
<p><span style="color: #993300;"><em><span>Telephone: %s</span></em></span></p>
<p><span style="color: #993300;"><em><span>Province: %s</span></em></span></p>
<p><span style="color: #993300;"><em><span>Message: %s&#8221;);<br />
$query_text = sprintf($DIRECTORY_CONTACT_LETTER, $v_firstname, $v_email, $v_telephone, $v_province, $v_comments, $mosConfig_fromname );</span></em></span></p>
<p><span style="color: #993300;"><em><span>//$session =&amp; JFactory::getSession(&#8216;captcha_word&#8217;);<br />
$session =&amp; JFactory::getSession();<br />
$code = $session-&gt;get(&#8216;captcha_word&#8217;);<br />
if(($code == $_POST['captcha_word']) &amp;&amp; (!empty($code)) ) {</span></em></span></p>
<p><span style="color: #993300;"><em><span>$success = mosMail( $email, $mosConfig_fromname , $directory_email, &#8220;yourdomain.com Website Enquiry&#8221;, $query_text, 0, null,null,null,$v_email,$v_firstname );<br />
$success = mosMail( $email, $mosConfig_fromname , $mosConfig_mailfrom, &#8220;Copy of yourdomain.com Website Enquiry for &#8221; . $directory_name, $query_text, 0, null,null,null,$v_email,$v_firstname );</span></em></span></p>
<p><span style="color: #993300;"><em><span>mosRedirect(&#8220;index.php?option=com_sobi2&amp;sobi2Task=sobi2Details&amp;sobi2Id=$mySobi_id&#8221;, &#8220;Message sent successfully..&#8221;);</span></em></span></p>
<p><span style="color: #993300;"><em><span>} else {<br />
mosRedirect(&#8220;index.php?option=com_sobi2&amp;sobi2Task=sobi2Details&amp;sobi2Id=$mySobi_id&#8221;, &#8220;Message sending failed. Please insert the correct details in security box..&#8221;);<br />
}</span></em></span></p>
<p><span style="color: #993300;"><em><span>}</span></em></span></p>
<p><span style="color: #993300;"><em><span>?&gt;</span></em></span></p>
<p>Then you need to add the form of your choice, here is one that we made. ( change the fields to suit your needs )</p>
<form id="enquire" action="&lt;?php echo sefRelToAbs( 'index.php?option=com_sobi2&amp;sobi2Task=sobi2Details&amp;sobi2Id='. $mySobi-&gt;id ); ?&gt;"> </form>
<form action="&lt;?php echo sefRelToAbs( 'index.php?option=com_sobi2&amp;sobi2Task=sobi2Details&amp;sobi2Id='. $mySobi-&gt;id ); ?&gt;"><span style="color: #0000ff;"><span style="color: #993300;"><em>&lt;form id=&#8221;enquire&#8221; onsubmit=&#8221;alert(document.getElementById(&#8216;id_one&#8217;).value); return false;&#8221; action=&#8221;&lt;?php echo sefRelToAbs( &#8216;index.php?option=com_sobi2&amp;sobi2Task=sobi2Details&amp;sobi2Id=&#8217;. $mySobi-&gt;id ); ?&gt;&#8221;<br />
method=&#8221;post&#8221; name=&#8221;emailForm&#8221; target=&#8221;_top&#8221; id=&#8221;emailForm&#8221;&gt;</em></span><span style="color: #993300;"><em>&lt;label class=&#8221;style6&#8243;&gt;Name:&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;name&#8221; type=&#8221;text&#8221; size=&#8221;20&#8243; /&gt;<br />
&lt;br /&gt;<br />
&lt;label class=&#8221;style6&#8243;&gt;Email:&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;email&#8221; type=&#8221;text&#8221; size=&#8221;20&#8243; /&gt;<br />
&lt;br /&gt;<br />
&lt;label class=&#8221;style6&#8243;&gt;Telephone number:&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;telephone&#8221; type=&#8221;text&#8221; size=&#8221;20&#8243; /&gt;<br />
&lt;br /&gt;<br />
&lt;label class=&#8221;style6&#8243;&gt;Province:&lt;/label&gt;&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;province&#8221; id=&#8221;province&#8221; /&gt;<br />
&lt;br /&gt;<br />
&lt;label class=&#8221;style6&#8243;&gt;Message:&lt;/label&gt;&lt;br /&gt;<br />
&lt;textarea name=&#8221;comments&#8221; cols=&#8221;30&#8243; rows=&#8221;5&#8243;&gt;&lt;/textarea&gt;<br />
&lt;br /&gt;<br />
&lt;img src=&#8221;CaptchaSecurityImages.php&#8221; /&gt;<br />
Security Code:<br />
&lt;input id=&#8221;captcha_word&#8221; name=&#8221;captcha_word&#8221; type=&#8221;text&#8221; /&gt;<br />
&lt;br /&gt;<br />
&lt;input type=&#8221;submit&#8221; name=&#8221;Submit&#8221; value=&#8221;Submit&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;task&#8221; value=&#8221;email&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;directory_email&#8221; value=&#8221;&lt;?php echo $mySobi-&gt;customFieldsData['field_email']; ?&gt;&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;directory_name&#8221; value=&#8221;&lt;?php echo $mySobi-&gt;customFieldsData['field_contact_person']; ?&gt;&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;number&#8221; value=&#8221;&lt;?php echo $number; ?&gt;&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;othernumber&#8221; value=&#8221;&lt;?php echo $othernumber; ?&gt;&#8221; /&gt;<br />
&lt;/form&gt; </em></span></p>
<p></span></form>
<p>If you wish to use the code above you need to alter it a bit to suit the component needs. The basics you will need is a simple function and a form:</p>
<p><span style="color: #993300;"><em><span>function form () {<br />
global $database, $mainframe;</span></em></span></p>
<p><span style="color: #993300;"><em>//$session =&amp; JFactory::getSession(&#8216;captcha_word&#8217;);<br />
$session =&amp; JFactory::getSession();<br />
$code = $session-&gt;get(&#8216;captcha_word&#8217;);<br />
if(($code == $_POST['captcha_word']) &amp;&amp; (!empty($code)) ) {</em></span></p>
<p><span style="color: #993300;"><em>echo &#8220;Great Success, very nice&#8221;;</em></span></p>
<p><span style="color: #993300;"><em>} else {<br />
echo &#8220;wrong code&#8221;;<br />
}</em></span></p>
<p><span style="color: #993300;"><em>}</em></span></p>
<p><span style="color: #993300;"><em>?&gt; </em></span></p>
<p>Please don&#8217;t forget to add your form. The jfactory frame works had to be added to the function in order to make it work. For Joomla 1.5 sessions work differently to Joomla 1.0.</p>
<p>Feel free to use our <strong><a href="http://www.website-ideas.co.uk/community/index.php">forum</a></strong> for support, Snake and the moderaters will assist there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2009/03/19/captcha-for-joomla/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Posting twitter posts with Curl using PHP, Sobi2 and Joomla</title>
		<link>http://www.website-ideas.co.uk/2009/03/07/getting-twitter-posts-with-curl-and-php/</link>
		<comments>http://www.website-ideas.co.uk/2009/03/07/getting-twitter-posts-with-curl-and-php/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 05:09:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sobi2]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Ideas]]></category>
		<category><![CDATA[Website Scripts]]></category>
		<category><![CDATA[Website Tools]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/?p=431</guid>
		<description><![CDATA[Being experimenting with the API of Twitter. I started out playing with curl to send updates from a joomla directory, once a user added a listing. The concept was to have followers follow the updates live via twitter. Tools used: Joomla , Sobi2 and some basic PHP. Firstly make sure your server supports curl and that the extension is active. A simple install to linux would look something like this. sudo apt-get install curl libcurl3 libcurl3-dev php5-curl Now you have PHP cURL installed, the next thing you need to do is to restart apache2, run the following command in your terminal: sudo /etc/init.d/apache2 restart In the command terminal run the following command to test the connection to twitter. You can use the -v dump method to post any errors on the screen if connection fails. example curl -u -v ( and then the command ) curl -u username:password -d status=&#34;twittering from curl&#34; http://twitter.com/statuses/update.xml I then used the PHP curl features to do the same thing from PHP: &#60;span class=&#34;pun&#34;&#62;&#38;lt;?&#60;/span&#62;&#60;span class=&#34;pln&#34;&#62;php &#60;/span&#62;&#60;span class=&#34;com&#34;&#62;// Set username and password&#60;/span&#62;&#60;span class=&#34;pln&#34;&#62; $username &#60;/span&#62;&#60;span class=&#34;pun&#34;&#62;=&#60;/span&#62;&#60;span class=&#34;pln&#34;&#62; &#60;/span&#62;&#60;span class=&#34;str&#34;&#62;'username'&#60;/span&#62;&#60;span class=&#34;pun&#34;&#62;;&#60;/span&#62;&#60;span class=&#34;pln&#34;&#62; $password &#60;/span&#62;&#60;span class=&#34;pun&#34;&#62;=&#60;/span&#62;&#60;span class=&#34;pln&#34;&#62; &#60;/span&#62;&#60;span class=&#34;str&#34;&#62;'password'&#60;/span&#62;&#60;span class=&#34;pun&#34;&#62;;&#60;/span&#62;&#60;span class=&#34;pln&#34;&#62; &#60;/span&#62;&#60;span class=&#34;com&#34;&#62;// The message you want to... ]]></description>
			<content:encoded><![CDATA[<p>Being experimenting with the API of <a href="http://www.twitter.com/">Twitter</a>. I started out playing with <a href="http://curl.haxx.se/">curl</a> to send updates from a <a href="http://www.joomla.org/">joomla</a> directory, once a user added a listing. The concept was to have followers follow the updates live via <strong>twitter</strong>. Tools used: <strong>Joomla </strong>, <strong>Sobi2 </strong>and some basic PHP.</p>
<p>Firstly make sure your server supports curl and that the extension is active. A simple install to linux would look something like this.</p>
<p><strong><span style="color: #800000;"><em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install curl libcurl3 libcurl3-dev php5-curl</div></div>
<p></em></span></strong></p>
<p>Now you have PHP cURL installed, the next thing you need to do is to restart apache2, run the following command in your terminal:</p>
<p><strong><span style="color: #800000;"><em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /etc/init.d/apache2 restart</div></div>
<p></em></span></strong></p>
<p>In the command terminal run the following command to test the connection to twitter. You can use the -v dump method to post any errors on the screen if connection fails. example curl -u -v ( and then the command )</p>
<p><strong><span style="color: #800000;"><em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">curl -u username:password -d status=&quot;twittering from curl&quot; http://twitter.com/statuses/update.xml</div></div>
<p></em></span></strong></p>
<p>I then used the <span class="caps">PHP</span> curl features to do the same thing from <span class="caps">PHP</span>:<span id="more-431"></span></p>
<pre class="prettyprint"><strong><span style="color: #800000;"><em>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;span class=&quot;pun&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;php<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Set username and password&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
$username &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'username'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
$password &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'password'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// The message you want to send&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
$message &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'is twittering from php using curl'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// The twitter API address&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
$url &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'http://twitter.com/statuses/update.xml'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Alternative JSON version&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// $url = 'http://twitter.com/statuses/update.json';&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Set up and execute the curl process&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
$curl_handle &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; curl_init&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_setopt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; CURLOPT_URL&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;$url&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_setopt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; CURLOPT_CONNECTTIMEOUT&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_setopt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; CURLOPT_RETURNTRANSFER&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_setopt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; CURLOPT_POST&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_setopt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; CURLOPT_POSTFIELDS&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;status=$message&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_setopt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; CURLOPT_USERPWD&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;$username:$password&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
$buffer &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; curl_exec&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
curl_close&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$curl_handle&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// check for success or failure&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;empty&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$buffer&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
    echo &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'message'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
    echo &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'success'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;?&amp;gt;&lt;/span&gt;</div></div>

</em></span></strong></pre>
<p>This is just a basic layout, the twitter API allows you to do so much more. Now comes the fun part. If you are using <strong>joomla</strong> and <strong>sobi2</strong> as a directory component, here is a way to place the above code to your <strong>sobi2 </strong>directory and receive live updates once a user adds a listing.</p>
<p>Open the sobi2.class file , then scroll down to line 533 and insert the above code just above the sql query. You can then use the variables within the sobi2 framework to display to twitter. Here is another sample of this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;strong&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&lt;em&gt;function ShortenText($text) {<br />
$chars = 140;<br />
$text = $text.&quot; &quot;;<br />
$text = substr($text,0,$chars);<br />
$text = substr($text,0,strrpos($text,' '));<br />
$text = $text.&quot;...&quot;;<br />
return $text;<br />
}&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;</div></div>
<p><strong><span style="color: #800000;"><em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$username = 'username';<br />
$password = 'password';</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$twitpost = $this-&amp;gt;title.&quot; has joined your directory!&quot;;</div></div>
<p></em></span></strong></p>
<p><strong><span style="color: #800000;"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;em&gt;$twitmessage = ShortenText($twitpost);&lt;/em&gt;</div></div>
<p></span></strong></p>
<p><strong><span style="color: #800000;"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;em&gt;$url = 'http://twitter.com/statuses/update.xml';&lt;/em&gt;</div></div>
<p></span></strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;strong&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&lt;em&gt;$curl_handle = curl_init();<br />
curl_setopt($curl_handle, CURLOPT_URL, &quot;$url&quot;);<br />
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);<br />
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($curl_handle, CURLOPT_POST, 1);<br />
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, &quot;status=$twitmessage&quot;);<br />
curl_setopt($curl_handle, CURLOPT_USERPWD, &quot;$username:$password&quot;);<br />
$buffer = curl_exec($curl_handle);<br />
curl_close($curl_handle);<br />
// check for success or failure<br />
if (empty($buffer)) {<br />
$twitresponse = 'Deal not posted to Twitter';<br />
} else {<br />
$twitresponse = 'Deal posted to Twitter';<br />
}&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;</div></div>
<p>Just adapt it as you need to. you can go as far as adding the url to the post. ( incorporate <a href="http://www.tiny.cc/">tiny url</a> to keep the url short ). Will post a seperate tutorial on this shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2009/03/07/getting-twitter-posts-with-curl-and-php/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Amazing Photoshop Light Effects</title>
		<link>http://www.website-ideas.co.uk/2008/09/02/amazing-photoshop-light-effects/</link>
		<comments>http://www.website-ideas.co.uk/2008/09/02/amazing-photoshop-light-effects/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 07:25:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/?p=322</guid>
		<description><![CDATA[With a quick stumble i came across these Amazing Photoshop Light Effects. Being such a big fan of photoshop, i decided to blog review it quick. These tutorials can be viewed at designerside. They feature top lighting methods that can be reproduced in your everyday web designing techniques. Please visit Designerside to view all these amazing photoshop light effect tutorial&#8217;s.]]></description>
			<content:encoded><![CDATA[<p>With a quick stumble i came across these <em>Amazing Photoshop Light Effects</em>. Being such a big fan of <strong>photoshop</strong>, i decided to blog review it quick. These tutorials can be viewed at designerside. They feature top lighting methods that can be reproduced in your everyday <strong>web designing</strong> techniques.</p>
<p><img class="alignnone size-full wp-image-323" title="1" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/1.jpg" alt="photoshop lighting" width="200" height="115" /> <img class="alignnone size-full wp-image-324" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/2.jpg" alt="photoshop lighting" width="200" height="115" /></p>
<p><img class="alignnone size-medium wp-image-325" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/3.jpg" alt="photoshop lighting" width="200" height="115" /> <img class="alignnone size-full wp-image-326" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/4.jpg" alt="photoshop lighting" width="200" height="115" /></p>
<p><img class="alignnone size-full wp-image-327" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/5.jpg" alt="photoshop lighting" width="200" height="115" /> <img class="alignnone size-full wp-image-328" title="6" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/6.jpg" alt="photoshop lighting" width="200" height="115" /><span id="more-322"></span></p>
<p><img class="alignnone size-full wp-image-329" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/7.jpg" alt="photoshop lighting" width="200" height="115" /> <img class="alignnone size-full wp-image-330" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/8.jpg" alt="photoshop lighting" width="200" height="115" /></p>
<p><img class="alignnone size-full wp-image-331" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/9.jpg" alt="photoshop lighting" width="200" height="115" /> <img class="alignnone size-full wp-image-332" title="photoshop lighting" src="http://www.website-ideas.co.uk/wp-content/uploads/2008/09/10.jpg" alt="photoshop lighting" width="200" height="115" /></p>
<p>Please visit <a href="http://designerside.com/article/20-amazing-photoshop-light-effects">Designerside</a> to view all these amazing photoshop light effect tutorial&#8217;s.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/09/02/amazing-photoshop-light-effects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Run Dreamweaver CS3 on Linux using Wine</title>
		<link>http://www.website-ideas.co.uk/2008/06/13/how-to-run-dreamweaver-cs3-on-linux-using-wine/</link>
		<comments>http://www.website-ideas.co.uk/2008/06/13/how-to-run-dreamweaver-cs3-on-linux-using-wine/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 14:58:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Tools]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/2008/06/13/how-to-run-dreamweaver-cs3-on-linux-using-wine/</guid>
		<description><![CDATA[This is for those Linux lovers and website developers!, This tutorial that i stumbled on will show you how you can run Dreamweaver CS3 on Linux using Wine. I would imagen that this will apply for all the CS3 packages. I&#8217;m using Ubuntu 8.04 Edgy Eft for this, so change these commands to match up whatever your distro uses to accomplish the same thing. Please also make sure that your Dreamweaver has been installed in your Windows partition. you need this before you can run Dreamweaver in your Linux. All right, lets get cracking on this! First, install wine if you haven&#8217;t already. Like I stated before, I&#8217;m using Ubuntu to do this, so apt-get is my choice of software installers. Your distro may be different. Consult your system docs for the correct syntax for your software package management tool. Note: Make sure you have the latest version of Wine for your distro. The current release can be downloaded here: http://www.winehq.org/site/download sudo apt-get install wine Your wine user directory and other options aren&#8217;t set up by default, so issue the winecfg command to set up the environment: winecfg which created the necessary .wine directories under my home directory. Next, copy... ]]></description>
			<content:encoded><![CDATA[<p>This is for those Linux lovers and website developers!, This tutorial that i stumbled on will show you how you can run <strong>Dreamweaver</strong> CS3 on Linux using Wine. I would imagen that this will apply for all the CS3 packages.</p>
<p>I&#8217;m using Ubuntu 8.04 Edgy Eft for this, so change these commands to match up whatever your distro uses to accomplish the same thing. Please also make sure that your <strong>Dreamweaver</strong> has been installed in your Windows partition. you need this before you can run <strong>Dreamweaver</strong> in your Linux.</p>
<p>All right, lets get cracking on this!<span id="more-211"></span></p>
<p>First, install wine if you haven&#8217;t already. Like I stated before, I&#8217;m using Ubuntu to do this, so apt-get is my choice of software installers. Your distro may be different. Consult your system docs for the correct syntax for your software package management tool.</p>
<p><strong>Note:</strong>  Make sure you have the latest version of Wine for your distro.  The current release can be downloaded here: <a href="http://www.winehq.org/site/download" title="http://www.winehq.org/site/download">http://www.winehq.org/site/download</a></p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install wine</div></div>
</blockquote>
<p>Your wine user directory and other options aren&#8217;t set up by default, so issue the winecfg command to set up the environment:</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">winecfg</div></div>
</blockquote>
<p>which created the necessary .wine directories under my home directory.</p>
<p>Next, copy the entire &#8220;C:\Program Files\Adobe&#8221; program directory from your Windows partition to the wine program directory &#8220;/home/(username)/.wine/drive_c/Program Files/&#8221; like so:</p>
<p>(my window&#8217;s partition is sda2.  yours may be different)</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cp -R /dev/sda2/Program\ Files/Adobe/* /home/(username)/.wine/drive_c/Program Files/Abobe</div></div>
</blockquote>
<p>This is a large directory, so it might take a few minutes to copy over. It also might be easier for Linux newbies to copy/paste this in the GUI.</p>
<p>After that, copy the whole &#8220;Adobe&#8221; folder from &#8220;c:\Documents and settings\All users\Application Data&#8221; to &#8220;/home/(username)/.wine/drive_c/window/profiles/all users/&#8221;</p>
<p>Then, copy the whole &#8220;c:\Windows\system32\Macromed&#8221; directory to &#8220;/home/(username)/.wine/drive_c/window/system32/Macromed/&#8221;. Notice that the &#8220;ia&#8221; is left off the end of the word &#8220;Macromedia&#8221;. This is not a typo.</p>
<p>Next, copy the whole &#8220;Adobe&#8221; folder from &#8220;c:\Program Files\Common Files&#8221; to &#8220;/home/(username)/.wine/drive_c/Program Files/Common Files/&#8221;</p>
<p>Finally, you&#8217;ll need to copy over the &#8220;c:\WINDOWS\WinSxS&#8221; directory to your Wine &#8220;windows&#8221; directory. Wine doesn&#8217;t have a WinSxS directory, so copy the whole thing over intact. Dreamweaver needs the latest C++ runtime and other assorted files from there to work properly.</p>
<p>After you have copied all of the program files and system files Dreamweaver needs to your Linux partition, you need to export the Dreamweaver registry keys. Boot back into Windows and use regedit to dump this information to a file:</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Start --&amp;gt; Run --&amp;gt; &quot;regedit&quot; (Enter)</div></div>
</blockquote>
<p>Export the entire &#8220;HKEY_LOCAL_MACHINE/Software/Macromedia/&#8221; registry key to &#8220;C:\dreamweaver.reg&#8221; and boot back into Linux.</p>
<p>Now we&#8217;ll need to convert the registry keys to ASCII format with the recode utility. Let&#8217;s install that program if it isn&#8217;t already:</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install recode</div></div>
</blockquote>
<p>Copy over the registry keys to your home directory and convert them to ascii like so:</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">recode ucs-2..ascii dreamweaver.reg</div></div>
</blockquote>
<p>And now import the keys into wine:</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wine regedit dreamweaver.reg</div></div>
</blockquote>
<p>Finished!  Now cd over to your Dreamweaver directory and run DWCS3!  Hopefully it will work&#8230;  lol</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd .wine/drive_c/Program\ Files/Adobe/Adobe\ Dreamweaver\ CS3/<br />
wine Dreamweaver.exe</div></div>
</blockquote>
<p>All done!, to find out more on other packages please feel free to visit wine&#8217;s website. I am sure this could be found on the Wine app Db.</p>
<p><span class="fullpost"><span style="font-weight: bold">Credits to:</span></span> openaddict.com/node/25  , For more details on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/06/13/how-to-run-dreamweaver-cs3-on-linux-using-wine/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to implement a Captcha system to your website</title>
		<link>http://www.website-ideas.co.uk/2008/06/02/how-to-implement-a-captcha-system-to-your-website/</link>
		<comments>http://www.website-ideas.co.uk/2008/06/02/how-to-implement-a-captcha-system-to-your-website/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 12:04:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Free Website Stuff]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Ideas]]></category>
		<category><![CDATA[Website Scripts]]></category>
		<category><![CDATA[Website Tools]]></category>
		<category><![CDATA[Captcha]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/2008/06/02/how-to-implement-a-captcha-system-to-your-website/</guid>
		<description><![CDATA[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 &#8220;Captcha&#8217;s&#8221;) which contain security codes used for protecting a form from spam bots. By encoding a &#8216;password&#8217; 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. &#60;font color=&#34;#3366ff&#34;&#62;&#60;span class=&#34;hl-inlinetags&#34;&#62;&#38;lt;?php&#60;/span&#62;&#60;span class=&#34;hl-code&#34;&#62; &#60;/span&#62;&#60;span class=&#34;hl-identifier&#34;&#62;session_start&#60;/span&#62;&#60;span class=&#34;hl-brackets&#34;&#62;()&#60;/span&#62;&#60;span class=&#34;hl-code&#34;&#62;;&#60;/span&#62;&#60;/font&#62; /** File: CaptchaSecurityImages.php* &#60;font color=&#34;#3366ff&#34;&#62;&#60;span class=&#34;hl-comment&#34;&#62;Author: Simon Jarvis* Copyright: &#60;/span&#62;&#60;/font&#62; &#60;font color=&#34;#3366ff&#34;&#62;&#60;span class=&#34;hl-comment&#34;&#62;2006 Simon Jarvis* Date: 03/08/06 * Updated: 07/02/07 * Requirements: PHP 4/5 with GD and &#60;/span&#62;&#60;/font&#62; &#60;font color=&#34;#3366ff&#34;&#62;&#60;span class=&#34;hl-comment&#34;&#62;FreeType libraries * Link: &#60;/span&#62;&#60;span class=&#34;hl-url&#34;&#62;white-hat-web-design.co.uk/articles/php-captcha.php&#60;/span&#62;&#60;span class=&#34;hl-comment&#34;&#62;* &#60;/span&#62;&#60;/font&#62; This program is free software; you can redistribute it and/or * modify it under the terms of the GNU 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 the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU... ]]></description>
			<content:encoded><![CDATA[<p> Today we look at very simple feature to which is a very important one. A Captcha Security device, to help prevent that unwanted <a href="http://www.virusremoval.co.za">spam</a>.</p>
<p>This script generates images (known as &#8220;Captcha&#8217;s&#8221;) which contain security codes used for protecting a form from spam bots. By encoding a &#8216;password&#8217; 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.<span id="more-194"></span></p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;font color=&quot;#3366ff&quot;&gt;&lt;span class=&quot;hl-inlinetags&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;<br />
&lt;/span&gt;&lt;span class=&quot;hl-identifier&quot;&gt;session_start&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;/font&gt;</div></div>
<p><span class="hl-comment"><font color="#3366ff">/** File: CaptchaSecurityImages.php* </font></span></p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;font color=&quot;#3366ff&quot;&gt;&lt;span class=&quot;hl-comment&quot;&gt;Author: Simon Jarvis* Copyright: &lt;/span&gt;&lt;/font&gt;</div></div>
</pre>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;font color=&quot;#3366ff&quot;&gt;&lt;span class=&quot;hl-comment&quot;&gt;2006 Simon Jarvis* Date: 03/08/06<br />
<br />
* Updated: 07/02/07<br />
<br />
* Requirements: PHP 4/5 with GD and &lt;/span&gt;&lt;/font&gt;</div></div>
</pre>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;font color=&quot;#3366ff&quot;&gt;&lt;span class=&quot;hl-comment&quot;&gt;FreeType libraries<br />
<br />
* Link:<br />
&lt;/span&gt;&lt;span class=&quot;hl-url&quot;&gt;white-hat-web-design.co.uk/articles/php-captcha.php&lt;/span&gt;&lt;span class=&quot;hl-comment&quot;&gt;* &lt;/span&gt;&lt;/font&gt;</div></div>
</pre>
<pre><font color="#3366ff">This program is free software; </font></pre>
<pre><font color="#3366ff">you can redistribute it and/or</font></pre>
<pre><font color="#3366ff"><span class="hl-comment">* modify it under the terms of the </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">GNU General Public License* </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">as published by the Free Software Foundation; </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">either version 2

* of the License, or (at your option) </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">any later version.

*

* This program is distributed in the </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">hope that it will be useful,

* but WITHOUT ANY WARRANTY; without even the </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">implied warranty of

* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment"> See the

* GNU General Public License for more details:

*

</span><span class="hl-url">http://www.gnu.org/licenses/gpl.html</span><span class="hl-comment">**/

</span><span class="hl-code">
</span><span class="hl-reserved">class</span><span class="hl-code"> </span><span class="hl-identifier">CaptchaSecurityImages</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-reserved">var</span><span class="hl-code"> </span><span class="hl-var">$font</span><span class="hl-code"> = </span><span class="hl-quotes">'</span><span class="hl-string">monofont.ttf</span><span class="hl-quotes">'</span><span class="hl-code">;
</span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">generateCode</span><span class="hl-brackets">(</span><span class="hl-var">$characters</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">

</span><span class="hl-comment">/* list all possible characters, similar </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">looking characters and vowels have been removed */</span><span class="hl-code">

</span><span class="hl-var">$possible</span><span class="hl-code"> = </span><span class="hl-quotes">'</span><span class="hl-string">23456789bcdfghjkmnpqrstvwxyz</span><span class="hl-quotes">'</span><span class="hl-code">;

</span><span class="hl-var">$code</span><span class="hl-code"> = </span><span class="hl-quotes">''</span><span class="hl-code">;

</span><span class="hl-var">$i</span><span class="hl-code"> = </span><span class="hl-number">0</span><span class="hl-code">;

</span><span class="hl-reserved">while</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-var">$i</span><span class="hl-code"> &lt; </span><span class="hl-var">$characters</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">

</span><span class="hl-var">$code</span><span class="hl-code"> .= </span><span class="hl-identifier">substr</span><span class="hl-brackets">(</span><span class="hl-var">$possible</span><span class="hl-code">, </span><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">, </span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"></span><span class="hl-identifier">strlen</span><span class="hl-brackets">(</span><span class="hl-var">$possible</span><span class="hl-brackets">)</span><span class="hl-code">-</span><span class="hl-number">1</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-number">1</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-var">$i</span><span class="hl-code">++;

</span><span class="hl-brackets">}</span><span class="hl-code">

</span><span class="hl-reserved">return</span><span class="hl-code"> </span><span class="hl-var">$code</span><span class="hl-code">;

</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">CaptchaSecurityImages</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code">=</span><span class="hl-quotes">'</span><span class="hl-string">120</span><span class="hl-quotes">'</span><span class="hl-code">,</span><span class="hl-var">$height</span><span class="hl-code">=</span><span class="hl-quotes">'</span><span class="hl-string">40</span><span class="hl-quotes">'</span><span class="hl-code">,</span><span class="hl-var">$characters</span><span class="hl-code">=</span><span class="hl-quotes">'</span><span class="hl-string">6</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">

</span><span class="hl-var">$code</span><span class="hl-code"> = </span><span class="hl-var">$this</span><span class="hl-code">-&gt;</span><span class="hl-identifier">generateCode</span><span class="hl-brackets">(</span><span class="hl-var">$characters</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-comment">/* font size will be 75% of the image height */</span><span class="hl-code">

</span><span class="hl-var">$font_size</span><span class="hl-code"> = </span><span class="hl-var">$height</span><span class="hl-code"> * </span><span class="hl-number">0.75</span><span class="hl-code">;

</span><span class="hl-var">$image</span><span class="hl-code"> = </span><span class="hl-identifier">imagecreate</span><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code">, </span><span class="hl-var">$height</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-reserved">or</span><span class="hl-code"> </span><span class="hl-reserved">die</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">Cannot initialize new GD image stream</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-comment">/* set the colours */</span><span class="hl-code">

</span><span class="hl-var">$background_color</span><span class="hl-code"> = </span><span class="hl-identifier">imagecolorallocate</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-code">, </span><span class="hl-number">255</span><span class="hl-code">, </span><span class="hl-number">255</span><span class="hl-code">, </span><span class="hl-number">255</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-var">$text_color</span><span class="hl-code"> = </span><span class="hl-identifier">imagecolorallocate</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-code">, </span><span class="hl-number">20</span><span class="hl-code">, </span><span class="hl-number">40</span><span class="hl-code">, </span><span class="hl-number">100</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-var">$noise_color</span><span class="hl-code"> = </span><span class="hl-identifier">imagecolorallocate</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-code">, </span><span class="hl-number">100</span><span class="hl-code">, </span><span class="hl-number">120</span><span class="hl-code">, </span><span class="hl-number">180</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-comment">/* generate random dots in background */</span><span class="hl-code">

</span><span class="hl-reserved">for</span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-var">$i</span><span class="hl-code">=</span><span class="hl-number">0</span><span class="hl-code">; </span><span class="hl-var">$i</span><span class="hl-code">&lt;</span><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code">*</span><span class="hl-var">$height</span><span class="hl-brackets">)</span><span class="hl-code">/</span><span class="hl-number">3</span><span class="hl-code">; </span><span class="hl-var">$i</span><span class="hl-code">++ </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">

</span><span class="hl-identifier">imagefilledellipse</span><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-code">, </span><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">,</span><span class="hl-var">$width</span><span class="hl-brackets">)</span><span class="hl-code">, </span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"></span><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">,</span><span class="hl-var">$height</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-number">1</span><span class="hl-code">, </span><span class="hl-number">1</span><span class="hl-code">, </span><span class="hl-var">$noise_color</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-brackets">}</span><span class="hl-code">

</span><span class="hl-comment">/* generate random lines in background */</span><span class="hl-code">

</span><span class="hl-reserved">for</span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-var">$i</span><span class="hl-code">=</span><span class="hl-number">0</span><span class="hl-code">; </span><span class="hl-var">$i</span><span class="hl-code">&lt;</span><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code">*</span><span class="hl-var">$height</span><span class="hl-brackets">)</span><span class="hl-code">/</span><span class="hl-number">150</span><span class="hl-code">; </span><span class="hl-var">$i</span><span class="hl-code">++ </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">

</span><span class="hl-identifier">imageline</span><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-code">, </span><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">,</span><span class="hl-var">$width</span><span class="hl-brackets">)</span><span class="hl-code">,</span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"> </span><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">,</span><span class="hl-var">$height</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-identifier"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">,</span><span class="hl-var">$width</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-identifier">mt_rand</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-code">,</span><span class="hl-var">$height</span><span class="hl-brackets">)</span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets"></span><span class="hl-code">, </span><span class="hl-var">$noise_color</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-brackets">}</span><span class="hl-code">

</span><span class="hl-comment">/* create textbox and add text */</span><span class="hl-code">

</span><span class="hl-var">$textbox</span><span class="hl-code"> = </span><span class="hl-identifier">imagettfbbox</span><span class="hl-brackets">(</span><span class="hl-var">$font_size</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-code">, </span><span class="hl-var"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-var">$this</span><span class="hl-code">-&gt;</span><span class="hl-identifier">font</span><span class="hl-code">, </span><span class="hl-var">$code</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-reserved">or</span><span class="hl-code"> </span><span class="hl-reserved">die</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">Error in imagettfbbox function</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-var">$x</span><span class="hl-code"> = </span><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code"> - </span><span class="hl-var">$textbox</span><span class="hl-brackets">[</span><span class="hl-number">4</span><span class="hl-brackets">])</span><span class="hl-code">/</span><span class="hl-number">2</span><span class="hl-code">;

</span><span class="hl-var">$y</span><span class="hl-code"> = </span><span class="hl-brackets">(</span><span class="hl-var">$height</span><span class="hl-code"> - </span><span class="hl-var">$textbox</span><span class="hl-brackets">[</span><span class="hl-number">5</span><span class="hl-brackets">])</span><span class="hl-code">/</span><span class="hl-number">2</span><span class="hl-code">;

</span><span class="hl-identifier">imagettftext</span><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-code">, </span><span class="hl-var">$font_size</span><span class="hl-code">, </span><span class="hl-number">0</span><span class="hl-code">,</span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"> </span><span class="hl-var">$x</span><span class="hl-code">, </span><span class="hl-var">$y</span><span class="hl-code">, </span><span class="hl-var">$text_color</span><span class="hl-code">, </span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"></span><span class="hl-var">$this</span><span class="hl-code">-&gt;</span><span class="hl-identifier">font</span><span class="hl-code"> , </span><span class="hl-var">$code</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-reserved">or</span><span class="hl-code"> </span><span class="hl-reserved">die</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">Error in imagettftext function</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-comment">/* output captcha image to browser */</span><span class="hl-code">

</span><span class="hl-identifier">header</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">Content-Type: image/jpeg</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-identifier">imagejpeg</span><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-identifier">imagedestroy</span><span class="hl-brackets">(</span><span class="hl-var">$image</span><span class="hl-brackets">)</span><span class="hl-code">;

</span><span class="hl-var">$_SESSION</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">security_code</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> = </span><span class="hl-var">$code</span><span class="hl-code">;

</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-brackets">}</span></font><span class="hl-code"><font color="#3366ff"> </font>

</span><font color="#3366ff"><span class="hl-var">$width</span><span class="hl-code"> = </span><span class="hl-reserved">isset</span><span class="hl-brackets">(</span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">width</span><span class="hl-quotes">'</span><span class="hl-brackets">])</span><span class="hl-code"> &amp;&amp; </span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"></span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">height</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> &lt; </span><span class="hl-number">600</span><span class="hl-code"> ? </span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">width</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> : </span><span class="hl-quotes">'</span><span class="hl-string">120</span><span class="hl-quotes">'</span><span class="hl-code">;

</span><span class="hl-var">$height</span><span class="hl-code"> = </span><span class="hl-reserved">isset</span><span class="hl-brackets">(</span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">height</span><span class="hl-quotes">'</span><span class="hl-brackets">])</span><span class="hl-code"> &amp;&amp; </span></font></pre>
<pre><font color="#3366ff"><span class="hl-code"></span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">height</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> &lt; </span><span class="hl-number">200</span><span class="hl-code"> ? </span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">height</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> : </span><span class="hl-quotes">'</span><span class="hl-string">40</span><span class="hl-quotes">'</span><span class="hl-code">;

</span><span class="hl-var">$characters</span><span class="hl-code"> = </span><span class="hl-reserved">isset</span><span class="hl-brackets">(</span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">characters</span><span class="hl-quotes">'</span><span class="hl-brackets">])</span><span class="hl-code"> &amp;&amp; </span><span class="hl-var"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">characters</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> &gt; </span><span class="hl-number">2</span><span class="hl-code"> ? </span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">characters</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> : </span><span class="hl-quotes">'</span><span class="hl-string">6</span><span class="hl-quotes">'</span><span class="hl-code">;
</span><span class="hl-var">$captcha</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">CaptchaSecurityImages</span><span class="hl-brackets"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-brackets">(</span><span class="hl-var">$width</span><span class="hl-code">,</span><span class="hl-var">$height</span><span class="hl-code">,</span><span class="hl-var">$characters</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-inlinetags">?&gt;</span></font></pre>
</blockquote>
<p>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 &#8220;Monofont&#8221; font in the same directory as the CaptchaSecurityImages.php file. (Alternatively you can replace the line var $font = &#8216;monofont.ttf&#8217;; with the name of whatever font you want to use)download You can download the <a href="http://www.white-hat-web-design.co.uk/articles/captcha.zip">captcha zip</a> which contains all the files needed to implement the script including the required font.</p>
<p>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.</p>
<pre>
<font color="#3366ff">
</font><font color="#3366ff">&lt;img src="CaptchaSecurityImages.php" /&gt;</font>

<font color="#3366ff">
</font><font color="#3366ff">Security Code:</font>

<font color="#3366ff">
</font><font color="#3366ff">&lt;input id="security_code" name=</font></pre>
<pre><font color="#3366ff">"security_code" type="text" /&gt;</font></pre>
<p>You can also specify certain options for the image by passing them as variables to CaptchaSecurityImages.php.</p>
<p>The options available are the width and height of the image and the number of characters</p>
<pre>
<font color="#3366ff">
</font><font color="#3366ff">&lt;img src="CaptchaSecurityImages.php?</font>

<font color="#3366ff">width=100&amp;height=40&amp;characters=5" alt="captcha" /&gt;</font>

<font color="#3366ff">
</font><font color="#3366ff">&lt;input id="security_code" </font></pre>
<pre><font color="#3366ff">name="security_code" type="text" /&gt;</font></pre>
<p class="hl-main">&nbsp;</p>
<pre><font color="#3366ff"><span class="hl-inlinetags">&lt;?php</span><span class="hl-code">
</span><span class="hl-identifier">session_start</span><span class="hl-brackets">()</span><span class="hl-code">;
</span><span class="hl-reserved">if</span><span class="hl-brackets">((</span><span class="hl-var">$_SESSION</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">security_code</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code"> == </span><span class="hl-var"></span></font></pre>
<pre><font color="#3366ff"><span class="hl-var">$_POST</span><span class="hl-brackets">[ </span><span class="hl-quotes"></span><span class="hl-string">security_code</span><span class="hl-quotes">'</span><span class="hl-brackets">])</span><span class="hl-code"> </span></font></pre>
<pre><font color="#3366ff"><span class="hl-code">&amp;&amp; </span><span class="hl-brackets">(</span><span class="hl-code">!</span><span class="hl-reserved">empty</span><span class="hl-brackets">(</span><span class="hl-var">$_SESSION</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">security_code</span><span class="hl-quotes">'</span><span class="hl-brackets">]))</span><span class="hl-code"> </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-comment">// Insert you code for processing the form here, </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">e.g emailing the submission, </span></font></pre>
<pre><font color="#3366ff"><span class="hl-comment">entering it into a database. </span><span class="hl-code">
</span><span class="hl-reserved">unset</span><span class="hl-brackets">(</span><span class="hl-var">$_SESSION</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">security_code</span><span class="hl-quotes">'</span><span class="hl-brackets">])</span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code"> </span><span class="hl-reserved">else</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-comment">// Insert your code for showing an error message here</span><span class="hl-code">
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-inlinetags">?&gt;</span></font></pre>
<p>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</p>
<pre></pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/06/02/how-to-implement-a-captcha-system-to-your-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Make fancy buttons using CSS sliding doors technique</title>
		<link>http://www.website-ideas.co.uk/2008/05/26/make-fancy-buttons-using-css-sliding-doors-technique/</link>
		<comments>http://www.website-ideas.co.uk/2008/05/26/make-fancy-buttons-using-css-sliding-doors-technique/#comments</comments>
		<pubDate>Mon, 26 May 2008 13:01:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Ideas]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/2008/05/26/make-fancy-buttons-using-css-sliding-doors-technique/</guid>
		<description><![CDATA[This article will show you how to create fancy buttons using CSS sliding doors technique. It is much better to use this technique than to use image buttons because you can apply the style to any link and at the same time you don&#8217;t have to create an image for each button. The ultimate Css for your website. website ideas with great inspiration What is sliding doors technique? The technique is very simple. If we want to have a dynamic-width button, we have to find a way to stretch it horizontally. We will accomplish this if we create two background images that will define the button: one for the left side and one for the right side &#8211; like in the example below. LEFT                                                                            RIGHT Smaller, right image will slide on the top of the larger, left image (that why it is called sliding doors). The more right image slides to the left, the narrower button will be and vice versa. The image below shows the technique. Styling the button First, let&#8217;s take a look at the HTML elements that will simulate button. We have &#60;span&#62; element within the &#60;a&#62; element. Span element contains left, wider image and text. The... ]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to create fancy buttons using <strong>CSS sliding doors technique</strong>. It is much better to use this technique than to use image buttons because you can apply the style to any link and at the same time you don&#8217;t have to create an image for each button. The ultimate Css for your website. <strong>website ideas</strong> with great inspiration</p>
<p><strong>What is sliding doors technique?</strong></p>
<p>The technique is very simple. If we want to have a dynamic-width button, we have to find a way to stretch it horizontally. We will accomplish this if we create two background images that will define the button: one for the left side and one for the right side &#8211; like in the example below.</p>
<p>LEFT                                                                            RIGHT</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/14.jpg" alt="14.jpg" /><span id="more-180"></span></p>
<p>Smaller, right image will slide on the top of the larger, left image (that why it is called sliding doors). The more right image slides to the left, the narrower button will be and vice versa. The image below shows the technique.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/21.jpg" alt="21.jpg" /></p>
<p><strong>Styling the button</strong></p>
<p>First, let&#8217;s take a look at the HTML elements that will simulate button. We have &lt;span&gt; element within the &lt;a&gt; element. Span element contains left, wider image and text. The width of the text will determine the size of the button.</p>
<pre class="code"><span style="color: blue">&lt;</span><span style="color: #a31515">a </span><span style="color: red">class</span><span style="color: blue">="button" </span><span style="color: red">href</span><span style="color: blue">="#"&gt;&lt;</span><span style="color: #a31515">span</span><span style="color: blue">&gt;</span>Submit<span style="color: blue">&lt;/</span><span style="color: #a31515">span</span><span style="color: blue">&gt;&lt;/</span><span style="color: #a31515">a</span><span style="color: blue">&gt;</span></pre>
<p>Now let&#8217;s take a look at the CSS code. We have a <strong>.button</strong> class that will be applied to &lt;a&gt; element and <strong>.button span</strong> class that will be applied to &lt;span&gt; element within &lt;a&gt; element. We also have <strong>.button:hover span</strong> that will change the font style within &lt;span&gt; element.  And that&#8217;s all. Simple, eh? The comments in the code below describes each element.<br />
<quote><br />
</quote></p>
<pre class="code"><span style="color: #a31515">a.button </span>{<span style="color: green">    /* Sliding right image */</span><span style="color: red">background</span>:</pre>
<pre class="code"><span style="color: blue">transparent url('button_right.png') no-repeat scroll top right</span>; <span style="color: green"></span>

<span style="color: red">display</span>: <span style="color: blue">block</span>;

<span style="color: red">float</span>: <span style="color: blue">left</span>;

<span style="color: red">height</span>: <span style="color: blue">32px</span>; <span style="color: green">/* </span></pre>
<pre class="code"><span style="color: green">CHANGE THIS VALUE ACCORDING TO IMAGE HEIGHT */</span>

<span style="color: red">margin-right</span>: <span style="color: blue">6px</span>;

<span style="color: red">padding-right</span>: <span style="color: blue">20px</span>; <span style="color: green">/* </span></pre>
<pre class="code"><span style="color: green">CHENGE THIS VALUE ACCORDING TO RIGHT IMAGE WIDTH */</span>

/* FONT PROPERTIES */

<span style="color: red">text-decoration</span>: <span style="color: blue">none</span>;

<span style="color: red">color</span>: <span style="color: blue">#000000</span>;

<span style="color: red">font-family</span>: <span style="color: blue">Arial, Helvetica, sans-serif</span>;

<span style="color: red">font-size</span>:<span style="color: blue">12px</span>;

<span style="color: red">font-weight</span>:<span style="color: blue">bold</span>;

}<span style="color: #a31515">a.button span </span>{

<span style="color: green">/* Background left image */ </span>

<span style="color: red">background</span>: <span style="color: blue">transparent url('button_left.png') no-repeat</span>;

<span style="color: red">display</span>: <span style="color: blue">block</span>;

<span style="color: red">line-height</span>: <span style="color: blue">22px</span>; <span style="color: green">/* </span></pre>
<pre class="code"><span style="color: green">CHANGE THIS VALUE ACCORDING TO BUTTONG HEIGHT */</span>

<span style="color: red">padding</span>: <span style="color: blue">7px 0 5px 18px</span>;

}

<span style="color: #a31515">a.button:hover span</span>{

<span style="color: red">text-decoration</span>:<span style="color: blue">underline</span>;</pre>
<pre class="code">
}</pre>
<pre class="code"></pre>
<pre class="code"></pre>
<p>The result will look like the examples below.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/41.jpg" alt="41.jpg" /></p>
<p>Please visit  www.jankoatwarpspeed.com for more information with regards to this technique.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/05/26/make-fancy-buttons-using-css-sliding-doors-technique/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Adobe Photoshop Tutorials &#8211; Part 2 of 5</title>
		<link>http://www.website-ideas.co.uk/2008/05/26/adobe-photoshop-tutorials-part-2-of-5/</link>
		<comments>http://www.website-ideas.co.uk/2008/05/26/adobe-photoshop-tutorials-part-2-of-5/#comments</comments>
		<pubDate>Mon, 26 May 2008 06:37:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Ideas]]></category>
		<category><![CDATA[Photoshop Ideas]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/2008/05/26/adobe-photoshop-tutorials-part-2-of-5/</guid>
		<description><![CDATA[Create shape and duplicate First you create a triangular shape. You can select a triangle from the Custom Shape palette and flip it upside down (Edit &#62; Transform &#62; Flip Vertically). Duplicate this shape layer using command/control + J. Now hit command/control + T (Edit &#62; Free Transform) to rotate this shape. First move the middle point down to towards the center. Duplicate and transform again Now put your cursor outside the shape so you see the curved rotate cursor and rotate the shape as shown in the example below and press enter. Duplicate the layer again by pressing command/control + J and transform again by pressing command/control shift + T. Repeat this till you have a complete ray. Just press command/control + J followed by command/control shift + T. Add color Now you can give each Shape Layer a different color. My end result I decided not to use the different colors and ended up with a totally other result. I hope you don&#8217;t mind I wasn&#8217;t in a flashy mood Create shapes and duplicate  ( By Veerle’s Blog ) To learn more on this please visit Veerle’s]]></description>
			<content:encoded><![CDATA[<h4>Create shape and duplicate</h4>
<p>First you create a triangular shape. You can select a triangle from the Custom Shape palette and flip it upside down (Edit &gt; Transform &gt; Flip Vertically). Duplicate this shape layer using command/control + J. Now hit command/control + T (Edit &gt; Free Transform) to rotate this shape. First move the middle point down to towards the center.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/13.jpg" alt="13.jpg" width="400" height="190" /><span id="more-175"></span></p>
<h4>Duplicate and transform again</h4>
<p>Now put your cursor outside the shape so you see the curved rotate cursor and rotate the shape as shown in the example below and press enter. Duplicate the layer again by pressing command/control + J and transform again by pressing command/control shift + T. Repeat this till you have a complete ray. Just press command/control + J followed by command/control shift + T.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/2.jpg" alt="2.jpg" /></p>
<h4>Add color</h4>
<p>Now you can give each Shape Layer a different color.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/3.jpg" alt="3.jpg" /></p>
<h4>My end result</h4>
<p>I decided not to use the different colors and ended up with a totally other result. I hope you don&#8217;t mind I wasn&#8217;t in a flashy mood <img src='http://www.website-ideas.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/05/4.jpg" alt="4.jpg" /></p>
<p>Create shapes and duplicate  ( By <span class="by"><a href="http://veerle.duoh.com">Veerle’s Blog</a> ) To learn more on this please visit Veerle’s</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/05/26/adobe-photoshop-tutorials-part-2-of-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS tricks and tips</title>
		<link>http://www.website-ideas.co.uk/2008/04/09/css-tricks-and-tips/</link>
		<comments>http://www.website-ideas.co.uk/2008/04/09/css-tricks-and-tips/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 13:44:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles By Others]]></category>
		<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/2008/04/09/css-tricks-and-tips/</guid>
		<description><![CDATA[I have compiled a list of articles that better explain valid CSS and xHTML code. It&#8217;s becoming more commonly to use valid CSS. And we all know how much time we are spending in all those hacks and fixes for various browsers. I will keep adding to this list, so stay tuned. 1. Rounded corners without images &#60;div id=”container”&#62; &#60;b class=”rtop”&#62; &#60;b class=”r1″&#62;&#60;/b&#62; &#60;b class=”r2″&#62;&#60;/b&#62; &#60;b class=”r3″&#62;&#60;/b&#62; &#60;b class=”r4″&#62;&#60;/b&#62; &#60;/b&#62; &#60;!–content goes here –&#62; &#60;b class=”rbottom”&#62; &#60;b class=”r4″&#62;&#60;/b&#62; &#60;b class=”r3″&#62;&#60;/b&#62; &#60;b class=”r2″&#62;&#60;/b&#62; &#60;b class=”r1″&#62;&#60;/b&#62; &#60;/b&#62; &#60;/div&#62; .rtop, .rbottom{display:block} .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden} .r1{margin: 0 5px} .r2{margin: 0 3px} .r3{margin: 0 2px} .r4{margin: 0 1px; height: 2px} 2. Style your order list &#60;ol&#62; &#60;li&#62; &#60;p&#62;This is line one&#60;/p&#62; &#60;/li&#62; &#60;li&#62; &#60;p&#62;Here is line two&#60;/p&#62; &#60;/li&#62; &#60;li&#62; &#60;p&#62;And last line&#60;/p&#62; &#60;/li&#62; &#60;/ol&#62; ol { font: italic 1em Georgia, Times, serif; color: #999999; } ol p { font: normal .8em Arial, Helvetica, sans-serif; color: #000000; } 3. Tableless forms &#60;form&#62; &#60;label for=”name”&#62;Name&#60;/label&#62; &#60;input id=”name” name=”name”&#62;&#60;br&#62; &#60;label for=”address”&#62;Address&#60;/label&#62; &#60;input id=”address” name=”address”&#62;&#60;br&#62; &#60;label for=”city”&#62;City&#60;/label&#62; &#60;input id=”city” name=”city”&#62;&#60;br&#62; &#60;/form&#62; label,input { display: block; width: 150px; float: left; margin-bottom: 10px; } label { text-align: right; width: 75px; padding-right: 20px; } br {... ]]></description>
			<content:encoded><![CDATA[<p>I have compiled a list of articles that better explain valid CSS and xHTML code. It&#8217;s becoming more commonly to use valid CSS. And we all  know how much time we are spending in all those hacks and fixes for various browsers. I will keep adding to this list, so stay tuned.<span id="more-82"></span></p>
<h5>1. Rounded corners without images</h5>
<p class="kod"> &lt;div id=”container”&gt;<br />
&lt;b class=”rtop”&gt;<br />
&lt;b class=”r1″&gt;&lt;/b&gt; &lt;b class=”r2″&gt;&lt;/b&gt; &lt;b class=”r3″&gt;&lt;/b&gt; &lt;b class=”r4″&gt;&lt;/b&gt;<br />
&lt;/b&gt;<br />
&lt;!–content goes here –&gt;<br />
&lt;b class=”rbottom”&gt;<br />
&lt;b class=”r4″&gt;&lt;/b&gt; &lt;b class=”r3″&gt;&lt;/b&gt; &lt;b class=”r2″&gt;&lt;/b&gt; &lt;b class=”r1″&gt;&lt;/b&gt;<br />
&lt;/b&gt;<br />
&lt;/div&gt;</p>
<p>.rtop, .rbottom{display:block}<br />
.rtop *, .rbottom *{display: block; height: 1px; overflow: hidden}<br />
.r1{margin: 0 5px}<br />
.r2{margin: 0 3px}<br />
.r3{margin: 0 2px}<br />
.r4{margin: 0 1px; height: 2px}</p>
<h5>2.    Style your order list</h5>
<p class="kod"> &lt;ol&gt;<br />
&lt;li&gt;<br />
&lt;p&gt;This is line one&lt;/p&gt;<br />
&lt;/li&gt;<br />
&lt;li&gt;<br />
&lt;p&gt;Here is line two&lt;/p&gt;<br />
&lt;/li&gt;<br />
&lt;li&gt;<br />
&lt;p&gt;And last line&lt;/p&gt;<br />
&lt;/li&gt;<br />
&lt;/ol&gt;</p>
<p>ol {<br />
font: italic 1em Georgia, Times, serif;<br />
color: #999999;<br />
}</p>
<p>ol p {<br />
font: normal .8em Arial, Helvetica, sans-serif;<br />
color: #000000;<br />
}</p>
<h5>3.    Tableless forms</h5>
<p class="kod"> &lt;form&gt;<br />
&lt;label for=”name”&gt;Name&lt;/label&gt;<br />
&lt;input id=”name” name=”name”&gt;&lt;br&gt;<br />
&lt;label for=”address”&gt;Address&lt;/label&gt;<br />
&lt;input id=”address” name=”address”&gt;&lt;br&gt;<br />
&lt;label for=”city”&gt;City&lt;/label&gt;<br />
&lt;input id=”city” name=”city”&gt;&lt;br&gt;<br />
&lt;/form&gt;</p>
<p>label,input {<br />
display: block;<br />
width: 150px;<br />
float: left;<br />
margin-bottom: 10px;<br />
}</p>
<p>label {<br />
text-align: right;<br />
width: 75px;<br />
padding-right: 20px;<br />
}</p>
<p>br {<br />
clear: left;<br />
}</p>
<h5>4.    Double blockquote</h5>
<p class="kod"> blockquote:first-letter {<br />
background: url(images/open-quote.gif) no-repeat left top;<br />
padding-left: 18px;<br />
font: italic 1.4em Georgia, “Times New Roman”, Times, serif;<br />
}</p>
<h5>5. Gradient text effect</h5>
<p class="kod"> &lt;h1&gt;&lt;span&gt;&lt;/span&gt;CSS Gradient Text&lt;/h1&gt;</p>
<p>h1 {<br />
font: bold 330%/100% “Lucida Grande”;<br />
position: relative;<br />
color: #464646;<br />
}<br />
h1 span {<br />
background: url(gradient.png) repeat-x;<br />
position: absolute;<br />
display: block;<br />
width: 100%;<br />
height: 31px;<br />
}</p>
<p>&lt;!–[if lt IE 7]&gt;<br />
&lt;style&gt;<br />
h1 span {<br />
background: none;<br />
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’gradient.png’, sizingMethod=’scale’);<br />
}<br />
&lt;/style&gt;<br />
&lt;![endif]–&gt;</p>
<p>For more in depth look please visit <a href="http://stylizedweb.com/2008/02/14/10-best-css-hacks/">stylized web</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/04/09/css-tricks-and-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe Photoshop Tutorials &#8211; Part 1 of 5</title>
		<link>http://www.website-ideas.co.uk/2008/04/05/adobe-photoshop-tutorials-part-1-of-5/</link>
		<comments>http://www.website-ideas.co.uk/2008/04/05/adobe-photoshop-tutorials-part-1-of-5/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 10:02:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Tools]]></category>

		<guid isPermaLink="false">http://www.website-ideas.co.uk/2008/04/05/adobe-photoshop-tutorials-part-1-of-5/</guid>
		<description><![CDATA[In this 5 part series we will be covering different styles and technique&#8217;s that can be used in Adobe Photoshop. From light motion trails to glowing sparks. Here you will learn to create beams, glows, motion trails, rainbows, and other lighting effects, giving your images ambiance and depth. Creating light motion trails &#38; glowing sparks ( By Veerle&#8217;s Blog ) To learn more on this please visit Veerle&#8217;s A technique often used in advertising these days, is these glowing lines. They look like light motion trails. If you ever wondered how to create these kind of lines, here is how I do it… Light motion trails Drawing a line Draw a nice thin curved filled line in Photoshop using the Pen tool. Add a glow Double click the shape layer on the right to activate the Effects. Check the Outer Glow option and play with the color, transparency,&#8230; That&#8217;s basically it. I think the hardest part is finding the exact setting and drawing the exact line you want. Glowing sparks Create the right brush Create a brush using the following settings. Choose the default Soft Round 21 px brush. Go to the Brushes palette and edit the following settings: Change... ]]></description>
			<content:encoded><![CDATA[<p>In this 5 part series we will be covering different styles and technique&#8217;s that can be used in <a href="http://www.adobe.com/"><strong>Adobe Photoshop</strong></a>. From light motion trails to <strong>glowing sparks</strong>. Here you will learn to create <strong>beams</strong>, <strong>glows</strong>, <strong>motion</strong> <strong>trails</strong>, <strong>rainbows</strong>, and other<strong> lighting effects</strong>, giving your images ambiance and depth.<span id="more-75"></span></p>
<p><strong>Creating light motion trails &amp; glowing sparks</strong> ( By <span class="by"><a href="http://veerle.duoh.com/blog/comments/creating_light_motion_trails_glowing_spark/">Veerle&#8217;s Blog</a> ) To learn more on this please visit Veerle&#8217;s </span></p>
<p>A technique often used in advertising these days, is these glowing lines. They look like light motion trails. If you ever wondered how to create these kind of lines, here is how I do it…</p>
<h4>Light motion trails<!--</p>
<h4--></h4>
<h5>Drawing a line</h5>
<p>Draw a nice thin curved filled line in Photoshop using the Pen tool.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/04/11.jpg" alt="11.jpg" /></p>
<h5><strong>Add a glow</strong></h5>
<p>Double click the shape layer on the right to activate the Effects. Check the Outer Glow option and play with the color, transparency,&#8230; That&#8217;s basically it. I think the hardest part is finding the exact setting and drawing the exact line you want.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/04/21.jpg" alt="21.jpg" /></p>
<h4>Glowing sparks</h4>
<h5>Create the right brush</h5>
<p>Create a brush using the following settings. Choose the default Soft Round 21 px brush. Go to the Brushes palette and edit the following settings:</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/04/3.jpg" alt="3.jpg" /></p>
<ul>
<li>Change the spacing in the Brush Tip Shape to 222%</li>
<li>Check Shape Dynamics and change the Size Jitter to 100%</li>
<li>Check Scattering, check Both Axes and put the Scatter to 775%</li>
</ul>
<h5>Draw a random line using the brush</h5>
<p>Choose a light color that will match perfect for the glowing sparkling dots. Draw a random line using the brush. That&#8217;s it <img src='http://www.website-ideas.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/04/4.jpg" alt="4.jpg" /></p>
<p><strong> Trail of stars</strong></p>
<p>As an extra we create a trail of stars. Launch Illustrator, create a new document and draw a group of random stars using the Star shape tool. You can use a circle as a guide (draw a circle and hit command/control + 5). Select all stars and drag them in the Symbols palette. Now select the Symbol Sprayer tool, choose the stars as symbol to spray with and draw the trail. You may need to experiment a bit with the Symbol Sprayer tool settings. Do this by double clicking the Symbol Sprayer tool in the Toolbox. If you got your trail, select all stars and go to Object &gt; Expand. Select all stars, go to Photoshop and paste your stars as a Shape Layer. Fill them in the color you want, add some transparency or a gradient mask etc. Play around.</p>
<p><img src="http://www.website-ideas.co.uk/wp-content/uploads/2008/04/5.jpg" alt="5.jpg" /></p>
<p>Creating light motion trails &amp; glowing sparks ( By <span class="by"><a href="http://veerle.duoh.com/blog/comments/creating_light_motion_trails_glowing_spark/">Veerle&#8217;s Blog</a> ) To learn more on this please visit Veerle&#8217;s</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.website-ideas.co.uk/2008/04/05/adobe-photoshop-tutorials-part-1-of-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

