<?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>OrangeWeb. &#187; Tutorials</title>
	<atom:link href="http://www.web-design-melbourne.net/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-design-melbourne.net</link>
	<description>A Little Bit of Orange Never Hurt Anyone</description>
	<lastBuildDate>Tue, 24 Nov 2009 11:19:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>CSS Image Techniques</title>
		<link>http://www.web-design-melbourne.net/2009/10/06/css-image-techniques/</link>
		<comments>http://www.web-design-melbourne.net/2009/10/06/css-image-techniques/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:10:27 +0000</pubDate>
		<dc:creator>Michael Raffaele</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css hacks]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.web-design-melbourne.net/?p=322</guid>
		<description><![CDATA[Websites always need good looking images and there are many ways a designer can make them look good. A problem I commonly run into is that when I have built a website with a CMS, when I hand the site over to the client they want to update the imagery, but can&#8217;t get it to [...]]]></description>
			<content:encoded><![CDATA[<p>Websites always need good looking images and there are many ways a designer can make them look good. A problem I commonly run into is that when I have built a website with a CMS, when I hand the site over to the client they want to update the imagery, but can&#8217;t get it to look as nice.</p>
<p>Generally I do try to keep image decorations to a minimum, but sometimes that little bit extra can help bring an image to life. Features such as a simple border or subtle drop shadow can really enhance an image.</p>
<p>Similiarly with images that are hyperlinks, we can&#8217;t expect to use javascript to change the image on a rollover, or create a sprite for every single image. CSS can provide an alternative to this issue with simplistic image rollovers.</p>
<p>I have created examples of 6 different techniques achieved with CSS that can help to enhance your image.</p>
<p>1.   Outside Border<br />
2.   Drop Shadow<br />
3.   Outer Glow<br />
4.   Outer Glow With Border<br />
5.   Rollover (Opacity)<br />
6.   Rollover (Outer Glow With Border)</p>
<p><a title="Css Image Techniques" href="http://www.web-design-melbourne.net/css-image-techniques/" target="_blank">Click here</a> to view the source and see these examples is action.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-melbourne.net/2009/10/06/css-image-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect The End of FLV (AS2)</title>
		<link>http://www.web-design-melbourne.net/2009/07/29/detect-the-end-of-flv-as2/</link>
		<comments>http://www.web-design-melbourne.net/2009/07/29/detect-the-end-of-flv-as2/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 10:29:40 +0000</pubDate>
		<dc:creator>Michael Raffaele</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash 8]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[flv]]></category>

		<guid isPermaLink="false">http://www.web-design-melbourne.net/?p=250</guid>
		<description><![CDATA[Since version 8, Flash has continued to include a wicked import video feature which allows anybody to compress AVI&#8217;s to FLV&#8217;s and control the output using a standard web video player format. Also provided are a few different skins for the author to choose from. This component is very quick and useful and above all, [...]]]></description>
			<content:encoded><![CDATA[<p>Since version 8, Flash has continued to include a wicked import video feature which allows anybody to compress AVI&#8217;s to FLV&#8217;s and control the output using a standard web video player format. Also provided are a few different skins for the author to choose from. This component is very quick and useful and above all, almost anyone can use it, not just a <a href="http://www.web-design-melbourne.net/">web designer</a>.</p>
<p>I was recently asked about &#8220;doing something&#8221; after a FLV has finished playing is Flash 8 (Actionscript 2), and I realised, hmmm&#8230;.</p>
<h5>I have never actually needed to do that before.</h5>
<p>So I decided to look into it, turns out it is actually really simple. Just run through the whole importing a video process (making sure it is a &#8220;progressive stream from the webserver&#8221;) and give your video component an instance name; in this case we&#8217;ll call it <em>videoPlayer</em>.</p>
<p>Next, create your new actions layer and add the following code to it:</p>
<div class="code"><span class="code-text">Code:</span><br />
stop();<br />
var listener:Object = new Object();<br />
listener.complete = function(evt:Object):Void {<br />
//DO ACTIONS HERE<br />
}<br />
videoPlayer.addEventListener(&#8221;complete&#8221;, listener);</div>
<p>That&#8217;s it! It&#8217;s that simple and you can make it do whatever you like.</p>
<p>Some more useful things to know are the following:</p>
<div class="code"><span class="code-text">Code:</span><br />
//This code displays the state of the video. E.g stopped<br />
trace(evt.state);</p>
<p>//This code displays entire video&#8217;s length.<br />
trace(evt.playheadTime);</p></div>
<p>Click <a href="http://www.web-design-melbourne.net/wp-content/uploads/2009/07/end-of-flv/" target="_blank">here</a> to view a fully working example or <a href="http://www.web-design-melbourne.net/wp-content/uploads/2009/07/end-of-flv/end-of-flv.rar">here</a> to download it instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-melbourne.net/2009/07/29/detect-the-end-of-flv-as2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Useful HTACCESS Scripts</title>
		<link>http://www.web-design-melbourne.net/2009/06/18/more-useful-htaccess-scripts/</link>
		<comments>http://www.web-design-melbourne.net/2009/06/18/more-useful-htaccess-scripts/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 12:37:45 +0000</pubDate>
		<dc:creator>Michael Raffaele</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>
		<category><![CDATA[301 redirects]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htaccess 301]]></category>
		<category><![CDATA[Search Engine Optimisation (SEO)]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.web-design-melbourne.net/?p=189</guid>
		<description><![CDATA[In the previous article I was rambling about 301 redirects using a .htaccess file. In this article I will show a couple of other very useful htacess scripts that have been helpful in my time as a website designer.
First.
The following script will 301 redirect from a non WWW to a WWW. Meaning if you enter [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous article I was rambling about <a href="http://www.web-design-melbourne.net/182/htaccess-301-redirects">301 redirects</a> using a .htaccess file. In this article I will show a couple of other very useful htacess scripts that have been helpful in my time as a <a href="http://www.web-design-melbourne.net/">website designer</a>.</p>
<h5>First.</h5>
<p>The following script will 301 redirect from a non WWW to a WWW. Meaning if you enter the url: http://domain.com.au it will automatically be redirected to http://www.domain.com.au. It is a personal preference, I think the having the WWW in the URL looks nicer, but not everyone will agree.</p>
<p>I have also read that it can help with <a href="http://www.web-design-melbourne.net/category/search-engine-optimisation-seo">SEO</a> by removing any possibility of Google thinking there may be duplicate content. When linking to your website it is always best to pick one form (with www or without www) and stick with it, this script can help if the link is out of your control.</p>
<div class="code"><span class="code-text">Code:</span><br />
Options +FollowSymlinks<br />
RewriteEngine on</p>
<p>Rewritecond %{http_host} ^yourdomain.com.au [nc]<br />
Rewriterule ^(.*)$ http://www.yourdomain.com.au/$1 [r=301,nc]</p></div>
<p>If for some reason this is causing issues with your server try the following code. (It seems to work better with <a href="http://www.joomla.org">Joomla!</a> 1.5)</p>
<div class="code"><span class="code-text">Code:</span><br />
Options +FollowSymlinks<br />
RewriteEngine on</p>
<p>RewriteCond %{HTTP_HOST} ^yourdomain\.com\.au$ [NC]<br />
RewriteRule ^(.*)$ http://www.yourdomain.com.au/$1 [R=301,L]</p></div>
<h5>Second.</h5>
<p>The following script is to remove the ugly &#8220;index.php&#8221; on your homepage you can sometimes get when linking back to it.</p>
<p>For example: http://www.domain.com.au/index.php would simply become http://www.domain.com.au. I think that the URL without the index.php look much more attractive &#8211; again just my opinion.</p>
<div class="code"><span class="code-text">Code:</span><br />
Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/<br />
RewriteRule ^index\.php$ http://www.yourdomain.com/ [R=301,L]</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-melbourne.net/2009/06/18/more-useful-htaccess-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Htaccess 301 Redirects</title>
		<link>http://www.web-design-melbourne.net/2009/06/15/htaccess-301-redirects/</link>
		<comments>http://www.web-design-melbourne.net/2009/06/15/htaccess-301-redirects/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 12:41:52 +0000</pubDate>
		<dc:creator>Michael Raffaele</dc:creator>
				<category><![CDATA[Search Engine Optimisation (SEO)]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>
		<category><![CDATA[301 redirects]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htaccess 301]]></category>
		<category><![CDATA[redirect entire site]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.web-design-melbourne.net/?p=182</guid>
		<description><![CDATA[Working for a high end Search Engine Optmisation (SEO) and Melbourne Web Design company has taught me many useful things that I need to take into consideration when developing an entirely new web site or modifying an existing one.
In the past when I had deleted a page on a website for one reason or another, [...]]]></description>
			<content:encoded><![CDATA[<p>Working for a high end <a href="http://www.web-design-melbourne.net/category/search-engine-optimisation-seo">Search Engine Optmisation</a> (SEO) and <a href="http://www.web-design-melbourne.net/">Melbourne Web Design</a> company has taught me many useful things that I need to take into consideration when developing an entirely new web site or modifying an existing one.</p>
<p>In the past when I had deleted a page on a website for one reason or another, I deleted it and that was it. I had no thoughts about what search engines have indexed it, what external sites may have been linking to it or even the overall power and relevancy of the page itself.</p>
<p>These days as soon as one page has been deleted or moved, I <strong>ALWAYS</strong> perform a 301 redirect to the new URL, a related URL or back to the homepage. This ensures any value the page had is not entirely wasted and may be transferred over.</p>
<p>To perform the redirects I use a .htaccess file with the following very simple code:</p>
<div class="code"><span class="code-text">Code:</span><br />
Redirect 301 /oldurl http://www.newurl.com.au</div>
<p>301 redirects using htacess can be very powerful. If I have moved an entire 200 page web site over to a new domain using the exact same structure and I plan to transfer all existing search engine rankings across, my best bet is to perform 301 redirects for each page.</p>
<p>Obviously, we don&#8217;t want to create 200 redirects manually so this can be easily avoided using the following.</p>
<div class="code"><span class="code-text">Code:</span><br />
RewriteEngine on<br />
redirectMatch 301 ^/(.*)$ http://www.newurl.com.au/$1</div>
<p>This code would sit in the htaccess file of the OLD domain name. If I had this htaccess on my current URL (web-design-melbourne.net), any URL would be redirected to newurl.com.au. For example:</p>
<p><strong>http://www.web-design-melbourne.net/testurl.html</strong><br />
&#8211;&gt; would become  &#8211;&gt;<br />
<strong>http://www.newurl.com.au/</strong><strong>testurl.html</strong></p>
<p>This is a powerful 301 redirect script using htaccess and I have used it without error countless times.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-melbourne.net/2009/06/15/htaccess-301-redirects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Automatic PHP Mailer</title>
		<link>http://www.web-design-melbourne.net/2009/06/05/quick-automatic-php-mailer/</link>
		<comments>http://www.web-design-melbourne.net/2009/06/05/quick-automatic-php-mailer/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 15:46:25 +0000</pubDate>
		<dc:creator>Michael Raffaele</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[php mailer]]></category>
		<category><![CDATA[simple php mailer]]></category>

		<guid isPermaLink="false">http://www.web-design-melbourne.net/?p=67</guid>
		<description><![CDATA[I am not a web developer, nor do I pretend to be, but as a web designer I do like to dabble. I have built up quite a range of useful scripts that I have written and I continually use over and again.
A very useful and simple script, commonly used by myself, is an automatic [...]]]></description>
			<content:encoded><![CDATA[<p>I am not a web developer, nor do I pretend to be, but as a <a href="http://www.web-design-melbourne.net/">web designer</a> I do like to dabble. I have built up quite a range of useful scripts that I have written and I continually use over and again.</p>
<p>A very useful and simple script, commonly used by myself, is an automatic PHP mailer using a FOREACH loop to get all the POST data. This method is quick and easy to implement.</p>
<h5>Why should I use a FOREACH loop in a PHP mailer?</h5>
<p>The answer is simple, this script enables you to get all the field names and values from a form automatically. Lets have a look what I mean..</p>
<p><img class="alignnone size-full wp-image-70" title="simple-form" src="http://www.web-design-melbourne.net/wp-content/uploads/2009/06/simple-form.jpg" alt="simple-form" width="327" height="145" /><span class="caption">A very simple form using only 3 text fields</span></p>
<p>If I was to email the form results using PHP, on my confirm page I would have code very similar to the following&#8230;</p>
<div class="code"><span class="code-text">Code:</span><br />
&lt;?php<br />
$to = &#8220;test@thisisatestemail.com.au&#8221;;<br />
$from = &#8220;no-reply@thisisatestemail.com.au&#8221;;<br />
$subject = &#8220;This is my subject&#8221;;</p>
<p>$message = &#8220;Name: &#8221; . $_POST['fname'] . &#8220;\n&#8221;;<br />
$message .= &#8220;Last Name: &#8221; . $_POST['lname'] . &#8220;\n&#8221;;<br />
$message .= &#8220;Email: &#8221; . $_POST['email'];</p>
<p>$headers = &#8220;From: $from&#8221;;</p>
<p>mail($to, $subject, $message, $headers)<br />
?&gt;</p></div>
<p>Now, don&#8217;t get me wrong, this works great, and you do have ultimate control over what fields are displayed and how. But imagine a form with say 30+ fields? You don&#8217;t want to have to append the field name to the message 30+ times. For 3 immediate reasons:</p>
<p><strong>1.</strong> It can be a complete waste of time<br />
<strong>2. </strong> As there is more code, the chances for a syntax error greatly increase<br />
<strong>3.</strong> It is repetitive and boring to write</p>
<p>The easiest way around it is to create a FOREACH loop for all the values in POST. An example of said code is as follows:</p>
<div class="code"><span class="code-text">Code:</span><br />
$to = &#8220;test@thisisatestemail.com.au&#8221;;<br />
$from = &#8220;no-reply@thisisatestemail.com.au&#8221;;<br />
$subject = &#8220;This is my subject&#8221;;<br />
$message       = &#8220;&#8221;;<br />
$headers       = &#8220;From: $from\r\n&#8221;;<br />
//This is the loop that grabs POST values and adds them to the variable<br />
foreach($_POST AS $field =&gt; $value) {<br />
$message    .= $field . &#8220;: &#8221; . $value .&#8221;\r\n&#8221;;<br />
}<br />
mail($to, $subject, $message, $headers);</div>
<p>Basically this code grabs all the fields and values in POST and appends them to the variable $message, which is then mailed. You can take it a little bit further and exclude certain fields that you do not want to see in your email, such as the submit button.</p>
<p>You can download a working form using this PHP mailer <a href="http://www.web-design-melbourne.net/wp-content/uploads/2009/06/mailer.rar" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-melbourne.net/2009/06/05/quick-automatic-php-mailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
