<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.brightscape.net/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Brightscape Blog</title>
	
	<link>http://brightscape.net/blog</link>
	<description />
	<lastBuildDate>Mon, 26 Jul 2010 17:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	
<cloud domain="brightscape.net" port="80" path="/blog/?rsscloud=notify" registerProcedure="" protocol="http-post" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.brightscape.net/brightscape" /><feedburner:info uri="brightscape" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://brightscape.net/blog/?pushpress=hub" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><feedburner:emailServiceId>brightscape</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.brightscape.net/brightscape" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://my.feedlounge.com/external/subscribe?url=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://static.feedlounge.com/buttons/subscribe_0.gif">Subscribe with FeedLounge</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.brightscape.net%2Fbrightscape" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><item>
		<title>Use CSS3 Media Queries To Create Mobile Version of Your Website</title>
		<link>http://brightscape.net/blog/css3-media-queries-create-mobile-version-website/</link>
		<comments>http://brightscape.net/blog/css3-media-queries-create-mobile-version-website/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 17:00:26 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1411</guid>
		<description><![CDATA[I read an excellent article highlighting how to create iPhone, Android and iPad&#8211;friendly versions of your website. This is achieved with CSS3 media queries, either in your main stylesheet or using a seperate stylesheet. The key point is that you can simply add the following [...]<p><hr />
<a href="http://brightscape.net/blog/css3-media-queries-create-mobile-version-website/">Use CSS3 Media Queries To Create Mobile Version of Your Website</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p>I read an excellent article highlighting how to create iPhone, Android and iPad&#8211;friendly versions of your website.</p>
<p>This is achieved with CSS3 media queries, either in your main stylesheet or using a seperate stylesheet.</p>
<p>The key point is that you can simply add the following code to the bottom of your main stylesheet:</p>
<p><code>@media only screen and (max-device-width: 480px) {<br />
/* Add iPhone styles here */<br />
}</code></p>
<p>Or you can refer to an external stylesheet below your main stylesheet as follows:</p>
<p><code>&lt;link rel="stylesheet" type="text/css" media="only screen and (max-device-width: 480px)" href="http://www.example.com/css/mobile.css" /&gt;</code></p>
<p>Read the full article here: <a href='http://www.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/'>How To Use CSS3 Media Queries To Create a Mobile Version of Your Website</a> &#8211; Smashing Magazine</p>
<p><hr />
<a href="http://brightscape.net/blog/css3-media-queries-create-mobile-version-website/">Use CSS3 Media Queries To Create Mobile Version of Your Website</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=_-VJZPkBhOE:LnhnJLKekU0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=_-VJZPkBhOE:LnhnJLKekU0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=_-VJZPkBhOE:LnhnJLKekU0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=_-VJZPkBhOE:LnhnJLKekU0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=_-VJZPkBhOE:LnhnJLKekU0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=_-VJZPkBhOE:LnhnJLKekU0:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=_-VJZPkBhOE:LnhnJLKekU0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=_-VJZPkBhOE:LnhnJLKekU0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=_-VJZPkBhOE:LnhnJLKekU0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/_-VJZPkBhOE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/css3-media-queries-create-mobile-version-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 “Thelonious”</title>
		<link>http://brightscape.net/blog/wordpress-3-0-thelonious/</link>
		<comments>http://brightscape.net/blog/wordpress-3-0-thelonious/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 11:30:27 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1369</guid>
		<description><![CDATA[<img src="http://brightscape.net/blog/tmp/2009/11/wplogoblue-notext-rgb-150x150.png" class="blogimg" width="80" alt="Wordpress logo" title="Wordpress logo" />We&#8217;ve been waiting a while for a final release of WordPress 3.0, and its finally here. When you see what&#8217;s new I think you&#8217;ll agree that it&#8217;s been worth the wait. WordPress 3.0 includes lots of improvements and updates&#8212;from a simpler and cleaner user&#8211;interface, to [...]<p><hr />
<a href="http://brightscape.net/blog/wordpress-3-0-thelonious/">WordPress 3.0 &#8220;Thelonious&#8221;</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been waiting a while for a final release of WordPress 3.0, and its finally here. When you see what&#8217;s new I think you&#8217;ll agree that it&#8217;s been worth the wait.</p>
<p><img src="http://brightscape.net/blog/tmp/2009/11/wplogoblue-notext-rgb-150x150.png" alt="Wordpress logo" title="Wordpress logo" width="100" height="100" class="blogimg" /></p>
<p>WordPress 3.0 includes lots of improvements and updates&#8212;from a simpler and cleaner user&#8211;interface, to some more major changes such as improved post type options (I.e. Newsletter, Product and Contacts).</p>
<p>You&#8217;ll see more about the new features in the video below. But here are a few of the highlights that stood&#8211;out to me with this latest release:</p>
<ul>
<li>Bulk updates &#8211; Update your WordPress installation or up to 15 plugins at once</li>
<li>Custom menu&#8217;s &#8211; More advanced menu options, such as drop&#8211;downs</li>
<li>Custom header image &#8211; Easily apply different custom header images to individual posts</li>
<li>Custom post types &#8211; New post types including Products, Contacts, Employees and Newsletters takes WordPress closer to being a fully&#8211;fledged <acronym title="Content Management System">CMS</acronym></li>
<li>MU + WP 3.0 &#8211; Control multiple WordPress sites from a single installation</li>
</ul>
<h3 class="toppad">See what&#8217;s New in Wordress 3.0</h3>
<p><embed src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21"  type="application/x-shockwave-flash" width="530" height="298" wmode="transparent" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"  title="Introducing WordPress 3.0 &quot;Thelonious&quot;"></embed></p>
<p>Read more about WordPress 3.0 &#8220;Thelonious&#8221; <a href="http://wordpress.org/development/2010/06/thelonious/" rel="external">here</a>, or you can download it <a href="http://wordpress.org/download/" rel="external">here</a>.</p>
<p><hr />
<a href="http://brightscape.net/blog/wordpress-3-0-thelonious/">WordPress 3.0 &#8220;Thelonious&#8221;</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=Ch7_wwflCiI:sEmvDpDFGSE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=Ch7_wwflCiI:sEmvDpDFGSE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ch7_wwflCiI:sEmvDpDFGSE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ch7_wwflCiI:sEmvDpDFGSE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=Ch7_wwflCiI:sEmvDpDFGSE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ch7_wwflCiI:sEmvDpDFGSE:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ch7_wwflCiI:sEmvDpDFGSE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=Ch7_wwflCiI:sEmvDpDFGSE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ch7_wwflCiI:sEmvDpDFGSE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/Ch7_wwflCiI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/wordpress-3-0-thelonious/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Truncate SimplePie Content with PHP</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/</link>
		<comments>http://brightscape.net/blog/truncate-simplepie-content-with-php/#comments</comments>
		<pubDate>Wed, 26 May 2010 16:45:45 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SimplePie]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323</guid>
		<description><![CDATA[<img src="http://brightscape.net/blog/tmp/2010/01/php-e1263383654530.png" class="blogimg" width="80" alt="PHP logo" title="PHP logo" />This article is a follow-up to an earlier blog post about using SimplePie to display an RSS feed on your website. Sometimes it can be useful to ensure that a piece of content stays on a single line (e.g. a title), or make sure that [...]<p><hr />
<a href="http://brightscape.net/blog/truncate-simplepie-content-with-php/">Truncate SimplePie Content with PHP</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://brightscape.net/blog/tmp/2010/01/php-e1263383654530.png" alt="PHP logo" title="PHP logo" style="background-color:#fff" width="100" height="52" class="blogimg" /> This article is a follow-up to an earlier blog post about using <a href="http://brightscape.net/blog/simplepie-parse-rss-atom-feeds/">SimplePie to display an RSS feed</a> on your website.</p>
<p>Sometimes it can be useful to ensure that a piece of content stays on a single line (e.g. a title), or make sure that some text stays to less than 255 characters (e.g. a description) and gets truncated after that point.</p>
<p>My previous blog article showed how to do this with PHP, and I will give a brief recap below. However, the focus of this blog post is to improve truncation of content even further.</p>
<h2 class="toppad">Old Truncation Technique</h2>
<p>The following PHP string truncates or shortens the title to 45 characters and then echo&#8217;s the list of titles parsed from an RSS feed and displays it on the page with ellipses (&#8230;) appended to the end of the title: <code>< ?php echo substr($item->get_title(), 0, 42) . '...'; ?></code></p>
<p>For example: <strong>Here Is a Title That Is 42 Characters long&#8230;</strong> You can see that the title itself is 42 characters long so it hasn&#8217;t been truncated, but the PHP has appended ellipses (&#8230;) to the end of the title. Doing this is quite unnecessary <em>unless</em> the title is over 42 characters.</p>
<h2 class="toppad">Improved Truncation Technique</h2>
<p>The way to deal with this more effectively is to determine the length of the string and then <em>only</em> append the ellipses (&#8230;) if the length of the string exceeds the parameters we have set. This can be done as follows:</p>
<pre class="brush: php;">
&lt;?php
  echo substr($item-&gt;get_description(), 0, 45);
  $str = $item-&gt;get_description();
  if (strlen($str) &gt; 45) echo '...';
?&gt;
</pre>
</p>
<p>To explain the above code line by line, <code>echo substr($item->get_title(), 0, 45);</code>, this line echo&#8217;s or outputs the parsed feed title using SimplePie. The <code>substr</code> function returns the portion of string specified by the start and length parameters. In the above case, 0 represents the first character, and 45 represents the 45th character (spaces are included as characters).</p>
<p>If the title is 45 characters or less, the above code works fine and doesn&#8217;t append the ellipses (&#8230;), which is ideal. However, what if the title is 60 characters in length?</p>
<p>The second line of the above code, <code>$str = $item->get_description();</code> converts the whole title into a string called <code>$str</code>.</p>
<p>The third line of code uses the <code>strlen</code> function, which returns the length of the given string (which we have called <code>$str</code>). By using an <code>if</code> statement in the final line of code <code>if (strlen($str) > 45) echo '...';</code>, we are saying, <em>if</em> the length of the string is greater than 45 characters show the ellipses (&#8230;) otherwise ignore the if statement and <em>don&#8217;t</em> show the ellipses (&#8230;).</p>
<p>It&#8217;s a very simple tweak that can be applied to outputting SimplePie or any other PHP, and it can help to retain a better looking page by avoiding text wrapping.</p>
<p><hr />
<a href="http://brightscape.net/blog/truncate-simplepie-content-with-php/">Truncate SimplePie Content with PHP</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=ly4I1wIZQUU:rzHValJf8IQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=ly4I1wIZQUU:rzHValJf8IQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=ly4I1wIZQUU:rzHValJf8IQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=ly4I1wIZQUU:rzHValJf8IQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=ly4I1wIZQUU:rzHValJf8IQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=ly4I1wIZQUU:rzHValJf8IQ:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=ly4I1wIZQUU:rzHValJf8IQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=ly4I1wIZQUU:rzHValJf8IQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=ly4I1wIZQUU:rzHValJf8IQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/ly4I1wIZQUU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/truncate-simplepie-content-with-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>April 2010 Digest</title>
		<link>http://brightscape.net/blog/april-2010-digest/</link>
		<comments>http://brightscape.net/blog/april-2010-digest/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:15:46 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1307</guid>
		<description><![CDATA[April has been a very busy month so this months digest is short-and-sweet. I&#8217;ve also got another PHP tutorial in progress which looks at truncating strings of text for improved aesthetics in the next couple of weeks. SEO Official Google Webmaster Central Blog: Using Site [...]<p><hr />
<a href="http://brightscape.net/blog/april-2010-digest/">April 2010 Digest</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p>April has been a very busy month so this months digest is short-and-sweet. I&#8217;ve also got another PHP tutorial in progress which looks at truncating strings of text for improved aesthetics in the next couple of weeks.</p>
<h2 class="toppad">SEO</h2>
<p><strong>Official Google Webmaster Central Blog</strong>: <a href="http://googlewebmastercentral.blogspot.com/2010/04/using-site-speed-in-web-search-ranking.html" rel="external">Using Site Speed in Web Search Ranking</a><br />
Google announced the use of page load time in their algorithm. We saw this one coming with the inclusion of page load time data in Webmaster Tools and Google&#8217;s Page Speed tool.</p>
<blockquote><p>Currently, fewer than 1% of search queries are affected by the site speed signal in our implementation and the signal for site speed only applies for visitors searching in English on Google.com at this point.</p></blockquote>
<p>Further reading:<br />
<strong>Search Engine Roundtable:</strong> <a href="http://www.seroundtable.com/archives/021976.html" rel="external">April 2010 Google Webmaster Report</a><br />
<strong>Yoast:</strong> <a href="http://yoast.com/site-speed-ranking-factor/" rel="external">Site Speed Ranking Factors</a><br />
<strong>Matt Cutt&#8217;s Blog:</strong> <a href="http://www.mattcutts.com/blog/site-speed/" rel="external">Site Speed</a></p>
<h2 class="toppad">jQuery</h2>
<p><strong>Sitepoint:</strong> <a href="http://articles.sitepoint.com/article/jquery-1-4-greatest-hits" rel="external"></a> Earle Castledine highlighted some of his favourite new features in jQuery 1.4. This is worth a read if you don&#8217;t want to get bogged down with <em>every single</em> new feature in jQuery, but instead see some practical uses for the new features and changes in version 1.4.</p>
<h2 class="toppad">Other News</h2>
<p><strong>Ajaxian:</strong> <a href="http://ajaxian.com/archives/firefox-account-manager" rel="external">Firefox Account Manager</a><br />
Mozilla have been working on an interesting project called <a href="http://hacks.mozilla.org/2010/04/account-manager-coming-to-firefox/" rel="external">Account Manager</a> that will enable users to log into the browser and subsequently have access to their stored passwords and login details.</p>
<p>The specification proposes using a static JSON document, automatically discovered by the browser, which describes what login methods the site supports. In addition, The browser needs a way to check which user (if any) is currently signed in. To do this, an HTTP header directive is set in the same code where you would set a cookie with a session ID. <a href="http://videos.mozilla.org/labs/accountmanager/account_manager_intro.ogv" rel="external">Watch the video here</a>.</p>
<p>As a sidenote, I recently launched my new personal site this month, <a href="http://rpardz.com/" rel="external">Robin Parduez</a>.</p>
<p><hr />
<a href="http://brightscape.net/blog/april-2010-digest/">April 2010 Digest</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=s4QcxeJlEBY:-hk80LusCNE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=s4QcxeJlEBY:-hk80LusCNE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=s4QcxeJlEBY:-hk80LusCNE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=s4QcxeJlEBY:-hk80LusCNE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=s4QcxeJlEBY:-hk80LusCNE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=s4QcxeJlEBY:-hk80LusCNE:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=s4QcxeJlEBY:-hk80LusCNE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=s4QcxeJlEBY:-hk80LusCNE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=s4QcxeJlEBY:-hk80LusCNE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/s4QcxeJlEBY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/april-2010-digest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>

		<enclosure url="http://feeds.brightscape.net/~r/brightscape/~5/MbtgkZKQqCg/account_manager_intro.ogv" length="2719447" type="video/ogg" /><feedburner:origEnclosureLink>http://videos.mozilla.org/labs/accountmanager/account_manager_intro.ogv</feedburner:origEnclosureLink></item>
		<item>
		<title>March 2010 Digest</title>
		<link>http://brightscape.net/blog/march-2010-digest/</link>
		<comments>http://brightscape.net/blog/march-2010-digest/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 16:30:29 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1246</guid>
		<description><![CDATA[The following blog post is an amalgamation of March 2010 highlights in SEO, web design and web coding. If you missed any of these articles, you might find them useful. SEO Highlights Bing Webmaster Center Blog: Illuminating the path to SEO for Silverlight Bing have [...]<p><hr />
<a href="http://brightscape.net/blog/march-2010-digest/">March 2010 Digest</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p>The following blog post is an amalgamation of March 2010 highlights in SEO, web design and web coding. If you missed any of these articles, you might find them useful.</p>
<h2 class="toppad">SEO Highlights</h2>
<p><strong>Bing Webmaster Center Blog:</strong> <a href="http://www.bing.com/community/blogs/webmaster/archive/2010/03/05/illuminating-the-path-to-seo-for-silverlight.aspx" rel="external">Illuminating the path to SEO for Silverlight</a><br />
Bing have been posting some great content on their Webmaster Center Blog, and early in March they released an article discussing optimisation of Silverlight video content for search. The article is well-worth a read for SEO&#8217;s and Webmasters (and a lot of the principles apply to Flash as well).<br />
<span id="more-1246"></span></p>
<p><strong>LBi Search Blog:</strong> <a href="http://blog.lbi-netrank.co.uk/seo-breadcrumbs-for-site-hierarchies-in-google/" rel="external">SEO breadcrumbs for site hierarchies in Google</a><br />
My colleague at LBi &#8211; <a href="http://twitter.com/simonhowland" rel="external">Simon Howland</a> &#8211; wrote an interesting article looking at breadcrumb trail best practice for SEO.</p>
<p><strong>SEO Gadget:</strong> <a href="http://seogadget.co.uk/surviving-seo-site-migration/" rel="external">Surviving a Site Migration (An SEO&#8217;s Guide)</a><br />
Moving a site is something that strikes fear into the hearts of many webmasters. Loosing rankings and traffic are a real risk if site migration is done incorrectly. This article gives some good pointers for moving a site to a new domain the right way.</p>
<p><strong>Search Engine Journal:</strong> <a href="http://www.searchenginejournal.com/seo-for-ajax/19138/" rel="external">SEO for Ajax</a><br />
Ajax has long been a sticky subject when it comes to creating search-friendly websites. This simple, best practice guide should help make Ajax-heavy sites more search-friendly (although I would still recommend steering away from heavy use of Ajax for content that should be crawled and indexed by search engines).</p>
<p><strong>Conversation Marketing:</strong> <a href="http://www.conversationmarketing.com/2010/03/subfolders-subdomains-and-new.htm" rel="external">Subfolders, subdomains and new domains: Where your blog should live</a><br />
Ian Lurie wrote a nice article highlighting some of the Pro&#8217;s and Con&#8217;s of using a subdomains, subfolder or a new domain for adding a blog to your current site. In agreement with Ian&#8217;s article I have to say in a lot of cases, using a subfolder would be my preference (although of course each site, server setup and clients requirements are different).</p>
<p><strong>Stone Temple Consulting:</strong> <a href="http://www.stonetemple.com/articles/interview-matt-cutts-012510.shtml" rel="external">Matt Cutts Interviewed by Eric Enge</a><br />
An extensive interview with Google&#8217;s <a href="http://twitter.com/mattcutts" rel="external">Matt Cutts</a> by Eric Enge. This interview is definitely worth a read for SEO&#8217;s and webmasters-alike.</p>
<h2 class="toppad">Web Design/Development &amp; Coding Highlights</h2>
<p><strong>Web Designer Notebook:</strong> <a href="http://webdesignernotebook.com/css/the-little-known-font-size-adjust-css3-property/" rel="external">The Little Known font-size-adjust CSS3 Property</a><br />
Using font-stacks is common-practice, but how can you deal with relative differences in the sizes between fonts? The CSS3 <code>font-size-adjust</code> technique let&#8217;s you do just that (at least in Firefox).</p>
<p><strong>Nettuts:</strong> <a href="http://net.tutsplus.com/tutorials/javascript-ajax/uncovering-jquerys-hidden-features/" rel="external">Uncovering jQuery&#8217;s Hidden Features</a><br />
Delving below the surface of the jQuery JavaScript framework to see some of its not-so-obvious features and capabilities.</p>
<p><strong>CSS3, please!:</strong> <a href="http://css3please.com/" rel="external">Cross-Browser CSS3 Rule Generator</a><br />
Quickly and easily check CSS3 capabilities within your browser by editing the inline styles. Then copy and paste the CSS into your own stylesheet. This is definitely a bookmarked tool for me.</p>
<p><strong>Cats Who Code:</strong> <a href="http://www.catswhocode.com/blog/10-useful-code-snippets-to-develop-iphone-friendly-websites" rel="external">10 Useful code snippets to develop iPhone-friendly websites</a><br />
Some very practical code snippets for detecting an iPhone, optimising content width, applying CSS and hiding the toolbar&#8230; among other tips.</p>
<p>Each month I will be hand-picking a selection of the most useful articles in SEO, web design/development and coding in a digest format. If there are any specific topics you would like me to include please drop me a comment below.</p>
<p><hr />
<a href="http://brightscape.net/blog/march-2010-digest/">March 2010 Digest</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=0Bd11795Tso:cBTBLA4v2yM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=0Bd11795Tso:cBTBLA4v2yM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=0Bd11795Tso:cBTBLA4v2yM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=0Bd11795Tso:cBTBLA4v2yM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=0Bd11795Tso:cBTBLA4v2yM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=0Bd11795Tso:cBTBLA4v2yM:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=0Bd11795Tso:cBTBLA4v2yM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=0Bd11795Tso:cBTBLA4v2yM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=0Bd11795Tso:cBTBLA4v2yM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/0Bd11795Tso" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/march-2010-digest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed Up with CSS3 Gradients</title>
		<link>http://brightscape.net/blog/speed-up-with-css3-gradients/</link>
		<comments>http://brightscape.net/blog/speed-up-with-css3-gradients/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 15:30:07 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1205</guid>
		<description><![CDATA[Using progressive enhancement techniques in web design is good practice&#8212;where new browsers can take advantage of improvements in HTML standards and new CSS capabilities. Chris Coyier over at CSS-Tricks, has written an excellent article discussing a CSS3 progressive enhancement technique for rendering gradients, whilst retaining [...]<p><hr />
<a href="http://brightscape.net/blog/speed-up-with-css3-gradients/">Speed Up with CSS3 Gradients</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p>Using progressive enhancement techniques in web design is good practice&#8212;where new browsers can take advantage of improvements in HTML standards and new CSS capabilities. </p>
<p><a href="http://twitter.com/chriscoyier" rel="external">Chris Coyier</a> over at <a href="http://css-tricks.com/" rel="external">CSS-Tricks</a>, has written an excellent article discussing a CSS3 progressive enhancement technique for rendering gradients, whilst retaining a fallback image-based option for non-compliant browsers. <a href="http://css-tricks.com/css3-gradients/" rel="external">Read the post here</a>.</p>
<p>I&#8217;m all in favour of improving page load times as you&#8217;ll see from other posts on Brightscape <a href="http://brightscape.net/blog/compress-your-web-pages-with-mod_deflate/">here</a>, <a href="http://brightscape.net/blog/compress-javascript-files/">here</a> and <a href="http://brightscape.net/blog/squeeze-your-css-files-into-shape/">here</a>. Therefore, I found this article of interest and felt it worthy of sharing with the community.</p>
<p><hr />
<a href="http://brightscape.net/blog/speed-up-with-css3-gradients/">Speed Up with CSS3 Gradients</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=Ry0m2pLw2kk:2aHKavll-rY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=Ry0m2pLw2kk:2aHKavll-rY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ry0m2pLw2kk:2aHKavll-rY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ry0m2pLw2kk:2aHKavll-rY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=Ry0m2pLw2kk:2aHKavll-rY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ry0m2pLw2kk:2aHKavll-rY:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ry0m2pLw2kk:2aHKavll-rY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=Ry0m2pLw2kk:2aHKavll-rY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=Ry0m2pLw2kk:2aHKavll-rY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/Ry0m2pLw2kk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/speed-up-with-css3-gradients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Usage Plugin for Firebug</title>
		<link>http://brightscape.net/blog/css-usage-plugin-for-firebug/</link>
		<comments>http://brightscape.net/blog/css-usage-plugin-for-firebug/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:00:38 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Addon]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1125</guid>
		<description><![CDATA[<img src="http://brightscape.net/blog/tmp/2010/02/addon.png" class="blogimg" width="80" alt="Firefox addon" title="Firefox addon" />An extremely useful tool for finding redundant CSS selectors in your site builds. The plugin integrates with the Firebug addon in Firefox making this a useful addition to Firebug&#8217;s impressive list of features. Download the CSS Usage plugin. As a website grows so does its [...]<p><hr />
<a href="http://brightscape.net/blog/css-usage-plugin-for-firebug/">CSS Usage Plugin for Firebug</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://brightscape.net/blog/tmp/2010/02/addon.png" alt="Firefox addon" title="Firefox addon" width="32" height="32" class="blogimg" style="background-color:#fff" /> An extremely useful tool for finding <a href="http://www.nealgrosskopf.com/tech/thread.php?pid=66" rel="external">redundant CSS selectors</a> in your site builds.</p>
<p>The plugin integrates with the <a href="https://addons.mozilla.org/en-US/firefox/addon/10704" rel="external">Firebug</a> addon in Firefox making this a useful addition to Firebug&#8217;s impressive list of <a href="http://www.cssnewbie.com/tool-review-firebug/" rel="external">features</a>.</p>
<p>Download the <a href="https://addons.mozilla.org/en-US/firefox/addon/10704" rel="external">CSS Usage</a> plugin.</p>
<blockquote><p>As a website grows so does its stylesheet. The problem is, the opposite is not true.</p></blockquote>
<p><hr />
<a href="http://brightscape.net/blog/css-usage-plugin-for-firebug/">CSS Usage Plugin for Firebug</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=HnsLEaS3qgA:iu7BDFzKiRY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=HnsLEaS3qgA:iu7BDFzKiRY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=HnsLEaS3qgA:iu7BDFzKiRY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=HnsLEaS3qgA:iu7BDFzKiRY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=HnsLEaS3qgA:iu7BDFzKiRY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=HnsLEaS3qgA:iu7BDFzKiRY:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=HnsLEaS3qgA:iu7BDFzKiRY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=HnsLEaS3qgA:iu7BDFzKiRY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=HnsLEaS3qgA:iu7BDFzKiRY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/HnsLEaS3qgA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/css-usage-plugin-for-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 WordPress htaccess Tips</title>
		<link>http://brightscape.net/blog/3-wordpress-htaccess-tips/</link>
		<comments>http://brightscape.net/blog/3-wordpress-htaccess-tips/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 15:00:25 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[HTACCESS]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1091</guid>
		<description><![CDATA[<img src="http://brightscape.net/blog/tmp/2009/11/wplogoblue-notext-rgb-300x300.png" class="blogimg" width="80" alt="Wordpress logo" title="Wordpress logo" />WordPress is a powerful blogging/CMS platform that enables a variety of different Internet users to create and publish content with ease. The following tips will enable you to improve your WordPress blog even further. Permalinks for SEO This is something I try to do straight [...]<p><hr />
<a href="http://brightscape.net/blog/3-wordpress-htaccess-tips/">3 WordPress htaccess Tips</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://brightscape.net/blog/tmp/2009/11/wplogoblue-notext-rgb-300x300.png" alt="Wordpress logo" title="Wordpress logo" width="80" height="80" class="blogimg" /> WordPress is a powerful blogging/CMS platform that enables a variety of different Internet users to create and publish content with ease. The following tips will enable you to improve your WordPress blog even further.<span id="more-1091"></span></p>
<h3 class="toppad">Permalinks for SEO</h3>
<p>This is something I try to do straight away when setting up a new WordPress blog. The exact settings depend very much on how you want to display your content (if you want to display the category or the date in the URL). By default WordPress doesn&#8217;t use the optimal URL structure for SEO, so making this change early-on saves time with redirects later on.</p>
<p>However, keeping folder levels to a minimum makes sense and in the past Yahoo adviced limiting URL folder depth, it also makes URLs more memorable for users. An interesting SEO study was carried out on Google, Yahoo and Live&#8217;s (now Bing) indexing of pages up to 10 folders deep: <a href="http://www.allthingssem.com/do-deep-folders-stop-search-engines/" rel="external">Do Deep Folders Stop Search Engines</a> which showed Google and Yahoo had no trouble, but Bing did have issues at the time (which may still be the case).</p>
<p>To make this change you need to access the WordPress admin panel and make an adjustment to the <code>Settings > Permalinks</code> page. You&#8217;ll see from the example image below, that I simply use <code>%postname%</code> for my URL structure. WordPress will automatically update your <code>.htaccess</code> file in the blog root if you have permissions set t allow this, otherwise you are presented with a cut and paste <code>.htaccess</code> file at the bottom of the Permalinks page which you can simply save and upload to your blog root folder.</p>
<p><img src="http://brightscape.net/blog/tmp/2010/01/123.png" alt="Permalinks" title="Permalinks" width="525" height="364" class="blogimg" /></p>
<p>The <code>.htaccess</code> file should look something like this, notice in this case the blog is stored in the folder <code>/blog/</code> rather than at the root of the site. WordPress will automatically generate the correct <code>.htaccess</code> settings for your WordPress setup.</p>
<pre class="brush: xml;">
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
&lt;/IfModule&gt;
</pre>
<h3 class="toppad">Secure Admin Area</h3>
<p>This tip comes with a caveat&#8212;if you access and publish content from only a couple of locations, I.e. your home or office and these locations use a dedicated IP address then this tip is worth implementing for increased security. However, if you create content at many locations, I.e. Airport lounge, Internet café then avoid using this tip.</p>
<p>Basically you will lock access to your WordPress admin area by blocking all IP addresses except the ones that you specify in your <code>.htaccess</code> file. This <code>.htaccess</code> file should be saved in the <code>wp-admin</code> folder rather than the blog root folder. Example below:</p>
<pre class="brush: xml;">
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName &quot;Access Control&quot;
AuthType Basic
order deny,allow
deny from all
# Allow from Office A
allow from xy.xy.xyz.xyz
# Allow from Office B
allow from xyz.xyz.xyz.x
# Allow from Home
allow from xy.xyz.xyz.xyz
</pre>
<p>You will need to change the &#8216;xyz&#8217;s to match the IP addresses for the different locations that you want to grant access to the admin panel. If you&#8217;re unsure what your IP address is you can use a tool like <a href="http://www.whatsmyip.org/" rel="external">this</a>.</p>
<h3 class="toppad">Easy Admin Access</h3>
<p>If like me you don&#8217;t have an admin link on your blog sidebar, you will have to navigate to the admin panel by typing the URL into your browser address bar. To save some time, I setup a redirect within the root <code>.htaccess</code> file to take me to the admin control panel. It looks like this:</p>
<pre class="brush: xml;">
Redirect 301 /admin http://brightscape.net/blog/wp-admin/
Redirect 301 /admin/ http://brightscape.net/blog/wp-admin/
</pre>
<p>Now after typing the domain, I just type <code>/admin</code> or <code>/admin/</code> and it will automatically redirect me to the admin control panel.</p>
<p><hr />
<a href="http://brightscape.net/blog/3-wordpress-htaccess-tips/">3 WordPress htaccess Tips</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=uh3xpv3a450:pQZEho1nxgM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=uh3xpv3a450:pQZEho1nxgM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=uh3xpv3a450:pQZEho1nxgM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=uh3xpv3a450:pQZEho1nxgM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=uh3xpv3a450:pQZEho1nxgM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=uh3xpv3a450:pQZEho1nxgM:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=uh3xpv3a450:pQZEho1nxgM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=uh3xpv3a450:pQZEho1nxgM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=uh3xpv3a450:pQZEho1nxgM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/uh3xpv3a450" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/3-wordpress-htaccess-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Photoshop Faster</title>
		<link>http://brightscape.net/blog/make-photoshop-faster/</link>
		<comments>http://brightscape.net/blog/make-photoshop-faster/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:43:40 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1076</guid>
		<description><![CDATA[<img src="http://brightscape.net/blog/tmp/2010/01/Photoshop_Logo.jpg" class="blogimg" width="80" alt="Photoshop logo" title="Photoshop logo" />A couple of tips to make Photoshop run faster on Windows or Mac OS. There&#8217;s also some advanced optimisation instructions for Mac OS users on the Adobe website. Although power users would probably want to avoid disabling some of the features discussed in this article. [...]<p><hr />
<a href="http://brightscape.net/blog/make-photoshop-faster/">Make Photoshop Faster</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://brightscape.net/blog/tmp/2010/01/Photoshop_Logo.jpg" alt="Photoshop logo" title="Photoshop logo" width="106" height="100" class="blogimg" /> A couple of <a href="http://makephotoshopfaster.com/" rel="external">tips</a> to make Photoshop run faster on Windows or Mac OS.</p>
<p>There&#8217;s also some advanced optimisation instructions for Mac OS users on the <a href="http://kb2.adobe.com/cps/404/kb404440.html" rel="external">Adobe</a> website. Although power users would probably want to avoid disabling some of the features discussed in this article.</p>
<p><hr />
<a href="http://brightscape.net/blog/make-photoshop-faster/">Make Photoshop Faster</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=TOIvl7mLDlU:hFnnFMkMsrc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=TOIvl7mLDlU:hFnnFMkMsrc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=TOIvl7mLDlU:hFnnFMkMsrc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=TOIvl7mLDlU:hFnnFMkMsrc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=TOIvl7mLDlU:hFnnFMkMsrc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=TOIvl7mLDlU:hFnnFMkMsrc:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=TOIvl7mLDlU:hFnnFMkMsrc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=TOIvl7mLDlU:hFnnFMkMsrc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=TOIvl7mLDlU:hFnnFMkMsrc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/TOIvl7mLDlU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/make-photoshop-faster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP Includes for Global Navigation Links</title>
		<link>http://brightscape.net/blog/php-includes-global-navigation-links/</link>
		<comments>http://brightscape.net/blog/php-includes-global-navigation-links/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 15:00:22 +0000</pubDate>
		<dc:creator>Robin Parduez</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://brightscape.net/blog/?p=1000</guid>
		<description><![CDATA[<img src="http://brightscape.net/blog/tmp/2010/01/php-e1263383654530.png" class="blogimg" width="80" alt="PHP logo" title="PHP logo" />If you look after any large sites you will likely know how frustrating it can be when you need to make even minor changes. This can be something as simple as adding a new page to the global navigation. Traditionally you would need to manually [...]<p><hr />
<a href="http://brightscape.net/blog/php-includes-global-navigation-links/">Using PHP Includes for Global Navigation Links</a> | Brightscape | Copyright 2006-2010</p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://brightscape.net/blog/tmp/2010/01/php-e1263383654530.png" alt="PHP logo" title="PHP logo" width="150" height="78" class="blogimg" style="background-color:#fff" /> If you look after any large sites you will likely know how frustrating it can be when you need to make even minor changes. This can be something as simple as adding a new page to the global navigation. Traditionally you would need to manually edit every page on the site by adding the relevant code to each page, then uploading each page to your server.<span id="more-1000"></span></p>
<p>By using PHP includes you will be able to create a single file which is automatically called on each page on the site automatically server-side. Once you have edited each page and included the PHP include code, you will only ever need to edit one file to make changes across the whole site.</p>
<p>The following tutorial will show you how to create a PHP include file for your global navigation, but the principle applies to any other content that you want to add to every page on your site.</p>
<h3 class="toppad">Simple PHP Include File for Global Navigation</h3>
<p>Firstly you will need to create your global navigation in HTML format in a blank text file. Once you have created the file remember to save it with the <code>.php</code> file extension. I generally call it <code>navigation.php</code> as the filename is quite self explanatory.</p>
<pre class="brush: xml;">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/services/&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/blog/&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/contact-us/&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/about-us/&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>The above code is a very basic example of a global navigation list that would generally be displayed at the top of every page on the site. Below is the HTML with the PHP include file in position. The HTML file below should also be saved with the <code>.php</code> file extension.</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;meta name=&quot;description&quot; content=&quot;&quot; /&gt;
  &lt;meta name=&quot;keywords&quot; content=&quot;&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div&gt;
  &lt;!-- Global Navigation --&gt;
  &lt;?php include(&quot;/home/username/public_html/navigation.php&quot;); ?&gt;
  &lt;/div&gt;
  &lt;div&gt;
  &lt;!-- Main Content --&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>From the code above you will see a short line of PHP code inserted into the HTML where the global navigation should be displayed.</p>
<p>On closer inspection the line of PHP code used for the include is as follows:<br />
  <code>&lt;?php include("/home/username/public_html/navigation.php"); ?></code></p>
<p>You will need to specify the absolute path to the PHP file within your server file structure. For a file included globally across the site it is a good idea to include <code>navigation.php</code> within the root folder of your site. The absolute path will vary depending on your webhost and if it throws up error messages you may need to contact your host to request the absolute path for calling a PHP include file.</p>
<p>The above example is a very simple way to implement a PHP include file within your pages. Once you have tested the code above, you can go through the pages on your site and delete your global navigation code and replace it with <code>&lt;?php include("/home/username/public_html/navigation.php"); ?></code>. Now when you need to add or remove pages from the global navigation you simply edit the <code>navigation.php</code> file and upload it to your server. This will now automatically change the content on every page that you have added the PHP include file to.</p>
<h3 class="toppad">More Advanced PHP Include File Options</h3>
<p>The above code shows you the basic principle of using a PHP include file, but what if you want to have an &#8220;on state&#8221; where your link is styled differently when you are on that page, or you want to show an additional link on one page of your site but not on the rest of your site? Both these scenarios can be achieved using PHP.</p>
<p><strong>Style link for the page you&#8217;re on using PHP &amp; CSS</strong><br />
To style the link for the current page, you need to give each page a unique title. To do this, you need to define a variable by using the following code at the beginning of each page <code>&lt;?php $currentPage="Home" ?></code>. Each page needs a unique name, so in the above example you need to name the Homepage, Services, Blog, Contact Us and About Us pages.</p>
<p>The only thing left to do is to add some CSS properties to your stylesheet for the class &#8216;on&#8217;. This could be a different colour. In the example page below above I have included CSS within the head section of the page which will style the links to red when the visitor is on that specific page.</p>
<p>The following example shows how to uniquely name each page:</p>
<pre class="brush: xml;">
&lt;?php
  $currentPage=&quot;Home&quot;;
?&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;meta name=&quot;description&quot; content=&quot;&quot; /&gt;
  &lt;meta name=&quot;keywords&quot; content=&quot;&quot; /&gt;
  &lt;style type=&quot;text/css&quot;&gt;
  .on {
  color:red
  }
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div&gt;
  &lt;!-- Global Navigation --&gt;
  &lt;?php include(&quot;/home/username/public_html/navigation.php&quot;); ?&gt;
  &lt;/div&gt;
  &lt;div&gt;
  &lt;!-- Main Content --&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Now the <code>navigation.php</code> file needs to be edited so that when the visitor is on the Homepage, a unique class is added to the link for that page. The <code>navigation.php</code> file should be adjusted as follows:</p>
<pre class="brush: xml;">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/&quot; &lt;?php if ($currentPage==&quot;Home&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/services/&quot; &lt;?php if ($currentPage==&quot;Services&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Services&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/blog/&quot; &lt;?php if ($currentPage==&quot;Blog&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Blog&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/contact-us/&quot; &lt;?php if ($currentPage==&quot;Contact Us&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.example.com/about-us/&quot; &lt;?php if ($currentPage==&quot;About Us&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;About Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Using the above principles you can take it a step further by replacing the link with &#8216;#&#8217; when the visitor is on a specific page.</p>
<p><strong>Remove the link on current page</strong><br />
You will notice in the following example <strong>if</strong> and <strong>else</strong> logic has been used. Edit the <code>navigation.php</code> file as follows:</p>
<pre class="brush: xml;">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;&lt;?php if ($currentPage==&quot;Home&quot;) echo &quot;#&quot;;
       else echo &quot;http://www.example.com/&quot;; ?&gt;&quot; &lt;?php if ($currentPage==&quot;Home&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&lt;?php if ($currentPage==&quot;Services&quot;) echo &quot;#&quot;;
       else echo &quot;http://www.example.com/services/&quot;; ?&gt;&quot; &lt;?php if ($currentPage==&quot;Services&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Services&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&lt;?php if ($currentPage==&quot;Blog&quot;) echo &quot;#&quot;;
       else echo &quot;http://www.example.com/blog/&quot;; ?&gt;&quot; &lt;?php if ($currentPage==&quot;Blog&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Blog&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&lt;?php if ($currentPage==&quot;Contact Us&quot;) echo &quot;#&quot;;
       else echo &quot;http://www.example.com/contact-us/&quot;; ?&gt;&quot; &lt;?php if ($currentPage==&quot;Contact Us&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&lt;?php if ($currentPage==&quot;About Us&quot;) echo &quot;#&quot;;
       else echo &quot;http://www.example.com/about-us/&quot;; ?&gt;&quot; &lt;?php if ($currentPage==&quot;About Us&quot;) echo &quot;class=\&quot;on\&quot;&quot;; ?&gt;&gt;About Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>These are just a few basic ways to use PHP includes for global navigation and subsequently defining extra variables. If you have any specific requests please leave a comment and I can create a separate tutorial.</p>
<p><hr />
<a href="http://brightscape.net/blog/php-includes-global-navigation-links/">Using PHP Includes for Global Navigation Links</a> | Brightscape | Copyright 2006-2010</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape?a=NECaG46JU40:Pohq3ZasFsE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/brightscape?i=NECaG46JU40:Pohq3ZasFsE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=NECaG46JU40:Pohq3ZasFsE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=NECaG46JU40:Pohq3ZasFsE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/brightscape?i=NECaG46JU40:Pohq3ZasFsE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=NECaG46JU40:Pohq3ZasFsE:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/brightscape?d=I9og5sOYxJI" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=NECaG46JU40:Pohq3ZasFsE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/brightscape?i=NECaG46JU40:Pohq3ZasFsE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.brightscape.net/~ff/brightscape?a=NECaG46JU40:Pohq3ZasFsE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/brightscape?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/brightscape/~4/NECaG46JU40" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://brightscape.net/blog/php-includes-global-navigation-links/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
