<?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>EM</title>
	<atom:link href="http://www.ericm.ca/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ericm.ca</link>
	<description>Here lies Random &#124; Web development simplified</description>
	<lastBuildDate>Thu, 21 Jan 2010 10:59:56 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress 2.9.1 HTTP error</title>
		<link>http://www.ericm.ca/2010/web-development/wordpress-2-9-1-http-error</link>
		<comments>http://www.ericm.ca/2010/web-development/wordpress-2-9-1-http-error#comments</comments>
		<pubDate>Thu, 21 Jan 2010 10:56:25 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ericm.ca/?p=216</guid>
		<description><![CDATA[After upgrading to Wordpress 2.9.1, I encountered a problem when using the media file uploader. Any attempts to upload an image would return an HTTP error:
There are many solutions out there, but unfortunately none of the ones listed worked for me. I did find a very simple fix however.

HTTP error fix
The answer was right in [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2010%2Fweb-development%2Fwordpress-2-9-1-http-error"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2010%2Fweb-development%2Fwordpress-2-9-1-http-error" height="61" width="51" /></a></div><p>After upgrading to Wordpress 2.9.1, I encountered a problem when using the <strong>media file uploader</strong>. Any attempts to upload an image would return an <strong>HTTP error</strong>:</p>
<div id="attachment_220" class="wp-caption aligncenter" style="width: 682px"><img src="http://www.ericm.ca/wp-content/uploads/2010/01/http_error1.png" alt="WordPress Media File uploader" title="http_error" width="672" height="306" class="size-full wp-image-220" /><p class="wp-caption-text">WordPress Media File uploader</p></div>
<p>There are <a href="http://wordpress.org/support/topic/293853?replies=17">many solutions</a> out there, but unfortunately none of the ones listed worked for me. I did find a very simple fix however.<span id="more-216"></span><br />
</p>
<h2>HTTP error fix</h2>
<p>The answer was right in front of me! Specifically, in the uploader popup window:</p>
<blockquote><p>You are using the Flash uploader. Problems? Try the <strong>Browser uploader</strong> instead.</p></blockquote>
<p>The Browser Uploader worked perfectly fine for me.</p>


<p>Related posts:<ol><li><a href='http://www.ericm.ca/2008/web-development/using-2-different-sidebars-in-wordpress-my-first-php-code' rel='bookmark' title='Permanent Link: Using 2 or more different sidebars in WordPress'>Using 2 or more different sidebars in WordPress</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2010/web-development/wordpress-2-9-1-http-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A solution to Blogger&#8217;s Search Box gadget not working</title>
		<link>http://www.ericm.ca/2009/web-development/bloggers-search-box-gadget-not-working</link>
		<comments>http://www.ericm.ca/2009/web-development/bloggers-search-box-gadget-not-working#comments</comments>
		<pubDate>Thu, 22 Oct 2009 06:00:02 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://ericm.ca/?p=168</guid>
		<description><![CDATA[Update: It has been brought to my attention the following solution is buggy and may not return full results. I will update this post when a working solution is found.
There is currently a problem with Blogger&#8217;s Search Box gadget. For many users, searching with this widget will return No Results even though the search terms [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fweb-development%2Fbloggers-search-box-gadget-not-working"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fweb-development%2Fbloggers-search-box-gadget-not-working" height="61" width="51" /></a></div><p><strong>Update: It has been brought to my attention the following solution is buggy and may not return full results. I will update this post when a working solution is found.</strong></p>
<p>There is currently a problem with <a href="http://www.blogger.com">Blogger&#8217;s</a> <strong>Search Box gadget</strong>. For many users, searching with this widget will return <em>No Results</em> even though the search terms are present in the blog posts.</p>
<p><img src="http://ericm.ca/wp-content/uploads/2009/10/blogger_search_box_gadget.png" alt="blogger_search_box_gadget" title="blogger_search_box_gadget" width="370" height="81" class="aligncenter size-full wp-image-178" /></p>
<p>This Search Box widget is useful for several reasons. The main reason is that many users would like to place the search box in other areas of their blog. Some people have also disabled the <strong>Blogger Navbar</strong> which contains a <em>working </em>search box, perhaps because it appears on top of the entire blog and may pose as a design issue for some. </p>
<p>Here is my <strong>very simple solution if Blogger&#8217;s search function is not working</strong> for you.<span id="more-168"></span><br />
<h1>The Navbar&#8217;s search</h1>
<p>If you do a search via Blogger&#8217;s Navbar, you may notice the <strong>search results URL</strong> will look like this:</p>
<blockquote><p>http://www.website.com/search?q=searchterm</p></blockquote>
<p>My solution will return return the same URL and thus the same results as though you are searching via the Navbar. I actually have no idea how this works, perhaps someone can enlighten me with a comment below.</p>
<p>Here&#8217;s the solution:</p>
<h2>Create a Blogger search widget</h2>
<p>Login to your Blogger account and head over to <strong class="location">Layout > Page Elements</strong>. Click on <strong class="location">Add a Gadget</strong> at the bottom of the page and select <strong class="location">HTML/Javascript</strong>.</p>
<p></p>
<p>In the <strong class="location">Title</strong> field, enter Search or something similar. In <strong class="location">Content</strong>, paste the following code:</p>
<blockquote><p><strong class="code"><code>&lt;form action="search" name="input" method="get"&gt;<br />
&lt;input value="Search" name="q" size="20" type="text"/&gt;<br />
&lt;input value="Go!" type="submit"/&gt;<br />
&lt;/form&gt;</code></strong></p></blockquote>
<p>Hit <strong class="location">Save</strong> and position the widget in the desired location. That&#8217;s it!</p>


<p>Related posts:<ol><li><a href='http://www.ericm.ca/2009/web-development/prevent-blogger-from-resizing-images' rel='bookmark' title='Permanent Link: Prevent Blogger from resizing images'>Prevent Blogger from resizing images</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2009/web-development/bloggers-search-box-gadget-not-working/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Prevent Blogger from resizing images</title>
		<link>http://www.ericm.ca/2009/web-development/prevent-blogger-from-resizing-images</link>
		<comments>http://www.ericm.ca/2009/web-development/prevent-blogger-from-resizing-images#comments</comments>
		<pubDate>Wed, 21 Oct 2009 05:55:31 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[image resizing]]></category>
		<category><![CDATA[Picasa]]></category>

		<guid isPermaLink="false">http://ericm.ca/?p=132</guid>
		<description><![CDATA[Images that are uploaded in Blogger are stored at Google&#8217;s Picasa Web Albums at its original file size and dimensions. If you login to Picasa with your Blogger account, then lo and behold, you shall see your original images!

Interestingly enough, the image code that Blogger inserts into your blog post are modified. Instead of linking [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fweb-development%2Fprevent-blogger-from-resizing-images"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fweb-development%2Fprevent-blogger-from-resizing-images" height="61" width="51" /></a></div><p>Images that are uploaded in <a href="http://www.blogger.com/">Blogger</a> are stored at Google&#8217;s <a href="http://picasaweb.google.com/">Picasa Web Albums</a> at its <em>original</em> file size and dimensions. If you login to Picasa with your Blogger account, then lo and behold, you shall see your original images!</p>
<p><img src="http://ericm.ca/wp-content/uploads/2009/10/blogger_images_picasa.png" alt="blogger_images_picasa" title="blogger_images_picasa" width="314" height="70" class="aligncenter size-full wp-image-152" /></p>
<p>Interestingly enough, the image code that Blogger inserts into your blog post are <em>modified</em>. Instead of linking (Blogger automatically links the images to itself) and displaying your original image file, Blogger links to a scaled-down, resized version instead. I believe only images wider than 800px are affected by this protocol. </p>
<p>Displaying/linking to full-sized images is pretty simple since we know that our original image files are stored on the server &#8211; we just need to access them! I have 2 solutions on how to <strong>display full-sized images in Blogger</strong>.<span id="more-132"></span><br />
<h2>Posting images in their original sizes with Blogger</h2>
<h3>Alternative 1 &#8211; Using Blogger</h3>
<p>The image code that Blogger returns to you when you upload and insert an image will look similar to this:</p>
<blockquote><p>
<strong class="code">&lt;a href=&#8221;http://1.bp.blogspot.com/a_bunch_of_random_characters/<strong class="location">s640</strong>/image.jpg&#8221; imageanchor=&#8221;1&#8243; style=&#8221;margin-left: 1em; margin-right: 1em;&#8221;&gt;<br />
&lt;img border=&#8221;0&#8243; src=&#8221;http://1.bp.blogspot.com/a_bunch_of_random_characters/<strong class="location">s640</strong>/image.jpg&#8221; /&gt;<br />
&lt;/a&gt;</strong></p>
<p>Note: In the above code, I removed a bunch of numbers and letters and replaced it with &#8216;a_bunch_of_random_characters&#8217; for simplicity. </p></blockquote>
<p>The important part of the code is the <strong class="location">s</strong> followed by the number. In this example, it is <strong class="location">s640</strong>. This variable may contain different numbers such as s400 and s800.</p>
<p></p>
<p>All you need to do is replace the original variable with <strong class="location">s1600-h</strong> in both the link and image tags. Although I am not 100% sure, I believe this should always link to your original file size.</p>
<h3>Alternative 2 &#8211; Using Picasa</h3>
<p>Login to <a href="http://picasaweb.google.com/"">Picasa</a> with your Blogger account. As mentioned above, all images uploaded in Blogger is actually hosted here.</p>
<p>At this point, you have <strong>two options</strong>. The first option doesn&#8217;t directly solve our problem <em>per se</em>, but it will still give users access to the full-sized image and it will give you some additional features. The second option <em>directly</em> solves our problem without the bells and whistles.</p>
<h4>Option 1</h4>
<p>First, click on the image you wish to insert into your blog post. Look to the right and you should see some image options. Click <strong class="location">Link to this Photo</strong>.</p>
<div id="attachment_149" class="wp-caption aligncenter" style="width: 255px"><img src="http://ericm.ca/wp-content/uploads/2009/10/Picasa.png" alt="Picasa&#039;s image options" title="Picasa" width="245" height="185" class="size-full wp-image-149" /><p class="wp-caption-text">Picasa's image options</p></div>
<p>You can either use the <strong>Link</strong> or the <strong>Embed image</strong> code generated for you. Embed image gives you the added bonus of using thumbnails which saves you the hassle of creating them yourself. </p>
<p>Either way is fine, but you should note that both links and embedded images will <b>link to a scaled-down version of your image</b> and that <b>the image will be displayed within Picasa&#8217;s photo viewer</b>. Of course, users can still click on the <strong>Magnify Glass</strong> icon to view the original size.</p>
<h4>Option 2</h4>
<p>While viewing an image in Picasa, click on the <strong class="location">Magnify Glass</strong> icon at the top right until you are viewing the image at its original size. <strong>Right-click</strong> the image and select <strong class="location">Copy Image Location</strong> if you are using <strong>Firefox</strong>, or select <strong>Properties</strong> to find the image location.</p>
<p>This will give you the <strong>direct link to the full-sized image</strong>.</p>
<p>And that is all there is to it. Happy blogging!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2009/web-development/prevent-blogger-from-resizing-images/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsing a single website with multiple logins</title>
		<link>http://www.ericm.ca/2009/internet/browsing-a-single-website-with-multiple-logins</link>
		<comments>http://www.ericm.ca/2009/internet/browsing-a-single-website-with-multiple-logins#comments</comments>
		<pubDate>Fri, 18 Sep 2009 08:51:14 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[accounts]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[logins]]></category>
		<category><![CDATA[processes]]></category>
		<category><![CDATA[profiles]]></category>

		<guid isPermaLink="false">http://ericm.ca/?p=78</guid>
		<description><![CDATA[Ever wanted to browse a website with multiple logins simultaneously? Perhaps you have two Gmail accounts whose inboxes you&#8217;d like to monitor at the same time. Or maybe you want to surf several Facebook accounts without having to log off one before being able to sign in another. 
Here&#8217;s a simple 2-step tutorial on how [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Finternet%2Fbrowsing-a-single-website-with-multiple-logins"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Finternet%2Fbrowsing-a-single-website-with-multiple-logins" height="61" width="51" /></a></div><p>Ever wanted to browse a website with multiple logins <em>simultaneously</em>? Perhaps you have two Gmail accounts whose inboxes you&#8217;d like to monitor at the same time. Or maybe you want to surf several Facebook accounts without having to log off one before being able to sign in another. </p>
<p>Here&#8217;s a simple 2-step tutorial on how to use multiple accounts for a single website using the <a href="http://www.mozilla.com/firefox/">Firefox</a> web browser. <span id="more-78"></span></p>
<h2>Opening multiple Firefox browsers</h2>
<p>When you&#8217;re using Firefox, or any other internet browser for that matter, it is executed from a <em>single process</em> no matter how many new windows you open. So if you&#8217;re logged into Gmail with <em>joe@gmail.com</em> and then you open a new Firefox window (<strong class="code">Ctrl+N</strong>) pointed to Gmail.com, it will still display Joe&#8217;s inbox. You won&#8217;t be able to sign in to another Gmail without first signing out of Joe. That&#8217;s where multiple Firefox processes comes into play. However, we&#8217;re first going to take a look at <em>Firefox profiles</em> and how it will help solve our problem.</p>
<h3>What is a Firefox profile?</h3>
<p>Here is Firefox&#8217;s take on <a href="http://support.mozilla.com/en-US/kb/Profiles">profiles</a>:</p>
<blockquote><p> Any changes you make while using Firefox are stored in files so that they can be used the next time you run Firefox. These changes can be obvious, like your home page, or changes you&#8217;ve made to the toolbar, but also include things like your history, what sites you&#8217;ve visited, and text you&#8217;ve entered into forms like search fields. They&#8217;re all stored in the same location, called a profile folder.</p></blockquote>
<p>From what I have learned, each Firefox profile is executed from its own process. Therefore, the question now is: how do I open multiple Firefox profiles? I&#8217;ll answer this in 2 simple steps.</p>
<h2>The 2-step method</h2>
<h3>1. Create a Firefox profile</h3>
<div id="attachment_104" class="wp-caption aligncenter" style="width: 385px"><img src="http://ericm.ca/wp-content/uploads/2009/09/firefox_profile_manager1.png" alt="Firefox profile manager displaying 3 profiles." title="Firefox Profile Manager" width="375" height="269" class="size-full wp-image-104" /><p class="wp-caption-text">Firefox profile manager displaying 3 profiles.</p></div>To create a Firefox profile, you will need to run the profile manager. Close Firefox and click <strong class="location">Start > Run</strong>. Type <strong class="location">firefox.exe -p</strong> and open it up. By default, the profile you are currently using is called just that &#8211; default. Go ahead and create some new profiles. In this example, I have created two additional profiles called <em>1</em> and <em>2</em>.</p>
<p>
<h3>2. Open the profiles</h3>
<p>When you first launch your Firefox browser, it will automatically load your default profile. To open your other profiles, again click <strong class="location">Start > Run</strong> and type:</p>
<blockquote><p><strong class="location">firefox.exe -p <strong>PROFILENAME</strong> -no-remote</strong></p></blockquote>
<p>Be sure to change <em>PROFILENAME</em> to whatever you named your profile. You can repeat this step again to open any other profiles you may have created. To continue on with my example, I executed both: <strong class="location">firefox.exe -p 1 -no-remote</strong> and <strong class="location">firefox.exe -p 2 -no-remote</strong></p>
<div id="attachment_110" class="wp-caption aligncenter" style="width: 520px"><img src="http://ericm.ca/wp-content/uploads/2009/09/windows_task_manager.png" alt="Windows Task Manager (launched with Ctrl+Alt+Delete) displaying multiple Firefox processes" title="Windows Task Manager" width="510" height="455" class="size-full wp-image-110" /><p class="wp-caption-text">Windows Task Manager (Ctrl+Alt+Del) displaying multiple Firefox processes</p></div>
<p>The last thing I&#8217;d like to mention is that whichever profile you executed last will be the first to launch the next time you open Firefox.</p>
<p>Have fun browsing your multiple accounts!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2009/internet/browsing-a-single-website-with-multiple-logins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog updates and et cetera</title>
		<link>http://www.ericm.ca/2009/site-updates/27</link>
		<comments>http://www.ericm.ca/2009/site-updates/27#comments</comments>
		<pubDate>Wed, 19 Aug 2009 10:05:30 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Site Updates]]></category>
		<category><![CDATA[hockey]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ericm.ca/?p=27</guid>
		<description><![CDATA[Time to make this blog more personal so I&#8217;ll talk and empty my mind here a bit for is this not where random lies?!
I finally updated Wordpress from 2.3 (yeah, it&#8217;s been a while) to 2.8.4. Never thought Wordpress could get any better than before; the dashboard is much more pleasing to the eye and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fsite-updates%2F27"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fsite-updates%2F27" height="61" width="51" /></a></div><p>Time to make this blog more personal so I&#8217;ll talk and empty my mind here a bit for is this not where random lies?!<span id="more-27"></span></p>
<p>I finally updated Wordpress from 2.3 (yeah, it&#8217;s been a while) to 2.8.4. Never thought Wordpress could get any better than before; the dashboard is much more pleasing to the eye and it looks like there is a bunch of useful new features like the Media library. Can&#8217;t wait to play around with the GUI and get used to everything. Unfortunately, the custom Wordpress theme I was using wouldn&#8217;t cooperate with the new upgrade so I&#8217;m going to use <a href="http://themeshaper.com/thematic/">Thematic</a> for now and perhaps customize it heavily over the next little while. We&#8217;ll see.</p>
<p>Hmm. It seems as though I haven&#8217;t done anything web-related in a while. Like web design. Kinda itching to crack open Photoshop and work off the rust. Maybe hit two birds with one stone by entering some contests at <a href="http://99designs.com">99designs</a>. A little extra cash wouldn&#8217;t hurt.</p>
<p>I brainstormed some interesting blog material on paper over the months and I&#8217;ll probably start posting some of them up here. Topics mainly on technology and the internet. Maybe I&#8217;ll even start up a little portfolio of my digital works here.</p>
<p>I&#8217;ve also returned to an idea I wrought up nearly 3 years ago which I&#8217;ve been planning (something I love to do) on and off (more off then on). It has to do with &#8216;web 2.0&#8242; and folksonomies and the like. I hope posting about it here will motivate me to actually polish it off and shift it into development mode. Haha, who am I kidding? </p>
<p>There are many things that I have grown interested in over the years and one of them is hockey. Today, I assembled a hockey net which was 45-minutes of fun (I love building things, it goes back to when I played with my first Lego set). I probably took longer than normal as the weather started off uncomfortably sunny and then started to drizzle). Now, I can practice wrist shots and the like in the comfort of my backyard. I will need to buy some plywood or something so that I can handle the puck more smoothly (rubber and concrete don&#8217;t mix). Before, I have been using one of those smart hockey balls, the kind Vincent Lecavalier supposedly uses in the off-season, but I&#8217;d rather get used to a puck since nothing can mimic a puck better than a puck. Of course, I still need to learn the nuisance of skating &#8211; my new Bauer 22s are barely worn in &#8211; which I&#8217;ve done only a few times the past winter in a nearly outdoor rink, but I&#8217;ll worry about that later. On a hockey-related note, I can&#8217;t wait for the NHL season to start! Canadian football just isn&#8217;t enough in this long and boring off-season.</p>
<p>That&#8217;s all for now.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2009/site-updates/27/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OnLive&#8217;s cloud gaming service</title>
		<link>http://www.ericm.ca/2009/video-games/onlives-cloud-gaming-service</link>
		<comments>http://www.ericm.ca/2009/video-games/onlives-cloud-gaming-service#comments</comments>
		<pubDate>Tue, 31 Mar 2009 14:47:37 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Video Games]]></category>
		<category><![CDATA[cloud gaming]]></category>
		<category><![CDATA[OnLive]]></category>

		<guid isPermaLink="false">http://ericm.ca/2009/video-games/onlives-cloud-gaming-service</guid>
		<description><![CDATA[OnLive was just announced a few days ago and is already taking the gaming industry by storm. The game service has been in development for 7 years before this announcement, and silently too which is remarkable considering its potential. OnLive basically takes advantage of cloud gaming technology so that gamers can play high-end games such [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fvideo-games%2Fonlives-cloud-gaming-service"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2009%2Fvideo-games%2Fonlives-cloud-gaming-service" height="61" width="51" /></a></div><p><a href="http://www.onlive1.com/" title="OnLive">OnLive</a> was just announced a few days ago and is already taking the gaming industry by storm. The game service has been in development for 7 years before this announcement, and silently too which is remarkable considering its potential. OnLive basically takes advantage of cloud gaming technology so that gamers can play high-end <a href="http://www.onlive1.com/index.php?onlive=games">games</a> such as Crysis on nearly any computer (PC or Mac) and TV. If you want to learn more about the &#8220;future of video games,&#8221; check out this <a href="http://www.onlive1.com/index.php?onlive=games">OnLive News</a> site!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2009/video-games/onlives-cloud-gaming-service/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8216;Link&#8217; feature in media players</title>
		<link>http://www.ericm.ca/2008/rant/link-feature-in-media-players</link>
		<comments>http://www.ericm.ca/2008/rant/link-feature-in-media-players#comments</comments>
		<pubDate>Sat, 12 Jan 2008 04:48:24 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[Adobe Photoshop]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[Media Players]]></category>

		<guid isPermaLink="false">http://ericm.ca/2008/rant/link-feature-in-media-players</guid>
		<description><![CDATA[ost media players like Windows Media Player and Winamp allow you to assemble a custom playlist. In WMP, you can quickly compile a list by right-clicking a bunch of song names and selecting Add to Now Playing.
I frequently turn on the Shuffle option when listening to playlists. But sometimes I don&#8217;t want it totally randomized. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Frant%2Flink-feature-in-media-players"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Frant%2Flink-feature-in-media-players" height="61" width="51" /></a></div><div class="wp-caption alignleft" style="width: 183px"><img alt="A playlist in Windows Media Player" src="/images/wmp_playnext.gif" title="Windows Media Player playlist" width="173" height="320" /><p class="wp-caption-text">A playlist in Windows Media Player</p></div>Most media players like <a href="http://www.microsoft.com/windows/windowsmedia/download/">Windows Media Player</a> and <a href="http://www.winamp.com/">Winamp</a> allow you to assemble a custom playlist. In WMP, you can quickly compile a list by right-clicking a bunch of song names and selecting <strong class="location">Add to Now Playing</strong>.</p>
<p>I frequently turn on the <strong class="location">Shuffle</strong> option when listening to playlists. But sometimes I don&#8217;t want it totally randomized. I&#8217;d like it if some songs were <em>grouped</em> together &#8211; if <em>song 1</em> was played, I&#8217;d like to hear <em>song 2 </em>and <em>song 3</em> played right after. Then after this group is played, the rest of the songs would continue to be shuffled until another group is played.</p>
<p>So how do we group songs in a playlist? I believe that media players can create a feature similar to the <strong class="location">Link</strong> option found in <a href="http://www.adobe.com/products/photoshop/index.html">Adobe Photoshop</a>.<span id="more-17"></span></p>
<h2>The link option in Photoshop</h2>
<p><div class="wp-caption alignright" style="width: 222px"><img alt="Photoshop layers link option" src="http://ericm.ca/images/layers_linked.gif" title="Photoshop Layers" width="212" height="174" /><p class="wp-caption-text">Photoshop layers link option</p></div>Sometimes in Photoshop, you&#8217;d like to perform a single task on several different layers at once. Say you want to move both <em>Layer 1</em> and <em>Layer 2</em> up by 20 pixels. You don&#8217;t have to perform this task separately. Photoshop makes tasks like these more efficient with the <strong class="location">Links</strong> option &#8211; you simply check the <strong class="location">Link</strong> icon next to the layers (which groups them together). Then moving one of these layers moves the entire group.</p>
<h4>But how do we create more than one group?</h4>
<p>Again, we can turn to the brilliant engineering of Photoshop. When you press the <strong class="location">Link</strong> button next to a layer, it is <em>hidden </em>when the linked layers is <em>unselected</em>. </p>
<p>For example, if we take a look at the image above, we can see that both <em>Layer 1</em> and <em>Layer 2</em> are linked. However, the <strong class="location">Link</strong> icon would <em>not </em>be displayed if both these layers are unselected &#8211; such as by selecting Layer 3 or 4.</p>
<p>This means that if we currently have an <em>unlinked </em>layer selected (Layer 3 or 4), then<em> Layer 1 </em>and <em>Layer 2</em> from the first group would not be selected, and thus no <strong class="location">Link</strong> icons would be visible. </p>
<p>Then, if we check the <strong class="location">Link</strong> icon on any other layer (Layer 3, 4, etc.), the layers from group 1 are <em>not </em>part of this second group since their link icons are not visible.</p>
<p>You should note that a layer cannot be linked in more than one group.</p>
<p>
<h2>Application to media players</h2>
<p>Media players can adapt apply this link feature to their own playlists by allowing users to tick off songs. All the ticked songs would then be grouped together. So whenever <strong class="location">Shuffle</strong> stumbles upon a song that is part of a group, the entire group is played before the media player continues to randomly select another song to play.</p>
<p>What I&#8217;ve learned from studying business plans is that what works for one thing (company, software, etc.) can successfully work for a completely different thing. But the opposite can be true too. As an innovator, I think that media players can really use this feature if it&#8217;s implemented properly.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2008/rant/link-feature-in-media-players/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improving web usability: Page numbering systems</title>
		<link>http://www.ericm.ca/2008/web-development/improving-web-usability</link>
		<comments>http://www.ericm.ca/2008/web-development/improving-web-usability#comments</comments>
		<pubDate>Fri, 11 Jan 2008 07:19:09 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Page Numbers]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://ericm.ca/2008/web-development/improving-web-usability</guid>
		<description><![CDATA[Many websites today fail at providing a simple way for users to find information quickly and easily on their websites. A user will typically leave in frustration if it is difficult for them to find that specific article they read a week ago or maybe even last night if the website is updated frequently. This [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Fweb-development%2Fimproving-web-usability"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Fweb-development%2Fimproving-web-usability" height="61" width="51" /></a></div><p>Many websites today fail at providing a simple way for users to find information quickly and easily on their websites. A user will typically leave in frustration if it is difficult for them to find that specific article they read a week ago or maybe even last night if the website is updated frequently. This can cause a decrease in the average time a user browses the website or even a decline in visitor loyalty (the amount of times a past user revisits the website). </p>
<p>In this series (hopefully I write more than one article on this topic), I will cover several ways this problem can be rectified that does not require a whole site overhaul. One of these ways is to provide an <em>easier-to-use page numbering system</em>. In the following, I will provide a few examples of both good and bad page number systems and a very simple solution to rectify the usability problem.<span id="more-16"></span></p>
<h2>Problematic page numbers</h2>
<p>To start off, I&#8217;ll give examples of very popular websites whose page numbering system is not so usable. </p>
<h4>Gmail</h4>
<p><a href="http://mail.google.com/">Gmail</a> is one of the most popular free webmails today, and not only because of their huge storage spaces. Gmail is &#8220;built on the idea that email can be more intuitive, efficient, and useful.&#8221; But this mission statement doesn&#8217;t seem to apply to its page numbering system.</p>
<div class="wp-caption aligncenter" style="width: 455px"><img alt="Gmails page numbering system" src="http://ericm.ca/images/gmail_pages.gif" title="Gmail" width="445" height="175" /><p class="wp-caption-text">Gmail&#39;s page numbering system</p></div>
<p>Gmail uses the typical &#8216;next, previous&#8217; and &#8216;oldest, newest&#8217; page-numbering system, albeit with better names: <strong class="location">Older ›  Oldest »</strong> and <strong class="location">« Newest  ‹ Newer</strong>. This is what most websites currently use. </p>
<p>Although this system really reduces the clutter of other page-numbering systems (I will discuss this in the next example), it is much too simple if you store thousands of e-mails in your inbox. This is not hard to imagine since Gmail targets those who don&#8217;t know what the delete button is (heh heh). </p>
<p>So what happens if I have 10,000 e-mails and I want to view e-mails 5,001 &#8211; 5,100? That is a lot of button clicking: <strong class="location">Older ›</strong>, <strong class="location">Older ›</strong>, <strong class="location">Older ›</strong>, <strong class="location">Older ›</strong>&#8230; This same idea can be applied to websites with thousands of news articles. <em>A user doesn&#8217;t want to do all this button-clicking to find</em> one <em>e-mail or that </em>one <em>article. And they shouldn&#8217;t have to.</em></p>
<p>The only reason why this doesn&#8217;t poise <em>too</em> much of a problem for Gmail is because of their superior searching. If you know a bit about the e-mail you&#8217;re seeking, then you can easily Google your webmail instead of sifting through a bunch of e-mails.</p>
<h4>Digg</h4>
<p><a href="http://www.digg.com">Digg</a> is a revolutionary social news site which gained enormous popularity in the past three or so years. Users submit hundreds of content to the website per day with only a small percentage making it to the frontpage (the page where articles with enough positive feedback is displayed.) </p>
<p>However, this small percentage translates to about 10 pages, or 150 brand-new articles per day. If you&#8217;re an avid Digg user, you might find that it takes 4-5 hours alone to just <em>skim </em>through all this content. A website of this size should have an intuitive page number system, because if you don&#8217;t bookmark every article you like, then you can have fun using their not-so-proficient search function.</p>
<div class="wp-caption aligncenter" style="width: 460px"><img alt="Diggs page numbering system" src="http://ericm.ca/images/digg_pages.gif" title="Digg" width="450" height="120" /><p class="wp-caption-text">Digg&#39;s page numbering system</p></div>
<p>Digg&#8217;s page numbering system is very common with news-oriented websites as well as free and open-source web software like content management systems, forums, and blogs. It has the typical &#8216;previous, next&#8217; page-numbers and several beginning and ending page numbers in-between the first and last page numbers. </p>
<p>But if you&#8217;re trying to find an article buried in the depths of the website, like page 70 or something, that is a lot of <strong class="location">Next »</strong>, <strong class="location">Next »</strong>, <strong class="location">Next »</strong>&#8230; Or what many users do, click the highest page number closest to 70 and repeat till you reach 70 (if we were to use the example from the image, this would be page 10).</p>
<h4>Google</h4>
<div class="wp-caption aligncenter" style="width: 360px"><img alt="Googles page numbering system" src="http://ericm.ca/images/google_pages.gif" title="Google" width="350" height="65" /><p class="wp-caption-text">Google&#39;s page numbering system</p></div>
<p>Even <a href="http://www.google.com">Google.com</a> suffers from this same problem. A search for the letter &#8216;<a href="http://www.google.ca/search?hl=en&#038;q=a&#038;btnG=Google+Search&#038;meta=">a</a>&#8216; returns over 12 billion results. And they don&#8217;t even have &#8216;oldest, newest&#8217; page numbers, just a couple of beginning page numbers and &#8216;next.&#8217; </p>
<p>Of course, in the case of Digg and their mod rewritten links, a more experienced web surfer could just edit the link <strong class="location">http://digg.com/page#</strong> and replace <strong class="location">#</strong> manually. But not all websites have a demographic comprising mainly of tech-savvy users and not every website has easy-to-modify URLs.</p>
<p></p>
<h2>The simple fix</h2>
<p>I first applied my solution to the page numbering problem in the summer of &#8216;06. The website was <a href="http://www.wiiglobal.com">wiiglobal</a> and don&#8217;t ask me what&#8217;s up with it. I lost touch with the programmer about 6 months ago so the site has pretty much spiraled off to the internet wasteland. </p>
<div class="wp-caption aligncenter" style="width: 430px"><img alt="Wiiglobals page numbering system" src="http://ericm.ca/images/wiiglobal_pages.gif" title="Wiiglobal" width="420" height="40" /><p class="wp-caption-text">Wiiglobal&#39;s page numbering system</p></div>
<p>As you can see, I don&#8217;t use the cluttered page numbering system. I use a basic &#8216;next, previous&#8217; page system and a simple text field which allows the user to <em>quickly view any page in two quick steps</em>: <strong class="location">1) type in the page number 2) hit &#8216;enter&#8217; or click &#8216;view page.&#8217; </strong></p>
<p><strong>This page number system reduces the inefficiency caused by unnecessary button-clicking by providing a user with only a few links and a single text field.</strong></p>
<p>Although I&#8217;d like to take credit for this system, I&#8217;m not sure if I&#8217;m actually the first guy to use it. I have, however, seen a lot of websites and software popping up in the recent year utilizing my system (oh look, I&#8217;m taking credit already!):</p>
<h4><a href="http://forums.invisionpower.com/">Invision</a></h4>
<p><img src="/images/invision_pages.gif" title="Invision" height="100" width="340" class="border" /></p>
<h4><a href="http://logopond.com/">Logopond</a></h4>
<p><img src="/images/logopond_pages.gif" title="Logopond" height="45" width="420" class="border" /></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2008/web-development/improving-web-usability/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>phpBB and Google AdSense</title>
		<link>http://www.ericm.ca/2008/web-development/phpbb-and-google-ads</link>
		<comments>http://www.ericm.ca/2008/web-development/phpbb-and-google-ads#comments</comments>
		<pubDate>Sat, 05 Jan 2008 12:32:53 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Monetization]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Google AdSense]]></category>
		<category><![CDATA[Modification]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://ericm.ca/2008/web-development/phpbb-300-and-google-ads</guid>
		<description><![CDATA[I&#8217;ve been using the brand-new phpBB forum software for the past few days now and I must admit I am very impressed. But that&#8217;s a post for another time!  For now, I&#8217;ll discuss the optimal placement of Google ads within phpBB&#8217;s templates, the easiest method to do so, and most importantly, how to achieve [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Fweb-development%2Fphpbb-and-google-ads"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Fweb-development%2Fphpbb-and-google-ads" height="61" width="51" /></a></div><p>I&#8217;ve been using the brand-new phpBB forum software for the past few days now and I must admit I am very impressed. But that&#8217;s a post for another time!  For now, I&#8217;ll discuss the <strong>optimal placement of Google ads within phpBB&#8217;s templates</strong>, the <strong>easiest method</strong> to do so, and most importantly, how to <strong>achieve all this legally under Google&#8217;s TOS</strong>. </p>
<p><img alt="" src="/images/adsensephpbb.gif" title="Google Adsense and phpBB" class="aligncenter" width="366" height="58" /></p>
<p><span id="more-15"></span></p>
<h2>What is allowed?</h2>
<p>After skimming through Google&#8217;s <a href="https://www.google.com/adsense/static/en_US/LocalizedTerms.html?hl=en_US">Terms and Conditions</a>,  I have concluded that you may <em>not</em> place the advertisements in all areas of the forum. Here is the exact tidbit from the TOS:</p>
<blockquote><p><strong>5. </strong><bdo><strong> Prohibited Uses.</strong></bdo></p>
<p><bdo>You shall not, and shall not authorize or encourage any third party to:</bdo></p>
<p><bdo></bdo><bdo>(v) display any Ad(s), Link(s), or Referral Button(s) on any error page, on any registration or &#8220;thank you&#8221; page (e.g., a page that thanks a user after he/she has registered with the applicable Web site), on any chat page, in any email, or on any Web page or any Web site that contains any pornographic, hate-related, violent, or illegal content</bdo></p></blockquote>
<h2>What this means</h2>
<p>In the past, you would simply insert the ad code in just two phpBB templates: <strong class="location">overall_header.html</strong> and <strong class="location">overall_footer.html</strong>. This would display your advertisements at the top and bottom of your <em>entire</em> forum. This is no longer legal now that AdSense&#8217;s TOS explicitly states that advertisements on certain pages like registration is prohibited. </p>
<p>So how do we display the advertisements on the header and footer of our forums without violating Adsense policy? Unfortunately, this now means editing more than two phpBB templates. Fortunately, this article will go over the easiest method in placing Google ads in your forums. I will go over exactly which template files you should edit to yield the optimal page impressions/clicks. </p>
<p>But first&#8230;</p>
<h2>Editing ad code from one file</h2>
<p>Since we need to insert the ad code in more then two templates now, how can we easily update an ad code without having to go through each and every template file? We can eliminate this problem with the following easy fix.</p>
<blockquote><p>Open up Notepad or your favorite code editor, and paste your ad code within this file. </p>
<p>Save it as <strong class="location">googleads.html</strong>. </p>
<p>Upload the file with your favorite FTP to: <strong class="location">http://www.<em>YOURWEBSITE</em>.com/forums/styles/<em>YOURTHEME</em>/template/</strong></li>
<p>To insert this file into phpBB templates, you will use the following <em>ad insert code</em>: </p>
<p><strong class="code"><code>&lt;!-- INCLUDE googleads.html --&gt;</code></strong></p></blockquote>
<h2>Where to place the ads</h2>
<p>So now that you have the ad insert code, where should you place it?</p>
<p>As I mentioned above, we would have simply edited two template files in the past to display it in the header and footer of our forums. Now that this isn&#8217;t legally possibly anymore, we can achieve these same results by <em>editing all the templates that</em> don&#8217;t <em>violate Google&#8217;s TOS</em>. </p>
<p>The following guide is based on editing the <em>prosilver </em>theme, phpBB 3.0.0&#8217;s default theme. However, the following edits should work for most phpBB themes.</p>
<p>To edit the templates, login to your admin control panel and find <strong class="location">Styles Tab > Style components > Templates</strong>. To the right, click <strong class="location">Edit</strong> for the template you wish to update.</p>
<h3>The index page</h3>
<p>Let&#8217;s start off by editing the index page, the main forum page. Open up the <strong class="location">index_body.html</strong> template file.</p>
<blockquote><p><strong>Step 1</strong></p>
<p>Find (usually near the top) <strong class="code"><code>&lt;!-- INCLUDE overall_header.html --&gt;</code></strong></p>
<p>Before or after, add <strong class="code"><code>&lt;!-- INCLUDE googleads.html --&gt;</code></strong></p>
<p>Insert the ad code <em>before </em> if you wish the ad banner to appear above the header, or <em>after </em>for below the header. Most people post it <em>after </em>the code. </p>
<p><strong>DO NOT DELETE THE ORIGINAL CODE.</strong></p>
<p><strong>Step 2 </strong></p>
<p>In the same file:</p>
<p>Find (usually near the bottom) <strong class="code"><code>&lt;!-- INCLUDE overall_footer.html --&gt;</code></strong></p>
<p>Before or after, add <strong class="code"><code>&lt;!-- INCLUDE googleads.html --&gt;</code></strong></p>
<p>Most people add this <em>before </em>the footer.</p></blockquote>
<p></p>
<h3>A few more pages to edit&#8230;</h3>
<p>The above instructions can be applied to the following templates in the <em>exact </em>same way:</p>
<ul>
<li><strong class="location">viewforum_body.html</strong> &#8211; Viewing a forum template</li>
<li><strong class="location">ucp_header.html</strong> and <strong class="location">ucp_footer.html</strong> &#8211; User control panel template</li>
<li><strong class="location">viewtopic_body.html</strong> &#8211; Viewing a thread template</li>
<li><strong class="location">posting_layout.html</strong> &#8211; Posting a thread or replying template*</li>
</ul>
<p><em>* Before editing the</em> posting_layout.html <em>template, you can read the following optional step on how to optimize this specific template.</em></p>
<h3>The &#8216;posting a thread / replying to a post&#8217; page (optional step)</h3>
<p>After nearly a decade of running forums, I have found that an additional template can be edited to generate greater ad impressions and clicks.</p>
<p><strong>NOTE!</strong> If you are doing this optional step, do <em>not </em>apply the second step to <strong class="location">posting_layout.html</strong>; in other words, carry out step 1 but <em>skip step 2</em>. This means not adding the ad code to the footer of <strong class="location">posting_layout.html</strong>.</p>
<p>To apply this optional step, open the <strong class="location">posting_editor.html</strong> template file.</p>
<blockquote><p>Find (somewhere near the middle)<span style="font-weight: bold"></span>	<strong class="code"><code>&lt;!-- IF S_HAS_ATTACHMENTS --&gt;</code></strong></p>
<p>Add <em>before </em><strong class="code"><code>&lt;!-- INCLUDE googleads.html --&gt;</code></strong></p>
<p>This time you only have one choice: add <em>before </em>and not after.</p></blockquote>
<h2>Why the optional step and additional template?</h2>
<p>This optional step still displays the ad banner at the footer of the &#8216;posting a thread or reply&#8217; page. The only difference is how visible the advertisement becomes.</p>
<p>Without the optional step, the ad banner would appear directly above or below the footer. Either way, the advertisement would not be very visible. When a user creates a new post, the page is mainly filled with the textbox and forum options such as attachments. In most instances, the advertisement from the footer isn&#8217;t visible at all when they reply to a thread &#8211; unless the user has an enormous screen resolution.</p>
<p>Applying the optional step to the additional template effectively solves this problem. It will display the advertisement right above the <strong class="location">Save / Preview / Submit</strong> button meaning that a user <em>cannot </em>miss it! This means more clicks and more profit for your forum!</p>
<h2>Confirm the changes</h2>
<p>To ensure that all your forum members can view the template changes, click the <strong class="location">General Tab</strong> in the admin control panel. To the right, find <strong class="location">Purge the cache</strong> and click <strong class="location">Run Now</strong>. </p>
<p>Also, head over to <strong class="location">General Tab > Server configuration > Load settings</strong>.To the right, find <strong class="location">Recompile stale style components</strong> and select <strong class="location">Yes</strong>.</p>
<p>And that should do the trick! The above techniques will help you get around the legal problems of the traditional method of editing only the header and footer templates, and help you position your advertisements for maximum clickthroughs and impressions. This is the simplest phpBB modification to use. Have fun monetizing your forums!</p>
<p>For a live example, checkout <a href="http://www.rakion.biz">Rakion.biz</a> and <a href="http://www.ieatgrenades.com">ieatgrenades</a>.</p>


<p>Related posts:<ol><li><a href='http://www.ericm.ca/2008/web-development/using-2-different-sidebars-in-wordpress-my-first-php-code' rel='bookmark' title='Permanent Link: Using 2 or more different sidebars in WordPress'>Using 2 or more different sidebars in WordPress</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2008/web-development/phpbb-and-google-ads/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Using 2 or more different sidebars in WordPress</title>
		<link>http://www.ericm.ca/2008/web-development/using-2-different-sidebars-in-wordpress-my-first-php-code</link>
		<comments>http://www.ericm.ca/2008/web-development/using-2-different-sidebars-in-wordpress-my-first-php-code#comments</comments>
		<pubDate>Fri, 04 Jan 2008 05:48:53 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[multiple sidebars]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ericm.ca/2008/web-development/using-2-different-sidebars-in-wordpress-my-first-php-code</guid>
		<description><![CDATA[I purchased a PHP book over 6 years ago and I only got through the first 20-30 pages before putting it down and letting it gather dust. After six long years, I finally faced a problem big enough for me to actually write a piece of code:

How to display two or more different Wordpress sidebars [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Fweb-development%2Fusing-2-different-sidebars-in-wordpress-my-first-php-code"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ericm.ca%2F2008%2Fweb-development%2Fusing-2-different-sidebars-in-wordpress-my-first-php-code" height="61" width="51" /></a></div><p>I purchased a PHP book over 6 years ago and I only got through the first 20-30 pages before putting it down and letting it gather dust. After six long years, I finally faced a problem big enough for me to actually write a piece of code:<br />
<em><br />
How to display two or more different Wordpress sidebars (the column on the right) depending on the page a user is currently viewing?</em><span id="more-14"></span></p>
<h2>The Problem </h2>
<p>WordPress currently displays a single sidebar for all your templates (sidebar.php). My problem was that I wanted to use another sidebar (let&#8217;s call it sidebar2.php) as well. More specifically, I wanted this second sidebar to be displayed <em>only </em>on &#8216;<strong class="location">Single Post</strong>&#8216; (the template that displays the full blog post; the webpage you are viewing now). Then, the first sidebar would be displayed for all the other pages.</p>
<p>Being the newbie programmer I am, I tried using the <strong>original sidebar include code</strong> that WordPress uses to display the sidebar in your templates:</p>
<blockquote><p><strong class="code">&lt;?php get_sidebar(); ?&gt;</strong> </p></blockquote>
<p>And then modified it:</p>
<blockquote><p><strong class="code">&lt;?php get_sidebar<strong>2</strong>(); ?&gt;</strong></p></blockquote>
<p>Unfortunately, this did not work.</p>
<h2>The Solution</h2>
<p>Luckily, I stumbled upon this useful <a href="http://codex.wordpress.org/Conditional_Tags">page</a> at Wordpress about &#8216;Conditional Tags,&#8217; specifically <a href="http://codex.wordpress.org/Conditional_Tags#Single_Post">this</a> section. </p>
<p>Basically, it tells us that &#8216;<strong class="location">Single Post</strong>,&#8217; the page you are currently viewing, is defined by WordPress as <strong class="code">&#8216;is_single()&#8217;</strong>. This is the page where I wanted to display the second sidebar. This also means that for every other page that was <em>not </em><strong class="code">&#8216;is_single()&#8217;</strong>, I would simply use the <em>original </em>sidebar include code to display the first sidebar as mentioned earlier.</p>
<p></p>
<p>Thus, a simple PHP <strong class="code">if and else</strong> conditional statement will do the trick. I replaced <strong class="code">&lt;?php get_sidebar(); ?&gt;</strong> from <strong class="location">header.php</strong> (or wherever this code is included in your template) with:</p>
<blockquote><p><strong class="code">&lt;?php<br />
if (is_single())<br />
include (TEMPLATEPATH . &#8216;/sidebar2.php&#8217;);<br />
else<br />
get_sidebar();<br />
?&gt;</strong></p>
<p><strong>Note:</strong> The above code assumes that you have created and uploaded a Wordpress template called sidebar2.php</p></blockquote>
<p>In layman&#8217;s terms, <em>if</em> the current page you are viewing is &#8216;<em>Single Post</em>,&#8217; <em>then </em>the <em>second sidebar</em> will be displayed. <em>Else</em>, the <em>first sidebar</em> is displayed for all other pages. This piece of code can be adapted in many different ways including displaying more than 2 sidebars and displaying sidebars for specific templates.</p>
<p>I guess this is a rather simple fix, but after hours of Googling for a solution, I noticed that a lot of other WordPress users experienced this same problem.  Hopefully this article helps!</p>


<p>Related posts:<ol><li><a href='http://www.ericm.ca/2010/web-development/wordpress-2-9-1-http-error' rel='bookmark' title='Permanent Link: WordPress 2.9.1 HTTP error'>WordPress 2.9.1 HTTP error</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ericm.ca/2008/web-development/using-2-different-sidebars-in-wordpress-my-first-php-code/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
