<?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/"
	>

<channel>
	<title>Sam Burdge &#187; development</title>
	<atom:link href="http://www.samburdge.co.uk/category/development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.samburdge.co.uk</link>
	<description>Smarter Than The Average Blog</description>
	<pubDate>Sat, 18 Jun 2011 11:05:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Wiki site for Football FanCast</title>
		<link>http://www.samburdge.co.uk/development/new-wiki-site-for-football-fancast</link>
		<comments>http://www.samburdge.co.uk/development/new-wiki-site-for-football-fancast#comments</comments>
		<pubDate>Mon, 20 Jul 2009 17:30:31 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[portfolio]]></category>

		<category><![CDATA[fans wiki]]></category>

		<category><![CDATA[football]]></category>

		<category><![CDATA[mediawiki]]></category>

		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=750</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/07/fanswiki-screen.jpg"  rel="lightbox-750"><img class="alignnone size-thumbnail wp-image-751" title="fanswiki-screen" src="http://www.samburdge.co.uk/wp-content/uploads/2009/07/fanswiki-screen.jpg" alt="fanswiki-screen" width="150" height="81" /></a></p>
<p>I have recently been working on my first project on the <a href="http://www.mediawiki.org/" target="_blank">MediaWiki</a> platform, a football wiki site for <a href="http://www.footballfancast.com" target="_blank">FootballFanCast.com</a>. The <a href="http://www.footballfancast.com/wiki" target="_blank">Football Fans Wiki</a> is a wiki written from the fans perspective, with information about each team's stadium, transport info, where to eat &amp; drink locally, songs, programmes, merchandise store, links,video clips &amp; more.</p>
<p>Key features that I added as MediaWiki extensions:</p>
<ul>
<li>Register and login from the FFC site instead of through MediaWiki itself</li>
<li>News &amp; blog feeds on the wiki homepage</li>
</ul>
<p>Check it out now: <a href="http://www.footballfancast.com/wiki" target="_blank">Fans Wiki</a></p>
<p><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/moz-screenshot.png" alt="" /></p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/07/fanswiki-screen.jpg"  rel="lightbox-750"><img class="alignnone size-thumbnail wp-image-751" title="fanswiki-screen" src="http://www.samburdge.co.uk/wp-content/uploads/2009/07/fanswiki-screen.jpg" alt="fanswiki-screen" width="150" height="81" /></a></p>
<p>I have recently been working on my first project on the <a href="http://www.mediawiki.org/" target="_blank">MediaWiki</a> platform, a football wiki site for <a href="http://www.footballfancast.com" target="_blank">FootballFanCast.com</a>. The <a href="http://www.footballfancast.com/wiki" target="_blank">Football Fans Wiki</a> is a wiki written from the fans perspective, with information about each team's stadium, transport info, where to eat &amp; drink locally, songs, programmes, merchandise store, links,video clips &amp; more.</p>
<p>Key features that I added as MediaWiki extensions:</p>
<ul>
<li>Register and login from the FFC site instead of through MediaWiki itself</li>
<li>News &amp; blog feeds on the wiki homepage</li>
</ul>
<p>Check it out now: <a href="http://www.footballfancast.com/wiki" target="_blank">Fans Wiki</a></p>
<p><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/moz-screenshot.png" alt="" /></p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/new-wiki-site-for-football-fancast/feed</wfw:commentRss>
		</item>
		<item>
		<title>New e-commerce module for Admin76 CMS</title>
		<link>http://www.samburdge.co.uk/blog/new-e-commerce-module-for-admin76-cms</link>
		<comments>http://www.samburdge.co.uk/blog/new-e-commerce-module-for-admin76-cms#comments</comments>
		<pubDate>Fri, 26 Jun 2009 00:16:17 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[admin76]]></category>

		<category><![CDATA[cart76]]></category>

		<category><![CDATA[e-commerce]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=739</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>I have been working for some months now to develop an e-commerce module for <a href="http://www.samburdge.co.uk/development/admin76-web-content-management-system" target="_self">Admin76</a>,  the CMS which is currently exclusive to 76 Creative. The e-commerce module, called Cart76, utilises many of the nice features of Admin76 such as drag n drop functionality, advanced image gallery management, etc. It is now in it's final stages of development, so if you are interested in running your self-managed site on the Admin76 platform, or if you require a self-managed online store please <a href="http://www.76creative.com/contact.php" target="_blank">contact <a href="http://www.76creative.com/" class="kblinker" target="_blank" title="More about 76 Creative &raquo;">76 Creative</a></a> for more info.</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>I have been working for some months now to develop an e-commerce module for <a href="http://www.samburdge.co.uk/development/admin76-web-content-management-system" target="_self">Admin76</a>,  the CMS which is currently exclusive to 76 Creative. The e-commerce module, called Cart76, utilises many of the nice features of Admin76 such as drag n drop functionality, advanced image gallery management, etc. It is now in it's final stages of development, so if you are interested in running your self-managed site on the Admin76 platform, or if you require a self-managed online store please <a href="http://www.76creative.com/contact.php" target="_blank">contact <a href="http://www.76creative.com/" class="kblinker" target="_blank" title="More about 76 Creative &raquo;">76 Creative</a></a> for more info.</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/blog/new-e-commerce-module-for-admin76-cms/feed</wfw:commentRss>
		</item>
		<item>
		<title>WordPress attachments hack</title>
		<link>http://www.samburdge.co.uk/blog/wordpress-attachments-hack</link>
		<comments>http://www.samburdge.co.uk/blog/wordpress-attachments-hack#comments</comments>
		<pubDate>Tue, 09 Jun 2009 15:19:06 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[scripts]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[excerpt]]></category>

		<category><![CDATA[function]]></category>

		<category><![CDATA[hack]]></category>

		<category><![CDATA[permalink]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=736</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>While working on a <a href="http://wordpress.org/" class="kblinker" target="_blank" title="More about wordpress &raquo;">WordPress</a> site recently I came up against a problem that had never occurred to me before. The client wanted each post excerpt on the homepage to include an image which when clicked would link to the main post (permalink) itself. The built in functions of wordpress when inserting an image allow you to link to either the 'File URL' (i.e. the full size version of the image) or to the 'Post URL' which is actually an attachment page in wordpress which displays the image, but does not include the text of the actual post itself. However, without either editing the <a href="http://www.w3.org/TR/html401/" class="kblinker" target="_blank" title="More about html &raquo;">html</a> of each post (not an option for this client) or inserting the image without a link, and then adding the permalink to the image (too long winded) there was no simple way to create the image links in the way they wanted them.</p>
<p>My solution to this was to create a very basic hack which would allow them to use the 'Post URL' link when inserting images, but instead of linking to the attachment page, the link would automatically be updated to link to the post's permalink itself.</p>
<p>Here is the basic <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a> function that you would need to insert into your theme's functions.php file:</p>
<p>function lose_attachment($content){<br />
return preg_replace('/&lt;a(.*?)href="(.*?)\/attachment\/(.*?)"/i', '&lt;a$1href="$2"', $content);<br />
}</p>
<p>add_filter('the_excerpt', 'lose_attachment',2);</p>
<p>This will remove the 'attachment/name-of-image-file' part from the URL making it link to the post's permalink itself.  I hope someone out there finds this useful!</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>While working on a <a href="http://wordpress.org/" class="kblinker" target="_blank" title="More about wordpress &raquo;">WordPress</a> site recently I came up against a problem that had never occurred to me before. The client wanted each post excerpt on the homepage to include an image which when clicked would link to the main post (permalink) itself. The built in functions of wordpress when inserting an image allow you to link to either the 'File URL' (i.e. the full size version of the image) or to the 'Post URL' which is actually an attachment page in wordpress which displays the image, but does not include the text of the actual post itself. However, without either editing the <a href="http://www.w3.org/TR/html401/" class="kblinker" target="_blank" title="More about html &raquo;">html</a> of each post (not an option for this client) or inserting the image without a link, and then adding the permalink to the image (too long winded) there was no simple way to create the image links in the way they wanted them.</p>
<p>My solution to this was to create a very basic hack which would allow them to use the 'Post URL' link when inserting images, but instead of linking to the attachment page, the link would automatically be updated to link to the post's permalink itself.</p>
<p>Here is the basic <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a> function that you would need to insert into your theme's functions.php file:</p>
<p>function lose_attachment($content){<br />
return preg_replace('/&lt;a(.*?)href="(.*?)\/attachment\/(.*?)"/i', '&lt;a$1href="$2"', $content);<br />
}</p>
<p>add_filter('the_excerpt', 'lose_attachment',2);</p>
<p>This will remove the 'attachment/name-of-image-file' part from the URL making it link to the post's permalink itself.  I hope someone out there finds this useful!</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/blog/wordpress-attachments-hack/feed</wfw:commentRss>
		</item>
		<item>
		<title>Forcing a file to download using php headers</title>
		<link>http://www.samburdge.co.uk/development/forcing-a-file-to-download-using-php-headers</link>
		<comments>http://www.samburdge.co.uk/development/forcing-a-file-to-download-using-php-headers#comments</comments>
		<pubDate>Mon, 04 May 2009 11:57:05 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[scripts]]></category>

		<category><![CDATA[download]]></category>

		<category><![CDATA[file]]></category>

		<category><![CDATA[headers]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=700</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>If you create a hyperlink to a media file that can be opened within the browser such as an mp3, mpg, jpg, pdf, etc. a single left click will open the file in the web browser instead of triggering a download. To download the file you need to right click (CTRL + click for mac) and choose 'Save File As...' from the dropdown.</p>
<p>If your intention is to create a link for the user to download the file rather than viewing it in their browser you can do so using a simple <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a> script. Create a file called 'download.php' and copy in the following php:</p>
<blockquote><p>&lt;?php<br />
$download_file = $_GET['file'];<br />
$download_file_name = $_GET['name'];<br />
$handle = fopen($download_file, "r");<br />
header('Content-Description: File Transfer');<br />
header('Content-Type: application/octet-stream');<br />
header('Content-Disposition: attachment; filename='.$download_file_name);<br />
header('Content-Transfer-Encoding: binary');<br />
header('Expires: 0');<br />
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');<br />
header('Pragma: public');<br />
header('Content-Length: ' . filesize($download_file));<br />
ob_clean();<br />
flush();<br />
readfile($download_file);<br />
fclose($handle);<br />
exit;<br />
?&gt;</p></blockquote>
<p>You can then create your download links like so:</p>
<blockquote><p>www.example.com/download.php?file=images/example.jpg&amp;name=hello.jpg</p></blockquote>
<p>The URL should include the path to the file to be downloaded, and the name you want to give the file. In the above example the file is 'images/example.jpg' but the name of the file downloaded by the user would be 'hello.jpg'</p>
<p>When using PHP headers it is important to note that the headers will only be executed if they are called before any text is output to the page. Any <a href="http://www.w3.org/TR/html401/" class="kblinker" target="_blank" title="More about html &raquo;">html</a>, or php echo tags, before the headers will cause the headers to be ignored. A line break or space before the opening php tag will also prevent headers from working.</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>If you create a hyperlink to a media file that can be opened within the browser such as an mp3, mpg, jpg, pdf, etc. a single left click will open the file in the web browser instead of triggering a download. To download the file you need to right click (CTRL + click for mac) and choose 'Save File As...' from the dropdown.</p>
<p>If your intention is to create a link for the user to download the file rather than viewing it in their browser you can do so using a simple <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a> script. Create a file called 'download.php' and copy in the following php:</p>
<blockquote><p>&lt;?php<br />
$download_file = $_GET['file'];<br />
$download_file_name = $_GET['name'];<br />
$handle = fopen($download_file, "r");<br />
header('Content-Description: File Transfer');<br />
header('Content-Type: application/octet-stream');<br />
header('Content-Disposition: attachment; filename='.$download_file_name);<br />
header('Content-Transfer-Encoding: binary');<br />
header('Expires: 0');<br />
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');<br />
header('Pragma: public');<br />
header('Content-Length: ' . filesize($download_file));<br />
ob_clean();<br />
flush();<br />
readfile($download_file);<br />
fclose($handle);<br />
exit;<br />
?&gt;</p></blockquote>
<p>You can then create your download links like so:</p>
<blockquote><p>www.example.com/download.php?file=images/example.jpg&amp;name=hello.jpg</p></blockquote>
<p>The URL should include the path to the file to be downloaded, and the name you want to give the file. In the above example the file is 'images/example.jpg' but the name of the file downloaded by the user would be 'hello.jpg'</p>
<p>When using PHP headers it is important to note that the headers will only be executed if they are called before any text is output to the page. Any <a href="http://www.w3.org/TR/html401/" class="kblinker" target="_blank" title="More about html &raquo;">html</a>, or php echo tags, before the headers will cause the headers to be ignored. A line break or space before the opening php tag will also prevent headers from working.</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/forcing-a-file-to-download-using-php-headers/feed</wfw:commentRss>
		</item>
		<item>
		<title>Video Gallery - Neil Stewart / Fella Pictures</title>
		<link>http://www.samburdge.co.uk/development/video-gallery-neil-stewart-fella-pictures</link>
		<comments>http://www.samburdge.co.uk/development/video-gallery-neil-stewart-fella-pictures#comments</comments>
		<pubDate>Tue, 21 Apr 2009 15:41:36 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[portfolio]]></category>

		<category><![CDATA[flv]]></category>

		<category><![CDATA[gallery]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=688</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>This week I have been working on improving the '<a href="http://www.photoneil.com/movingimage.php">Moving Image</a>' section of <a href="http://www.photoneil.com/" target="_blank">photoneil.com</a>. When I first built the site (designed and built by <a href="http://www.76creative.com" target="_blank">76 Creative</a>) the Moving Image page featured Neil's video showreel, since then video has become a more prominent aspect of his work so I have created a video gallery page for the site, allowing him to showcase a range of his video work under different categories.</p>
<p>As this video gallery uses seperate pages for the video list and the player itself I programmed it in <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">PHP</a> using the <a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">Longtail / JW Player</a> to play the flv videos. For more information about encoding video for Flash as flv see my article: <a href="http://www.samburdge.co.uk/development/encoding-flash-video-flv-part-1-the-basics" target="_self">Encoding FLV</a></p>
<p>The video gallery also offers the option to download higher quality Quicktime Movies of each video. I encoded the quicktimes using the mpeg-4 codec and reducing the frame size slightly to allow for higher picture and sound quality while keeping the filesizes reasonable for a download.</p>
<p>Check it out: <a href="http://www.photoneil.com/movingimage.php" target="_blank">www.photoneil.com/movingimage.php</a></p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>This week I have been working on improving the '<a href="http://www.photoneil.com/movingimage.php">Moving Image</a>' section of <a href="http://www.photoneil.com/" target="_blank">photoneil.com</a>. When I first built the site (designed and built by <a href="http://www.76creative.com" target="_blank">76 Creative</a>) the Moving Image page featured Neil's video showreel, since then video has become a more prominent aspect of his work so I have created a video gallery page for the site, allowing him to showcase a range of his video work under different categories.</p>
<p>As this video gallery uses seperate pages for the video list and the player itself I programmed it in <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">PHP</a> using the <a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">Longtail / JW Player</a> to play the flv videos. For more information about encoding video for Flash as flv see my article: <a href="http://www.samburdge.co.uk/development/encoding-flash-video-flv-part-1-the-basics" target="_self">Encoding FLV</a></p>
<p>The video gallery also offers the option to download higher quality Quicktime Movies of each video. I encoded the quicktimes using the mpeg-4 codec and reducing the frame size slightly to allow for higher picture and sound quality while keeping the filesizes reasonable for a download.</p>
<p>Check it out: <a href="http://www.photoneil.com/movingimage.php" target="_blank">www.photoneil.com/movingimage.php</a></p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/video-gallery-neil-stewart-fella-pictures/feed</wfw:commentRss>
		</item>
		<item>
		<title>WP Games Embed Plugin</title>
		<link>http://www.samburdge.co.uk/wordpress/wp-games-embed-plugin</link>
		<comments>http://www.samburdge.co.uk/wordpress/wp-games-embed-plugin#comments</comments>
		<pubDate>Sat, 28 Feb 2009 01:27:48 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[embed]]></category>

		<category><![CDATA[games]]></category>

		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=636</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>Turn your <a href="http://wordpress.org/" class="kblinker" target="_blank" title="More about wordpress &raquo;">wordpress</a> blog into a games arcade!</p>
<p>This beta version WordPress plugin, WP Games Embed, makes it easy to embed games into your WordPress blog by using <a href="http://codex.wordpress.org/Shortcode_API" target="_blank">shortcodes</a> in your posts and pages. WP Games Embed is intended to be able to support content offered by the various free games sites out there using the codes or downloads they provide.</p>
<h2><strong>FEATURES</strong></h2>
<p><strong>4 Different views</strong>:</p>
<ol>
<li><em>Grid view</em> - a grid of thumbnail images linking to each game (can be restricted to a single category or parent category)</li>
<li><em>Category view</em> - this view includes a medium sized image and a written description of the game</li>
<li><em>Single page view</em> - the page where you play the game itself</li>
<li><em>Featured Game view</em> - this view is similar to category view, but allows you to pick the games yourself to create your own 'Featured Games' page.</li>
</ol>
<p><strong>Different embedding modes</strong>:</p>
<ol>
<li><em>iFrame embedding</em> - embed iFrame content using code provided by free games sites, or use this method to display games from your own server where an <a class="kblinker" title="More about html »" href="http://www.w3.org/TR/html401/" target="_blank">html</a> file has been provided with the free game download.</li>
<li><em><a class="kblinker" title="More about flash »" href="http://www.adobe.com/products/flashplayer/" target="_blank">Flash</a> embedding</em> - embed <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">Flash</a> content using embed codes provided by other sites, or embed flash games directly from your own site. You can even upload them easily using the wordpress 'Add Media' tool.</li>
</ol>
<h2><strong>WORKING EXAMPLE</strong></h2>
<p>Visit <a href="http://www.zapgamez.com" target="_blank">Zap Gamez Arcade</a> to see an example of the plugin in action.</p>
<h2><strong>INSTALLATION</strong></h2>
<ol>
<li>Download the plugin from the link at the bottom of this page</li>
<li>Upload the wp-games-embed.php file to your wp-content/plugins folder.</li>
<li>Activate the plugin from the Plugins page in WordPress.</li>
</ol>
<h2><strong>USAGE</strong></h2>
<p>Use shortcodes to embed games into your posts, or to create a grid of thumbnails on a page or your home page.</p>
<h2><strong>Embedding a game in a post:</strong></h2>
<p><strong>Shortcode</strong>: [game /]<strong></strong></p>
<p><strong>Additional attributes</strong>:</p>
<ul>
<li>width - the width of the game</li>
<li>height - the height of the game</li>
<li>src - the url of the game (html file for iframe embedding, swf file for flash embedding)</li>
<li>flash - if set to true flash embedding will be used, if set to false iframe embedding will be used. (default=false)</li>
<li>thumb - the url of the thumbnail image (70px x 60px)</li>
<li>main - the url of the large image (appx 300px wide)</li>
<li>title - the name of the game!</li>
<li>description - your description including controls etc.</li>
<li>featured - whether this should be formatted as a featured game. (default=false)</li>
<li>game_url - only to be used in Featured mode (when featured is set to true). See  the shortcode examples below for more details.</li>
</ul>
<h3><strong>Shortcode Example 1 (embedding game as iFrame)</strong>:</h3>
<p>[game width="640" height="480" src="http://www.example.com/games/pacman.html" thumb="http://www.mysite.com/images/pacman-small.jpg" main="http://www.mysite.com/images/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." flash="false"/]</p>
<h3><strong>Shortcode Example 2 (embedding game as Flash):</strong></h3>
<p>[game width="640" height="480" src="http://www.mysite.com/games/pacman.swf" thumb="http://www.mysite.com/images/pacman-small.jpg" main="http://www.mysite.com/images/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." flash="true"/]</p>
<h2><strong>Creating a grid of thumbnails on a page:</strong></h2>
<p><strong>Shortcode:</strong> [get_latest_games /]</p>
<p><strong>Additional attributes:</strong> list_category - the category id for the games you want to appear in the list.</p>
<p>The list_category attribute makes it possible to display the latest games under a certain category e.g. 'Arcade' or the latest games under all categories. Simply set up a main category called 'games' and then create all your games categories (action,adventure,sports, etc.)  as sub-categories.</p>
<h3><strong>Shortcode Example 3 (thumbnail grid):</strong></h3>
<p>[get_latest_games list_category="2" /]</p>
<h2><strong>Creating a Featured Games page:</strong></h2>
<p><strong>Shortcode:</strong> [game /]<br />
<strong>Additional atrtributes:</strong> (see above)</p>
<p>The important attributes for creating a features games list are 'featured' which should be set to true, and 'game_url' the url where the game can be played on your site.</p>
<h4><strong>Shortcode Example 4 (featured games):</strong></h4>
<p>[game  main="http://www.myblog.com/uploads/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." featured="true" game_url= "http://www.myblog.com/games/pacman/" /]</p>
<p>[game  main="http://www.myblog.com/uploads/donkeykong-medium.jpg" title="Donkey Kong" description="This is a great game! Use the arrow keys to play." featured="true" game_url= "http://www.myblog.com/games/donkey-kong/" /]</p>
<h2><strong>DOWNLOAD THE PLUGIN</strong></h2>
<br />
<a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/wp-games-embed.zip">
<img src="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download-button.png" style="border: 0px; background: #000000; outline: 0; padding: 0; margin: 0;" />
</a><div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>Turn your <a href="http://wordpress.org/" class="kblinker" target="_blank" title="More about wordpress &raquo;">wordpress</a> blog into a games arcade!</p>
<p>This beta version WordPress plugin, WP Games Embed, makes it easy to embed games into your WordPress blog by using <a href="http://codex.wordpress.org/Shortcode_API" target="_blank">shortcodes</a> in your posts and pages. WP Games Embed is intended to be able to support content offered by the various free games sites out there using the codes or downloads they provide.</p>
<h2><strong>FEATURES</strong></h2>
<p><strong>4 Different views</strong>:</p>
<ol>
<li><em>Grid view</em> - a grid of thumbnail images linking to each game (can be restricted to a single category or parent category)</li>
<li><em>Category view</em> - this view includes a medium sized image and a written description of the game</li>
<li><em>Single page view</em> - the page where you play the game itself</li>
<li><em>Featured Game view</em> - this view is similar to category view, but allows you to pick the games yourself to create your own 'Featured Games' page.</li>
</ol>
<p><strong>Different embedding modes</strong>:</p>
<ol>
<li><em>iFrame embedding</em> - embed iFrame content using code provided by free games sites, or use this method to display games from your own server where an <a class="kblinker" title="More about html »" href="http://www.w3.org/TR/html401/" target="_blank">html</a> file has been provided with the free game download.</li>
<li><em><a class="kblinker" title="More about flash »" href="http://www.adobe.com/products/flashplayer/" target="_blank">Flash</a> embedding</em> - embed <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">Flash</a> content using embed codes provided by other sites, or embed flash games directly from your own site. You can even upload them easily using the wordpress 'Add Media' tool.</li>
</ol>
<h2><strong>WORKING EXAMPLE</strong></h2>
<p>Visit <a href="http://www.zapgamez.com" target="_blank">Zap Gamez Arcade</a> to see an example of the plugin in action.</p>
<h2><strong>INSTALLATION</strong></h2>
<ol>
<li>Download the plugin from the link at the bottom of this page</li>
<li>Upload the wp-games-embed.php file to your wp-content/plugins folder.</li>
<li>Activate the plugin from the Plugins page in WordPress.</li>
</ol>
<h2><strong>USAGE</strong></h2>
<p>Use shortcodes to embed games into your posts, or to create a grid of thumbnails on a page or your home page.</p>
<h2><strong>Embedding a game in a post:</strong></h2>
<p><strong>Shortcode</strong>: [game /]<strong></strong></p>
<p><strong>Additional attributes</strong>:</p>
<ul>
<li>width - the width of the game</li>
<li>height - the height of the game</li>
<li>src - the url of the game (html file for iframe embedding, swf file for flash embedding)</li>
<li>flash - if set to true flash embedding will be used, if set to false iframe embedding will be used. (default=false)</li>
<li>thumb - the url of the thumbnail image (70px x 60px)</li>
<li>main - the url of the large image (appx 300px wide)</li>
<li>title - the name of the game!</li>
<li>description - your description including controls etc.</li>
<li>featured - whether this should be formatted as a featured game. (default=false)</li>
<li>game_url - only to be used in Featured mode (when featured is set to true). See  the shortcode examples below for more details.</li>
</ul>
<h3><strong>Shortcode Example 1 (embedding game as iFrame)</strong>:</h3>
<p>[game width="640" height="480" src="http://www.example.com/games/pacman.html" thumb="http://www.mysite.com/images/pacman-small.jpg" main="http://www.mysite.com/images/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." flash="false"/]</p>
<h3><strong>Shortcode Example 2 (embedding game as Flash):</strong></h3>
<p>[game width="640" height="480" src="http://www.mysite.com/games/pacman.swf" thumb="http://www.mysite.com/images/pacman-small.jpg" main="http://www.mysite.com/images/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." flash="true"/]</p>
<h2><strong>Creating a grid of thumbnails on a page:</strong></h2>
<p><strong>Shortcode:</strong> [get_latest_games /]</p>
<p><strong>Additional attributes:</strong> list_category - the category id for the games you want to appear in the list.</p>
<p>The list_category attribute makes it possible to display the latest games under a certain category e.g. 'Arcade' or the latest games under all categories. Simply set up a main category called 'games' and then create all your games categories (action,adventure,sports, etc.)  as sub-categories.</p>
<h3><strong>Shortcode Example 3 (thumbnail grid):</strong></h3>
<p>[get_latest_games list_category="2" /]</p>
<h2><strong>Creating a Featured Games page:</strong></h2>
<p><strong>Shortcode:</strong> [game /]<br />
<strong>Additional atrtributes:</strong> (see above)</p>
<p>The important attributes for creating a features games list are 'featured' which should be set to true, and 'game_url' the url where the game can be played on your site.</p>
<h4><strong>Shortcode Example 4 (featured games):</strong></h4>
<p>[game  main="http://www.myblog.com/uploads/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." featured="true" game_url= "http://www.myblog.com/games/pacman/" /]</p>
<p>[game  main="http://www.myblog.com/uploads/donkeykong-medium.jpg" title="Donkey Kong" description="This is a great game! Use the arrow keys to play." featured="true" game_url= "http://www.myblog.com/games/donkey-kong/" /]</p>
<h2><strong>DOWNLOAD THE PLUGIN</strong></h2>
<br />
<a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/wp-games-embed.zip">
<img src="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download-button.png" style="border: 0px; background: #000000; outline: 0; padding: 0; margin: 0;" />
</a><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/wordpress/wp-games-embed-plugin/feed</wfw:commentRss>
		</item>
		<item>
		<title>Detecting keypresses cross-browser using jquery</title>
		<link>http://www.samburdge.co.uk/development/detecting-keypresses-cross-browser-using-jquery</link>
		<comments>http://www.samburdge.co.uk/development/detecting-keypresses-cross-browser-using-jquery#comments</comments>
		<pubDate>Thu, 26 Feb 2009 20:36:29 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[scripts]]></category>

		<category><![CDATA[ascii]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[keypress]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=630</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>Using keypresses as an alternate way to to navigate through websites  is a great way to make sites more accessible. For instance pressing 'p' takes the user to the previous page, while pressing 'n' takes them to the next. The benefits of using <a href="http://jquery.com/" class="kblinker" target="_blank" title="More about jquery &raquo;">jQuery</a> to achieve this are:</p>
<ol>
<li>Concise code</li>
<li>Easy to implement various functions on keypress</li>
<li>Works on IE, Firefox &amp; Safari</li>
</ol>
<p><strong>DETECTING THE KEY CODE</strong></p>
<p>To detect which key a user has pressed you need to set up a function that returns an ascii code each time a key is pressed. A full table of ascii codes is available <a href="http://www.petefreitag.com/cheatsheets/ascii-codes/" target="_blank">here</a>. The tricky part to this is that Mozilla and Safari define the value as charCode, while IE defines  it as keyCode. The following script is based on the 'n' key and 'p' key, it takes the links from the 'Previous' and 'Next' buttons on your site and changes page when the key is pressed. Also note that it is important to detect for both the lower-case and upper-case letter as the ascii codes will be different for each.</p>
<p><strong>SOURCE</strong></p>
<blockquote>
<pre>//process this function whenever a key is pressed
$(document).keypress(function (e) {
//Next
//if the keyCode or charCode is 110 (lower case n) or 78 (upper case N)
if (e.keyCode == 110 || e.charCode == 110 || e.keyCode == 78 || e.charCode == 78){
//grab the href attribute from the link with the id "next_link"
var next_link = $("a#next_link").attr("href");
//if the next link exists (i.e if it's not the last page)
if(next_link){
//go to the next page
window.location = next_link;
}
}
//Previous
//works exactly as the above example but for the 'p' and 'P' keys
if (e.keyCode == 112 || e.charCode == 112 || e.keyCode == 80 || e.charCode == 80){
var prev_link = $("a#prev_link").attr("href");
if(prev_link){
window.location = prev_link;
}
}

});</pre>
</blockquote>
<p>You must have the jQuery library installed on your site to run this script. For more info about jquery visit the site: <a href="http://jquery.com/" target="_blank">http://jquery.com/</a></p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>Using keypresses as an alternate way to to navigate through websites  is a great way to make sites more accessible. For instance pressing 'p' takes the user to the previous page, while pressing 'n' takes them to the next. The benefits of using <a href="http://jquery.com/" class="kblinker" target="_blank" title="More about jquery &raquo;">jQuery</a> to achieve this are:</p>
<ol>
<li>Concise code</li>
<li>Easy to implement various functions on keypress</li>
<li>Works on IE, Firefox &amp; Safari</li>
</ol>
<p><strong>DETECTING THE KEY CODE</strong></p>
<p>To detect which key a user has pressed you need to set up a function that returns an ascii code each time a key is pressed. A full table of ascii codes is available <a href="http://www.petefreitag.com/cheatsheets/ascii-codes/" target="_blank">here</a>. The tricky part to this is that Mozilla and Safari define the value as charCode, while IE defines  it as keyCode. The following script is based on the 'n' key and 'p' key, it takes the links from the 'Previous' and 'Next' buttons on your site and changes page when the key is pressed. Also note that it is important to detect for both the lower-case and upper-case letter as the ascii codes will be different for each.</p>
<p><strong>SOURCE</strong></p>
<blockquote>
<pre>//process this function whenever a key is pressed
$(document).keypress(function (e) {
//Next
//if the keyCode or charCode is 110 (lower case n) or 78 (upper case N)
if (e.keyCode == 110 || e.charCode == 110 || e.keyCode == 78 || e.charCode == 78){
//grab the href attribute from the link with the id "next_link"
var next_link = $("a#next_link").attr("href");
//if the next link exists (i.e if it's not the last page)
if(next_link){
//go to the next page
window.location = next_link;
}
}
//Previous
//works exactly as the above example but for the 'p' and 'P' keys
if (e.keyCode == 112 || e.charCode == 112 || e.keyCode == 80 || e.charCode == 80){
var prev_link = $("a#prev_link").attr("href");
if(prev_link){
window.location = prev_link;
}
}

});</pre>
</blockquote>
<p>You must have the jQuery library installed on your site to run this script. For more info about jquery visit the site: <a href="http://jquery.com/" target="_blank">http://jquery.com/</a></p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/detecting-keypresses-cross-browser-using-jquery/feed</wfw:commentRss>
		</item>
		<item>
		<title>A Single html Form With Multiple Submit Buttons - Changing a Form&#8217;s Action Attribute using jQuery</title>
		<link>http://www.samburdge.co.uk/development/a-single-html-form-with-multiple-submit-buttons-changing-a-forms-action-attribute-using-jquery</link>
		<comments>http://www.samburdge.co.uk/development/a-single-html-form-with-multiple-submit-buttons-changing-a-forms-action-attribute-using-jquery#comments</comments>
		<pubDate>Sun, 15 Feb 2009 16:48:08 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[scripts]]></category>

		<category><![CDATA[button]]></category>

		<category><![CDATA[form]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[multiple]]></category>

		<category><![CDATA[submit]]></category>

		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=607</guid>
		<description><![CDATA[<!-- matched  --><!-- final 0 --><p>I was recently confronted with the problem of having a single <a href="http://www.w3.org/TR/html401/" class="kblinker" target="_blank" title="More about html &raquo;">html</a> form with three different submit buttons, each button submitting the form data to a different <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a> script. This is obviously impossible with html alone, as a form can only have one 'action' attribute, which dictates the URL of the file that the form's data is submitted to.</p>
<p>I searched around on the web for an easy way to implement this and found various examples. One of the best examples I found was on CoderLab's blog: <a href="http://blog.coderlab.us/2005/10/04/multiple-submit-buttons-in-a-form/" target="_blank">Multiple submit buttons on a multiple blog</a> which uses <a href="http://javascript.internet.com" class="kblinker" target="_blank" title="More about javascript &raquo;">javascript</a> to apply a different action attribute to the form depending on which button is pressed. Each button in the form has it's own onClick function like so:</p>
<blockquote><p>&lt;form name="myForm" id="myForm"&gt;<br />
Search: &lt;input type="text" id="wrdSearch"/&gt;<br />
&lt;input type="button" name="<a href="http://www.google.com/" class="kblinker" target="_blank" title="More about google &raquo;">google</a>" id="google" value="Google" onClick="SendTo(this.id)"/&gt;<br />
&lt;input type="button" name="msn" id="msn" value="MSN" onClick="SendTo(this.id)"/&gt;<br />
&lt;input type="button" name="yahoo" id="yahoo" value="Yahoo" onClick="SendTo(this.id)"/&gt;<br />
&lt;/form&gt;</p></blockquote>
<p>(Visit the page to see the javascript that goes with it: <a href="http://blog.coderlab.us/2005/10/04/multiple-submit-buttons-in-a-form/" target="_blank">http://blog.coderlab.us/2005/10/04/multiple-submit-buttons-in-a-form/</a>)</p>
<p>As I already had <a href="http://jquery.com/" class="kblinker" target="_blank" title="More about jquery &raquo;">jQuery</a> installed on the site, and the CoderLab script would still need some modification to serve my specific purpose, I decided to see if I could find a simpler way to achieve a similar result using jQuery. The form on my site was a lot more complex, with many fields etc. So what I really needed was a script that would submit all the form data to each of the 3 php scripts depending on which submit button was clicked.</p>
<p>Firstly, I stripped the onClick functions out of the form and removed the name attributes from the buttons too, like so:</p>
<blockquote><p>&lt;form id="myForm" method="post"&gt;<br />
Search: &lt;input type="text" name="search"/&gt;<br />
&lt;input type="button" id="button1" value="Submit to script 1" /&gt;<br />
&lt;input type="button" id="button2" value="Submit to script 2" /&gt;<br />
&lt;input type="button" id="button3" value="Submit to script 3" /&gt;<br />
&lt;/form&gt;</p></blockquote>
<p>I then wrote the following jQuery script to change the form's action attribute accordingly and submit it when each button is pressed:</p>
<blockquote><p>$(document).ready(function(){</p>
<p>$("#button1").click(function(){<br />
$('form#myForm').attr({action: "script_1.php"});<br />
$('form#myForm').submit();<br />
});</p>
<p>$("#button2").click(function(){<br />
$('form#myForm').attr({action: "script_2.php"});<br />
$('form#myForm').submit();<br />
});</p>
<p>$("#button3").click(function(){<br />
$('form#myForm').attr({action: "script_3.php"});<br />
$('form#myForm').submit();<br />
});</p>
<p>});</p></blockquote>
<p>The script should work on any browser that is compatible with jQuery (see here: <a href="http://docs.jquery.com/Browser_Compatibility" target="_blank">http://docs.jquery.com/Browser_Compatibility</a>)</p>
<p>For more information on installing and using jQuery visit the website: <a href="http://jquery.com/" target="_blank">http://jquery.com/</a></p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 0 --><p>I was recently confronted with the problem of having a single <a href="http://www.w3.org/TR/html401/" class="kblinker" target="_blank" title="More about html &raquo;">html</a> form with three different submit buttons, each button submitting the form data to a different <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a> script. This is obviously impossible with html alone, as a form can only have one 'action' attribute, which dictates the URL of the file that the form's data is submitted to.</p>
<p>I searched around on the web for an easy way to implement this and found various examples. One of the best examples I found was on CoderLab's blog: <a href="http://blog.coderlab.us/2005/10/04/multiple-submit-buttons-in-a-form/" target="_blank">Multiple submit buttons on a multiple blog</a> which uses <a href="http://javascript.internet.com" class="kblinker" target="_blank" title="More about javascript &raquo;">javascript</a> to apply a different action attribute to the form depending on which button is pressed. Each button in the form has it's own onClick function like so:</p>
<blockquote><p>&lt;form name="myForm" id="myForm"&gt;<br />
Search: &lt;input type="text" id="wrdSearch"/&gt;<br />
&lt;input type="button" name="<a href="http://www.google.com/" class="kblinker" target="_blank" title="More about google &raquo;">google</a>" id="google" value="Google" onClick="SendTo(this.id)"/&gt;<br />
&lt;input type="button" name="msn" id="msn" value="MSN" onClick="SendTo(this.id)"/&gt;<br />
&lt;input type="button" name="yahoo" id="yahoo" value="Yahoo" onClick="SendTo(this.id)"/&gt;<br />
&lt;/form&gt;</p></blockquote>
<p>(Visit the page to see the javascript that goes with it: <a href="http://blog.coderlab.us/2005/10/04/multiple-submit-buttons-in-a-form/" target="_blank">http://blog.coderlab.us/2005/10/04/multiple-submit-buttons-in-a-form/</a>)</p>
<p>As I already had <a href="http://jquery.com/" class="kblinker" target="_blank" title="More about jquery &raquo;">jQuery</a> installed on the site, and the CoderLab script would still need some modification to serve my specific purpose, I decided to see if I could find a simpler way to achieve a similar result using jQuery. The form on my site was a lot more complex, with many fields etc. So what I really needed was a script that would submit all the form data to each of the 3 php scripts depending on which submit button was clicked.</p>
<p>Firstly, I stripped the onClick functions out of the form and removed the name attributes from the buttons too, like so:</p>
<blockquote><p>&lt;form id="myForm" method="post"&gt;<br />
Search: &lt;input type="text" name="search"/&gt;<br />
&lt;input type="button" id="button1" value="Submit to script 1" /&gt;<br />
&lt;input type="button" id="button2" value="Submit to script 2" /&gt;<br />
&lt;input type="button" id="button3" value="Submit to script 3" /&gt;<br />
&lt;/form&gt;</p></blockquote>
<p>I then wrote the following jQuery script to change the form's action attribute accordingly and submit it when each button is pressed:</p>
<blockquote><p>$(document).ready(function(){</p>
<p>$("#button1").click(function(){<br />
$('form#myForm').attr({action: "script_1.php"});<br />
$('form#myForm').submit();<br />
});</p>
<p>$("#button2").click(function(){<br />
$('form#myForm').attr({action: "script_2.php"});<br />
$('form#myForm').submit();<br />
});</p>
<p>$("#button3").click(function(){<br />
$('form#myForm').attr({action: "script_3.php"});<br />
$('form#myForm').submit();<br />
});</p>
<p>});</p></blockquote>
<p>The script should work on any browser that is compatible with jQuery (see here: <a href="http://docs.jquery.com/Browser_Compatibility" target="_blank">http://docs.jquery.com/Browser_Compatibility</a>)</p>
<p>For more information on installing and using jQuery visit the website: <a href="http://jquery.com/" target="_blank">http://jquery.com/</a></p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/a-single-html-form-with-multiple-submit-buttons-changing-a-forms-action-attribute-using-jquery/feed</wfw:commentRss>
		</item>
		<item>
		<title>Flash Tutorial - Adding an animated shine effect to your logo</title>
		<link>http://www.samburdge.co.uk/development/flash-tutorial-adding-an-animated-shine-effect-to-your-logo</link>
		<comments>http://www.samburdge.co.uk/development/flash-tutorial-adding-an-animated-shine-effect-to-your-logo#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:14:31 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[animated]]></category>

		<category><![CDATA[blur]]></category>

		<category><![CDATA[effect]]></category>

		<category><![CDATA[keyframe]]></category>

		<category><![CDATA[layer]]></category>

		<category><![CDATA[logo]]></category>

		<category><![CDATA[overlay]]></category>

		<category><![CDATA[shine]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=572</guid>
		<description><![CDATA[<!-- matched  --><!-- final 1 --><div style="width:20%; float: left; padding-right: 2%; display: inline;" class="post_column_1"><p></p><div id="swfE4f3376541fa230e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376541fa230e','/wp-content/uploads/2009/02/logo-shine.swf','121','121','9','#000000','');
// ]]>
</script></div><div style="width:75%; float: left; padding-right: 0; display: inline;" class="post_column_1"><p>This is a basic <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">flash</a> tutorial which explains how to apply an animated shine effect to a logo or image, as displayed in the example. This technique only really works well with colour logos.</p>
<p>You will need Flash 8 or above, as the effect utilises the filters which were a new addition in version 8. The source file for this project is available for download at the bottom of the tutorial.</p>
<p>Leave a comment if you find this useful!</div><div style="clear: both;"></div>
<p><strong>GETTING STARTED</strong></p>
<ol>
<li>Open a new flash document</li>
<li>Go to 'File -&gt;Import -&gt; Import to Stage...' (or CTRL+R) and import your logo image.</li>
<li>Move your logo to the top left corner of the stage (position 0,0)</li>
<li>Go to 'Modify -&gt; Document' (CTRL+J) and set your document's height and width to the height and width of your logo image. Set the framerate to 12fps.</li>
</ol>
<p><strong>CREATING THE SHINE</strong></p>
<ol>
<li>Create a new layer above the logo layer for your shine</li>
<li>In your new layer draw a white rectangle with no outlines (about 25ph high and the width of your logo)</li>
<li>Select your rectangle and go to 'Modify -&gt; Convert to Symbol' (F8) and choose 'Movie clip' as the symbol type, name it 'shine'.</li>
<li>Double click on your new movieclip to open it, select the rectangle again and repeat step 4, converting it into another new Movie clip, but this time name it 'rectangle'.</li>
</ol>
<div style="width:45%; float: left; padding-right: 2%; display: inline;" class="post_column_1"><p><strong>ANIMATING THE SHINE</strong></p>
<ol>
<li>Inside your 'shine' movie create a new keyframe at frame 25. This keyframe will be the point that your rectangle ends at after it has moved accross the logo. Frame 1 will be it's starting point.  See images opposite.</li>
<li>Set the starting point for your rectangle on frame 1. Then go to frame 25 and move it to its ending point. You can also rotate your rectangle as I have done in the opposite example.</li>
<li>Right click on the first keyframe in the timeline and select 'Create Motion Tween' from the dropdown menu.</li>
<li>Press return to preview your animation</li>
<li>You will notice that in my example I have added some blank keyframes to the timeline to add a couple of seconds pause between each shine.</li>
</ol>
</div><div style="width:50%; float: left; padding-right: 0; display: inline;" class="post_column_1"><p><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-1.jpg"  rel="lightbox-572"><img class="alignnone size-thumbnail wp-image-583" title="flash-tutorial-1" src="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-1.jpg" alt="flash-tutorial-1" width="150" height="86" /></a><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-2.jpg"  rel="lightbox-572"><img class="alignnone size-thumbnail wp-image-584" title="flash-tutorial-2" src="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-2.jpg" alt="flash-tutorial-2" width="150" height="88" /><br />
</a></div><div style="clear: both;"></div><div style="width:60%; float: left; padding-right: 2%; display: inline;" class="post_column_1"><p><strong>ADDING THE EFFECTS</strong></p>
<ol>
<li>Select your 'rectangle' movie clip on frame 1 of the timeline, and open the filters properties ('Windows -&gt; Properties -&gt; Filters').</li>
<li>Click on the plus symbol to add a new filter and select 'blur' from the list.</li>
<li>Set the Blur X and Blur Y values to about 25, and set the quality to Medium. See opposite.</li>
<li>Make sure the same values are set for the blur filter on frame 25.</li>
<li>Go to Scene 1 of your flash project. Select your 'shine' movie clip and in the Properties panel change its Blend mode from 'Normal' to 'Overlay'</li>
</ol>
</div><div style="width:35%; float: left; padding-right: 0; display: inline;" class="post_column_1"><p><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-3.jpg"  rel="lightbox-572"><img class="alignnone size-thumbnail wp-image-585" title="flash-tutorial-3" src="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-3.jpg" alt="flash-tutorial-3" width="150" height="43" /></a></div><div style="clear: both;"></div><strong>DOWNLOAD SOURCE FILE</strong></p>
<br />
<form action="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download.php" method="post">
<input type="hidden" name="download_file" value="http://www.samburdge.co.uk/wp-content/uploads/2009/02/logo-shine.fla" />
<input type="image" alt="Download File" style="border: 0; cursor: pointer;" src="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download-button.png" />
</form><br /><br /><div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 2 --><div style="width:20%; float: left; padding-right: 2%; display: inline;" class="post_column_1"><p></p><div id="swfE4f3376541fa231e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376541fa231e','/wp-content/uploads/2009/02/logo-shine.swf','121','121','9','#000000','');
// ]]>
</script></div><div style="width:75%; float: left; padding-right: 0; display: inline;" class="post_column_1"><p>This is a basic <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">flash</a> tutorial which explains how to apply an animated shine effect to a logo or image, as displayed in the example. This technique only really works well with colour logos.</p>
<p>You will need Flash 8 or above, as the effect utilises the filters which were a new addition in version 8. The source file for this project is available for download at the bottom of the tutorial.</p>
<p>Leave a comment if you find this useful!</div><div style="clear: both;"></div>
<p><strong>GETTING STARTED</strong></p>
<ol>
<li>Open a new flash document</li>
<li>Go to 'File -&gt;Import -&gt; Import to Stage...' (or CTRL+R) and import your logo image.</li>
<li>Move your logo to the top left corner of the stage (position 0,0)</li>
<li>Go to 'Modify -&gt; Document' (CTRL+J) and set your document's height and width to the height and width of your logo image. Set the framerate to 12fps.</li>
</ol>
<p><strong>CREATING THE SHINE</strong></p>
<ol>
<li>Create a new layer above the logo layer for your shine</li>
<li>In your new layer draw a white rectangle with no outlines (about 25ph high and the width of your logo)</li>
<li>Select your rectangle and go to 'Modify -&gt; Convert to Symbol' (F8) and choose 'Movie clip' as the symbol type, name it 'shine'.</li>
<li>Double click on your new movieclip to open it, select the rectangle again and repeat step 4, converting it into another new Movie clip, but this time name it 'rectangle'.</li>
</ol>
<div style="width:45%; float: left; padding-right: 2%; display: inline;" class="post_column_1"><p><strong>ANIMATING THE SHINE</strong></p>
<ol>
<li>Inside your 'shine' movie create a new keyframe at frame 25. This keyframe will be the point that your rectangle ends at after it has moved accross the logo. Frame 1 will be it's starting point.  See images opposite.</li>
<li>Set the starting point for your rectangle on frame 1. Then go to frame 25 and move it to its ending point. You can also rotate your rectangle as I have done in the opposite example.</li>
<li>Right click on the first keyframe in the timeline and select 'Create Motion Tween' from the dropdown menu.</li>
<li>Press return to preview your animation</li>
<li>You will notice that in my example I have added some blank keyframes to the timeline to add a couple of seconds pause between each shine.</li>
</ol>
</div><div style="width:50%; float: left; padding-right: 0; display: inline;" class="post_column_1"><p><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-1.jpg"  rel="lightbox-572"><img class="alignnone size-thumbnail wp-image-583" title="flash-tutorial-1" src="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-1.jpg" alt="flash-tutorial-1" width="150" height="86" /></a><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-2.jpg"  rel="lightbox-572"><img class="alignnone size-thumbnail wp-image-584" title="flash-tutorial-2" src="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-2.jpg" alt="flash-tutorial-2" width="150" height="88" /><br />
</a></div><div style="clear: both;"></div><div style="width:60%; float: left; padding-right: 2%; display: inline;" class="post_column_1"><p><strong>ADDING THE EFFECTS</strong></p>
<ol>
<li>Select your 'rectangle' movie clip on frame 1 of the timeline, and open the filters properties ('Windows -&gt; Properties -&gt; Filters').</li>
<li>Click on the plus symbol to add a new filter and select 'blur' from the list.</li>
<li>Set the Blur X and Blur Y values to about 25, and set the quality to Medium. See opposite.</li>
<li>Make sure the same values are set for the blur filter on frame 25.</li>
<li>Go to Scene 1 of your flash project. Select your 'shine' movie clip and in the Properties panel change its Blend mode from 'Normal' to 'Overlay'</li>
</ol>
</div><div style="width:35%; float: left; padding-right: 0; display: inline;" class="post_column_1"><p><a href="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-3.jpg"  rel="lightbox-572"><img class="alignnone size-thumbnail wp-image-585" title="flash-tutorial-3" src="http://www.samburdge.co.uk/wp-content/uploads/2009/02/flash-tutorial-3.jpg" alt="flash-tutorial-3" width="150" height="43" /></a></div><div style="clear: both;"></div><strong>DOWNLOAD SOURCE FILE</strong></p>
<br />
<form action="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download.php" method="post">
<input type="hidden" name="download_file" value="http://www.samburdge.co.uk/wp-content/uploads/2009/02/logo-shine.fla" />
<input type="image" alt="Download File" style="border: 0; cursor: pointer;" src="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download-button.png" />
</form><br /><br /><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/flash-tutorial-adding-an-animated-shine-effect-to-your-logo/feed</wfw:commentRss>
		</item>
		<item>
		<title>WordPress Tips - Removing The Title Attribute From  wp_list_categories &amp; wp_list_pages</title>
		<link>http://www.samburdge.co.uk/wordpress/wordpress-tips-removing-the-title-attribute-from-wp_list_categories-wp_list_pages</link>
		<comments>http://www.samburdge.co.uk/wordpress/wordpress-tips-removing-the-title-attribute-from-wp_list_categories-wp_list_pages#comments</comments>
		<pubDate>Thu, 29 Jan 2009 23:47:36 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[scripts]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[hack]]></category>

		<category><![CDATA[list]]></category>

		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=417</guid>
		<description><![CDATA[<!-- matched  --><!-- final 2 --><p>I noticed in the <a href="http://wordpress.org/support/" target="_blank">WordPress forums</a> that a lot of people were asking how to remove the <em>title="example"</em> attribute from the links generated by the <a href="http://wordpress.org/" class="kblinker" target="_blank" title="More about wordpress &raquo;">WordPress</a> template tags <a href="http://codex.wordpress.org/Template_Tags/wp_list_categories" target="_blank">wp_list_categories</a> and <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages" target="_blank">wp_list_pages</a>. The title attribute is what generates the little text box with something like "View all posts filed under &lt;category&gt;" when you hover over a link.</p>
<p>I had previously devised a 'hack' for removing the dreaded title attribute for a theme I worked on. The key is to set the 'echo' parameter of the function to '0' and then to use preg_replace code to remove the title attribute. Here is the code:</p>
<p><strong>wp_list_categories:</strong></p>
<blockquote><pre class="php"><span style="color: #339900; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$cool_cats</span> = wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'echo=0'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$cool_cats</span> = <a href="http://www.php.net/preg_replace"><span style="color: #339900;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/title=<span style="color: #000099; font-weight: bold;">\"</span>(.*?)<span style="color: #000099; font-weight: bold;">\"</span>/'</span>,<span style="color: #ff0000;">''</span>,<span style="color: #0000ff;">$cool_cats</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/echo"><span style="color: #339900;">echo</span></a> <span style="color: #0000ff;">$cool_cats</span>;
<span style="color: #339900; font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p><strong>wp_list_pages:</strong></p>
<blockquote><pre class="php"><span style="color: #339900; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$clean_page_list</span> = wp_list_pages<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'echo=0'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$clean_page_list</span> = <a href="http://www.php.net/preg_replace"><span style="color: #339900;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/title=<span style="color: #000099; font-weight: bold;">\"</span>(.*?)<span style="color: #000099; font-weight: bold;">\"</span>/'</span>,<span style="color: #ff0000;">''</span>,<span style="color: #0000ff;">$clean_page_list</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/echo"><span style="color: #339900;">echo</span></a> <span style="color: #0000ff;">$clean_page_list</span>;
<span style="color: #339900; font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p>Personally I don't mind having the titles on my site navigation, and I use the <a href="http://atalayastudio.com/" target="_blank">NAVT</a> plugin to generate my nav, so the template tags don't apply for me.</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 2 --><p>I noticed in the <a href="http://wordpress.org/support/" target="_blank">WordPress forums</a> that a lot of people were asking how to remove the <em>title="example"</em> attribute from the links generated by the <a href="http://wordpress.org/" class="kblinker" target="_blank" title="More about wordpress &raquo;">WordPress</a> template tags <a href="http://codex.wordpress.org/Template_Tags/wp_list_categories" target="_blank">wp_list_categories</a> and <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages" target="_blank">wp_list_pages</a>. The title attribute is what generates the little text box with something like "View all posts filed under &lt;category&gt;" when you hover over a link.</p>
<p>I had previously devised a 'hack' for removing the dreaded title attribute for a theme I worked on. The key is to set the 'echo' parameter of the function to '0' and then to use preg_replace code to remove the title attribute. Here is the code:</p>
<p><strong>wp_list_categories:</strong></p>
<blockquote><pre class="php"><span style="color: #339900; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$cool_cats</span> = wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'echo=0'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$cool_cats</span> = <a href="http://www.php.net/preg_replace"><span style="color: #339900;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/title=<span style="color: #000099; font-weight: bold;">\"</span>(.*?)<span style="color: #000099; font-weight: bold;">\"</span>/'</span>,<span style="color: #ff0000;">''</span>,<span style="color: #0000ff;">$cool_cats</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/echo"><span style="color: #339900;">echo</span></a> <span style="color: #0000ff;">$cool_cats</span>;
<span style="color: #339900; font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p><strong>wp_list_pages:</strong></p>
<blockquote><pre class="php"><span style="color: #339900; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$clean_page_list</span> = wp_list_pages<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'echo=0'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$clean_page_list</span> = <a href="http://www.php.net/preg_replace"><span style="color: #339900;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/title=<span style="color: #000099; font-weight: bold;">\"</span>(.*?)<span style="color: #000099; font-weight: bold;">\"</span>/'</span>,<span style="color: #ff0000;">''</span>,<span style="color: #0000ff;">$clean_page_list</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/echo"><span style="color: #339900;">echo</span></a> <span style="color: #0000ff;">$clean_page_list</span>;
<span style="color: #339900; font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p>Personally I don't mind having the titles on my site navigation, and I use the <a href="http://atalayastudio.com/" target="_blank">NAVT</a> plugin to generate my nav, so the template tags don't apply for me.</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/wordpress/wordpress-tips-removing-the-title-attribute-from-wp_list_categories-wp_list_pages/feed</wfw:commentRss>
		</item>
	</channel>
</rss>

