<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~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:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>kmsm</title>
	
	<link>http://www.kmsm.ca</link>
	<description>kmsm is a Toronto-based creative agency.</description>
	<lastBuildDate>Mon, 06 Sep 2010 16:20:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kmsocialmedia" /><feedburner:info uri="kmsocialmedia" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>kmsm is a Toronto-based creative agency.</itunes:subtitle><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>HTML5 for Web Designers Review</title>
		<link>http://www.kmsm.ca/2010/html5-for-web-designers-review/</link>
		<comments>http://www.kmsm.ca/2010/html5-for-web-designers-review/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 21:30:23 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web Technologies]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387414</guid>
		<description><![CDATA[I sat down to read Jeremy Keith&#8217;s HTML5 for Web Designers this morning. At a slim 95 pages, it&#8217;s exactly the kind of introduction to the future of HTML that warrants the attention of the general web designer. Keith swiftly illuminates the subtle political squabbles amongst competing standards organizations in a historical overview of HTML [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://books.alistapart.com/"><img src="http://www.kmsm.ca/wp-content/uploads/2010/09/html5-for-web-designers-580x266.jpg" alt="HTML5 for Web Designers by Jeremy Keith" title="html5-for-web-designers" width="580" height="266" class="alignnone size-large wp-image-644387418" /></a></p>
<p class="intro"><span class="dropcap">I</span> sat down to read Jeremy Keith&#8217;s <a href="http...">HTML5 for Web Designers</a> this morning. At a slim 95 pages, it&#8217;s exactly the kind of introduction to the future of HTML that warrants the attention of the general web designer. </p>
<p>Keith swiftly illuminates the subtle political squabbles amongst competing standards organizations in a historical overview of HTML itself. With the pilloried politics and regulations of the <a href="http://www.w3.org/">WC3</a> on the one hand, and the business gumtion of Ian Hickson and the <a href="http://www.whatwg.org/">WHATWG</a>, it&#8217;s anything but a boring recap of an otherwise theoretical dispute. </p>
<p>It&#8217;s exactly this kind of overview that mirrors the philosophy of HTML5: much of the markup specification is a recognition of the practical applications of HTML over the last decade, rather than the wishful thinking of<a href="http://en.wikipedia.org/wiki/XHTML#XHTML_2.0"> XHTML 2.0</a>. His jabs at the WC3 are backed by a design philosophy of &#8220;Priority of constituencies,&#8221; whereby consideration is given to users over authors over implementers over specifiers over theoretical purity. </p>
<p>It&#8217;s easy to get bogged down in the debate behind the merits of any particular specification design principle, but Keith&#8217;s language displays a kind of knowing recognition of his audience. Web designers don&#8217;t really care about vendor politics &#8211; they care about features they can use right now. To that end, Keith elegantly uses humour to explain the seemingly archaic incubation time of HTML5: &#8220;[it] seems to have been written with a level of detail normally reserved for trainspotters who enjoy a nice game of chess while indexing their stamp collection.&#8221; This wry humour continues throughout the book, including a particularly choice section where Keith describes the wrongheadedness of disabling JavaScript to remove HTML5&#8242;s boolean <code>autofocus</code> attribute as &#8220;a heavy-handed solution, like gouging out your eyes to avoid bright lights.&#8221;</p>
<p>Beyond the politics and theory, HTML5 for Web Designers contains an excellent description of rich media. He masterfully explains the <code>audio</code> and <code>video</code> tags, and how to progressivel support Ogg Vorbis, MP3, MP4, and Theora Video. Again, he gives a passing nod to the patent-laden politics behind the brewing codec war, but the real depth of his description comes in the form of practical advice to web designers today. </p>
<p>Although much of the community&#8217;s attention has been given to the <code>canvas</code>, <code>audio</code>, and <code>video</code> tags, I found the <em>Semantics</em> section to be the most engaging topic in Keith&#8217;s overview. <a href="http://www.alistapart.com/articles/semanticsinhtml5">HTML5 introduces contextual tags</a> such as <code>section</code>, <code>article</code>, <code>header</code>, and <code>footer</code> &#8211; but I was only aware of these new tags in a cursory way. Keith illuminates some of the inconsistencies, and admirably tries to explain the design philosophy behind these new semantic tags.</p>
<p><strong>tl;dr: <em>HTML5 for Web Designers</em> is a highly recommended and practical introduction to the HTML5 spec for web designers. It is available in a softcover print edition or in the electronic ePub format from <a href="http://books.alistapart.com/products/html5-for-web-designers" alt="A Book Apart">books.alistapart.com</a> for $18 or $9, respectively. </strong></p>
<p><em>You can follow Jeremy Keith on <a href="http://twitter.com/adactio">Twitter</a> or follow his blog at <a href="http://adactio.com/journal/">adactio.com/journal</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/html5-for-web-designers-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15 Corporate Style Guides for Branding Inspiration</title>
		<link>http://www.kmsm.ca/2010/15-corporate-style-guides-for-branding-inspiration/</link>
		<comments>http://www.kmsm.ca/2010/15-corporate-style-guides-for-branding-inspiration/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 15:00:46 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[Resources]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387325</guid>
		<description><![CDATA[The pillar stone of branding is the brand manual or style guide. It&#8217;s the central, unifying component of most brand development today. So it&#8217;s become the kind of thing that freelance designers might be expected to produce. And this trend isn&#8217;t limited to graphic design. Smashing Magazine &#8211; a web design trade blog &#8211; recently [...]]]></description>
			<content:encoded><![CDATA[<p class="intro"><span class="dropcap">T</span>he pillar stone of branding is the brand manual or style guide. It&#8217;s the central, unifying component of most brand development today. So it&#8217;s become the kind of thing that freelance designers might be expected to produce. And this trend isn&#8217;t limited to graphic design.</p>
<p>Smashing Magazine &#8211; a web design trade blog &#8211; recently broke down the basic components of style guides in a post by <a href="http://www.safetygoat.co.uk/">Kate Neville</a> titled <a href="http://www.smashingmagazine.com/2010/07/21/designing-style-guidelines-for-brands-and-websites/">Designing Style Guidelines for Brands and Websites</a>. In its wake, I thought I&#8217;d put together a premium package of example style guides for your own inspiration. Read more after the jump.<span id="more-644387325"></span></p>
<p><em>All files hosted here are for educational purposes only. We&#8217;ve hosted them to ensure availability, and make no claim to original ownership of anything herein.</em></p>
<h4>University of Northampton</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/northampton-university-brand-manual.pdf"><img class="alignnone size-full wp-image-644387339" title="northampton-university-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/northampton-university-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;Like any brand manual, its objective is to help people who use the brand to understand its origin, the brand values and provide detailed specifications and guidance on the use of all aspects of the brand.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/northampton-university-brand-manual.pdf">University of Northampton Brand Manual (PDF)</a></p>
<h4>Government of Alberta</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/government-alberta-thumbnail.jpg" rel="lightbox[644387325]"><img class="alignnone size-full wp-image-644387342" title="government-alberta-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/government-alberta-thumbnail.jpg" alt="Government of Alberta Corporate Identity Manual" width="580" height="200" /></a></p>
<blockquote><p>&#8220;There is also a new Government of Alberta corporate identity that was designed to align with the brand. It is straightforward, clear and strong &#8211; attributes that people think of when dealing with Albertans.&#8221;</p></blockquote>
<p><a href="http://corporateidentity.alberta.ca/downloads/GoaCIM-1.0-Brand.pdf">Government of Alberta Corporate Identity Manual (PDF)</a></p>
<p><a href="http://corporateidentity.alberta.ca/downloads/GoaCIM-1.0-Brand.pdf"></p>
<h4>Cornell University</h4>
<p></a></p>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/cornell-university-style-guide.pdf"><img class="alignnone size-full wp-image-644387356" title="cornell-university-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/cornell-university-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;This style guide has been developed to assist the individual units of the university in using the Cornell logo in their communications materials in print, web, television broadcast, and electronic presentation media.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/cornell-university-style-guide.pdf">Cornell University Style Guide (PDF)</a></p>
<h4>Brasil Telecom</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/telecom-brasil-style-guide.pdf"><img class="alignnone size-full wp-image-644387360" title="Brasil Telecom" src="http://www.kmsm.ca/wp-content/uploads/2010/08/telebrasil.jpg" alt="" width="580" height="200" /></a><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/telecom-brasil-style-guide.pdf">Brasil Telecom Style Guide (PDF)</a></p>
<h4>Cunard</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/Cunard_Guidelines_USA.pdf"><img class="alignnone size-full wp-image-644387363" title="cunard-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/cunard-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;This information has been designed and presented to ensure that the Cunard brand is marketed in an appropriate and consistent manner. It is essential that the heritage, quality, elegance and reliability of one of the world’s leading brand names is upheld and adhered to in all circumstances.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/Cunard_Guidelines_USA.pdf">Cunard Style Guidelines (PDF)</a></p>
<h4>Princeton University Press</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/PrUnivPress-style-guide.pdf"><img class="alignnone size-full wp-image-644387367" title="princeton-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/princeton-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;The purpose of this manual is to explain the components of the Princeton University Press visual identity program, to define its graphic design standards, and to illustrate how these standards are applied.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/PrUnivPress-style-guide.pdf">Princeton University Press Style Guide (PDF)</a></p>
<h4>Kew</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/key-style-guide.pdf"><img class="alignnone size-full wp-image-644387369" title="kew-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/kew-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;These guidelines will help you produce consistent and effective communication materials for Kew. As well as providing the details of how<br />
elements should be used together, the guidelines should inspire you when developing our brand, establishing useful parameters without restricting creativity.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/key-style-guide.pdf">Kew Brand Guidelines (PDF)</a></p>
<h4>Think Brick</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/Think-Brick-Brand-Guidelines_July-08.pdf"><img class="alignnone size-full wp-image-644387371" title="think-brick-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/think-brick-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;The purpose of the guidelines is to create uniformity in the visual image of Think Brick. It is important that the standards are strictly followed, especially in regard to those concerning the Think Brick logo.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/Think-Brick-Brand-Guidelines_July-08.pdf">Think Brick Brand Guidelines (PDF)</a></p>
<h4>BlackBerry</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/BlackBerry-branding-guidelines.pdf"><img class="alignnone size-full wp-image-644387373" title="blackberry-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/blackberry-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;What’s a brand? More than a name or a logo. More than a name or a logo on a box. And more, ultimately, than what the box contains. What’s inside the box may change, after all–or be succeeded by some other product that’s better, faster and less expensive.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/BlackBerry-branding-guidelines.pdf">BlackBerry Branding Guidelines (PDF)</a></p>
<h4>Channel 4</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/channel-4-style-guide.pdf"><img class="alignnone size-full wp-image-644387376" title="channel-4-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/channel-4-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;Whether it is seen on screen or in print, the logo is continuously changing. It can adapt its texture and colour to the surrounding environment. The new identity reflects Channel 4. It is challenging, distinctive and innovative.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/channel-4-style-guide.pdf">Channel 4 Style Guide (PDF)</a></p>
<h4>Barbican</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/0Barbican-Brand-Guidelines-May07.pdf"><img class="alignnone size-full wp-image-644387378" title="barbican-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/barbican-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;Our identity is not just a logo. It is a design scheme composed of a number of core elements that come together to create a distinctive look and feel that makes the Barbican brand instantly recognisable.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/0Barbican-Brand-Guidelines-May07.pdf">Barbican Brand Guidelines (PDF)</a></p>
<h4>easyGroup</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/easy-group-style-guide.pdf"><img class="alignnone size-full wp-image-644387382" title="easygroup-thumb" src="http://www.kmsm.ca/wp-content/uploads/2010/08/easygroup-thumb.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;Like any manual, its objective is to help people who use the brand to understand its origin, the brand values and the best ways of getting the most out of it.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/easy-group-style-guide.pdf">easyGroup Style Guide (PDF)</a></p>
<h4>Zopa</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/Zopa-style-guide.pdf"><img class="alignnone size-full wp-image-644387384" title="zopa-thumb" src="http://www.kmsm.ca/wp-content/uploads/2010/08/zopa-thumb.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;Consistency in both layout logic and graphic treatment is essential in providing the user familiar experiences across all user journeys within the site. These style guidelines provide a visual framework to ensure future developments of Zopa.com are consistent with the key foundation pages produced.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/Zopa-style-guide.pdf">Zopa Style Guide (PDF)</a></p>
<h4>Skype</h4>
<p><a href="http://issuu.com/bondo/docs/skype_brand_book_-_look?mode=embed&amp;documentId=081126144540-63ceb3433ffe4a79aacf4f93d029fcb0&amp;layout=grey"><img class="alignnone size-full wp-image-644387388" title="skype-logo" src="http://www.kmsm.ca/wp-content/uploads/2010/08/skype-logo.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;This is a guide to the basic elements that make up Skype. Have a read, it will help you to get to know us a little better.&#8221;</p></blockquote>
<p><a href="http://issuu.com/bondo/docs/skype_brand_book_-_look?mode=embed&amp;documentId=081126144540-63ceb3433ffe4a79aacf4f93d029fcb0&amp;layout=grey">Skype Brand Book (Flash)</a></p>
<h4>BBC</h4>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/gvl3_styleguide_v1.pdf"><img class="alignnone size-full wp-image-644387391" title="bbc-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/bbc-thumbnail.jpg" alt="" width="580" height="200" /></a></p>
<blockquote><p>&#8220;The design philosophy underpins everything we do as a user experience and design team. It informs the way our services look, the way they behave and the way we operate as a team. The foundations should be used by all. They include a vertical grid, baseline grid and recommended templates.&#8221;</p></blockquote>
<p><a href="http://www.kmsm.ca/wp-content/uploads/2010/08/gvl3_styleguide_v1.pdf">Global Visual Language 3.0 (PDF)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/15-corporate-style-guides-for-branding-inspiration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<enclosure url="http://www.kmsm.ca/wp-content/uploads/2010/08/northampton-university-brand-manual.pdf" length="2855726" type="application/pdf" /><media:content url="http://www.kmsm.ca/wp-content/uploads/2010/08/northampton-university-brand-manual.pdf" fileSize="2855726" type="application/pdf" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>The pillar stone of branding is the brand manual or style guide. It&amp;#8217;s the central, unifying component of most brand development today. So it&amp;#8217;s become the kind of thing that freelance designers might be expected to produce. And this trend isn&amp;#</itunes:subtitle><itunes:summary>The pillar stone of branding is the brand manual or style guide. It&amp;#8217;s the central, unifying component of most brand development today. So it&amp;#8217;s become the kind of thing that freelance designers might be expected to produce. And this trend isn&amp;#8217;t limited to graphic design. Smashing Magazine &amp;#8211; a web design trade blog &amp;#8211; recently [...]</itunes:summary><itunes:keywords>Resources</itunes:keywords></item>
		<item>
		<title>How To Fix Internet Explorer Javascript, PNG Transparency, and Other CSS Problems In One Simple Step</title>
		<link>http://www.kmsm.ca/2010/how-to-fix-internet-explorer-javascript-and-css-problems-in-one-simple-step/</link>
		<comments>http://www.kmsm.ca/2010/how-to-fix-internet-explorer-javascript-and-css-problems-in-one-simple-step/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 19:41:59 +0000</pubDate>
		<dc:creator>Cailen</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Web Technologies]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387345</guid>
		<description><![CDATA[We&#8217;ve all been there &#8211; project is nearing completion, your site looks great in webkit and firefox, and you want to get paid, but your curmudgeonly client cares what his site looks like in IE6 because his clients are all civil servants, and the government only updates their computers once a decade. Or maybe you just [...]]]></description>
			<content:encoded><![CDATA[<p class="intro"><span class="dropcap">W</span>e&#8217;ve all been there &#8211; project is nearing completion, your site looks great in webkit and firefox, and you want to get paid, but your curmudgeonly client cares what his site looks like in IE6 because his clients are all civil servants, and the government only updates their computers once a decade. Or maybe you just run a publishing site like mine, at <a href="http://salacioussound.com">SalaciousSound.com</a>, and would prefer not to ignore the largest browser segment in the market.</p>
<p>Either way, Internet Explorer can be a pain in the butt, but only if you let it!</p>
<p>I just came across a solution in the google code repository called <a href="http://code.google.com/p/ie7-js/">ie7-js</a>, which</p>
<blockquote><p>is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.</p></blockquote>
<p>Pretty sweet. I just tried it out, and it worked like a charm.</p>
<h4>Option 1 &#8211; If all your png images with transparency end in &#8220;-trans.png&#8221;</h4>
<p>Only one quick step is required, since the people hosting the code are cool with direct linking to the js file (which helps load time a lot, especially in the case of jquery). Copy and paste this code, and you&#8217;re good to go:</p>
<pre class="brush: xml;">
&lt;!--[if lt IE 8]&gt;
&lt;script src=&quot;http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
<h4>Option 2 &#8211; No consistency in filenaming of png images with transparencyCopy and paste this code, and you&#8217;re good to go:</h4>
<pre class="brush: xml;">
&lt;!--[if lt IE 8]&gt;
&lt;script src=&quot;http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js&quot;&gt;
IE7_PNG_SUFFIX=&quot;.png&quot;;
&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/how-to-fix-internet-explorer-javascript-and-css-problems-in-one-simple-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Creative Uses of WordPress</title>
		<link>http://www.kmsm.ca/2010/5-creative-uses-of-wordpress/</link>
		<comments>http://www.kmsm.ca/2010/5-creative-uses-of-wordpress/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 01:39:59 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[Web Technologies]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387240</guid>
		<description><![CDATA[I&#8216;ve been working with WordPress since 2005, way back in its version 2.0 days. Back then, endlessly tinkering with CSS selectors I didn&#8217;t quite understand was about the limit of what I could do with the platform. So it&#8217;s interesting to me to reflect on where WordPress has come from in that time. From introducing [...]]]></description>
			<content:encoded><![CDATA[<p class="intro"><span class="dropcap">I</span>&#8216;ve been working with WordPress since 2005, way back in its version 2.0 days. Back then, endlessly tinkering with CSS selectors I didn&#8217;t quite understand was about the limit of what I could do with the platform.</p>
<p>So it&#8217;s interesting to me to reflect on where WordPress has come from in that time. From introducing the WYSISWG editor and post previews to custom post types, taxonomies, and on-the-fly menus. It&#8217;s come from being a basic blogging platform, to being the starting point for ideas big and small.</p>
<p>But the WordPress core itself is a slow-moving beast. And rightfully so &#8211; it&#8217;s a mature environment now, and integrating features into the core has to be methodical and well planned. With that in mind, much of the true innovation comes in the form of the theme and plugin market.</p>
<p>I&#8217;ve gathered a collection of these resources over the past few months, and I&#8217;d thought I&#8217;d share them here.</p>
<h4>Social Networking: <a href="http://www.buddypress.org/">BuddyPress</a></h4>
<p><a href="http://www.buddypress.org/"><img class="alignnone size-full wp-image-644387243" title="buddypress-thumb" src="http://www.kmsm.ca/wp-content/uploads/2010/08/buddypress-thumb.jpg" alt="BuddyPress.org" width="580" /></a></p>
<blockquote><p>Dubbed <em>&#8220;<strong>Social networking in a box</strong>&#8220;</em>, BuddyPress is a plugin that sits on top of an existing WordPress installation. By default, it provides activity streams, extended profiles, friend connections, private messaging, WordPress blogging, extensible groups, and discussion forums.</p></blockquote>
<h4>Documentation and Collaboration: <a href="http://themeforest.net/item/wordpress-wiki-theme/29479">WordPress Wiki</a></h4>
<p><a href="http://themeforest.net/item/wordpress-wiki-theme/29479"><img class="alignnone size-full wp-image-644387251" title="wordpresswiki-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/wordpresswiki-thumbnail.jpg" alt="" width="580" /></a></p>
<blockquote><p>If you&#8217;ve ever played with the official Wikimedia platform, you know that creating an easy-to-use Wiki is a pain in the ass. WordPress Wiki gives you the core functionality of <strong>a knowledge database</strong> with minimal trouble.</p></blockquote>
<h4>Ticket Tracking: <a href="http://spencerfinnell.com/quality-control-theme/">Quality Control</a></h4>
<p><a href="http://spencerfinnell.com/quality-control-theme/"><img class="alignnone size-full wp-image-644387253" title="qualitycontrol-thumb" src="http://www.kmsm.ca/wp-content/uploads/2010/08/qualitycontrol-thumb.jpg" alt="" width="580" /></a></p>
<blockquote><p>Ticket tracking is hugely important for project management and customer service. And everyone in the web design/development community deals with on tickets on some level. But just like the Mediawiki platform, most ticket tracking environments are either complete overkill or get a &#8220;please gouge my eyes out&#8221; rating on the difficulty scale. Quality Control gives you <strong>an extremely lightweight ticket tracking system</strong>, and you get to keep your sanity.</p></blockquote>
<h4>Classified Ads: <a href="http://themeforest.net/item/sofa-yellooh-wp-yellowpges/98307">Yellooh!</a></h4>
<p><a href="http://themeforest.net/item/sofa-yellooh-wp-yellowpges/98307"><img class="alignnone size-full wp-image-644387272" title="yellooh-thumbnail" src="http://www.kmsm.ca/wp-content/uploads/2010/08/yellooh-thumbnail.jpg" alt="" width="580" /></a></p>
<blockquote><p>Yellooh! is one of a few different examples of using WordPress as <strong>classified ads</strong> board. It stands out for its low cost and nice design. Users are able to add new entries from a front-end form (saving the trouble of logging into the WordPress backend), Google Maps is tightly integrated, and it even features PayPal integration if you&#8217;re looking to charges users to post ads.</p></blockquote>
<h4>Customer Support: <a href="http://themeforest.net/item/instant-qa/92361">Instant Q&amp;A</a></h4>
<p><a href="http://www.kmsm.ca/5-creative-uses-of-wordpress/qanda-thumbnail/" rel="attachment wp-att-644387281"><img src="http://www.kmsm.ca/wp-content/uploads/2010/08/qanda-thumbnail.jpg" alt="" title="qanda-thumbnail" width="600" height="230" class="alignnone size-full wp-image-644387281" /></a></p>
<blockquote><p>Instant Q&#038;A provides an easy to use Q&amp;A forum perfect for <strong>customer support</strong>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/5-creative-uses-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Easily Hide Admin Panels in WordPress</title>
		<link>http://www.kmsm.ca/2010/how-to-hide-admin-panels/</link>
		<comments>http://www.kmsm.ca/2010/how-to-hide-admin-panels/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 04:08:59 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387221</guid>
		<description><![CDATA[The WordPress admin back end can be overwhelming. Combine a default installation with a handful of custom-post types and plugins, and you&#8217;ve got yourself 15 or 16 options panels &#8211; many of which an end user (i.e. a client) will never use. It&#8217;s easy to forget that this sort of clutter confuses users. That&#8217;s why [...]]]></description>
			<content:encoded><![CDATA[<p>The WordPress admin back end can be overwhelming. Combine a default installation with a handful of custom-post types and plugins, and you&#8217;ve got yourself 15 or 16 options panels &#8211; many of which an end user (i.e. a client) will never use.</p>
<p>It&#8217;s easy to forget that this sort of clutter confuses users. That&#8217;s why hiding some of these panels can often be a good idea. Luckily, there&#8217;s an easy to do that.</p>
<h4>The CSS Technique</h4>
<p>Every admin panel in the WordPress backend is identified as <em>#menu-title</em> in the HTML formatting. If we want to hide a particular administration panel that&#8217;s natively displayed for a particular user class, we just need to declare <em>display:none; </em>as a CSS attribute of the ID.</p>
<p>If we want to hide the Plugins panel from users, we simply add the following to <em>functions.php</em>:</p>
<pre class="brush: php;">&lt;?php
add_action('admin_head', 'hide_menus');

function hide_menus() {
	global $current_user;
	get_currentuserinfo();

	If($current_user-&gt;user_login != 'admin') {
		?&gt;
		&lt;style&gt;
		   #menu-plugins{
		        display:none;
		   }
		&lt;/style&gt;
		&lt;?php
	}
}
?&gt;</pre>
<p>Let&#8217;s break this down.</p>
<p>The function <em>hide_menus </em>queries the user info for the currently logged in user. If the user isn&#8217;t an administrator, then the content in the &lt;style&gt; attribute is embedded in the backend. In this case, <em>display:none;</em> is applied to <em>#menu-plugins</em>, and the Plugins panel is hidden from the user&#8217;s browser.</p>
<p>Changing which option panel is hidden, or hiding additional panels, is simply a case of modifying which <em>#menu-title</em> is defined in the &lt;style&gt; attribute.</p>
<p>This technique doesn&#8217;t disable or modify actual user permissions, but simply modifies the way browsers display the backend. It&#8217;s not a secure solution, but it&#8217;s not meant to be &#8211; it&#8217;s just a quick and dirty way of modifying the administrative UI for end users.</p>
<h4>Plugin Alternatives</h4>
<p>There are a number of plugins that reproduce the CSS technique, without the need to manually edit <em>functions.php.</em></p>
<p><a href="http://wordpress.org/extend/plugins/hide-admin-panels/">Hide Admin Panels</a> enjoys fairly robust support for recent versions of WordPress, and is updated regularly.</p>
<h4>Credits</h4>
<p>Kudos to <a href="http://www.strangework.com/2010/03/24/how-to-hide-an-admin-menu-in-wordpress/">Brian Williams</a> for his article and source code for this technique.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/how-to-hide-admin-panels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4 Ways to Create Page and Post Specific Sidebars in WordPress</title>
		<link>http://www.kmsm.ca/2010/4-ways-to-create-page-and-post-specific-sidebars-in-wordpress/</link>
		<comments>http://www.kmsm.ca/2010/4-ways-to-create-page-and-post-specific-sidebars-in-wordpress/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 00:37:01 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387195</guid>
		<description><![CDATA[One of the challenges with using WordPress as a CMS is the lack of truly robust sidebar control. Sidebars can be widgetized, and template files can be assigned different sidebars (i.e. pages, posts, archives) &#8211; but assigning specific sidebars to individual pages and posts isn&#8217;t exactly painless. Let&#8217;s say that I&#8217;m creating a WordPress-based site [...]]]></description>
			<content:encoded><![CDATA[<p>One of the challenges with using WordPress as a CMS is the lack of truly robust sidebar control.</p>
<p>Sidebars can be widgetized, and template files can be assigned different sidebars (i.e. pages, posts, archives) &#8211; but assigning specific sidebars to individual pages and posts isn&#8217;t exactly painless.</p>
<p>Let&#8217;s say that I&#8217;m creating a WordPress-based site with three pages: <em>About Us, Services</em> and <em> Contact</em> &#8211; all of which are generated using page.php. On each page, I&#8217;d like to have a different (widgetized) sidebar. There are three basic ways to accomplish this.</p>
<h4>Multiple template files</h4>
<p>I could create three different page template files (i.e. about.php, services.php, and contact.php) and include three different sidebars. For example, in about.php I could include:</p>
<pre class="brush: php;">&lt;?php include ('sidebar-about.php'); ?&gt;</pre>
<p>While in services.php I could include:</p>
<pre class="brush: php;">&lt;?php include ('sidebar-services.php'); ?&gt;</pre>
<p>Then within each sidebar template file I could define a widgetized structure. This is fine with only a few separate pages requiring individual sidebars, but it quickly becomes an annoying task with a large site. Furthermore, if you&#8217;re developing a product for a client, it&#8217;s not exactly easy to use.</p>
<h4>Custom values</h4>
<p>This is a pretty clever approach, and definitely makes it easier to use. In your template files, you define get_sidebar based on custom post meta. This lets you associate particular posts and pages with various sidebars on the fly:</p>
<pre class="brush: php;">&lt;?php $sidebar = get_post_meta($post-&gt;ID, &quot;sidebar&quot;, true);
get_sidebar($sidebar);
?&gt;</pre>
<p>So now if I create a new page, I enter a custom field with a value of the name of the sidebar I wish to associate it with (i.e. &#8220;sidebar-about&#8221;).</p>
<p>But I&#8217;m still going to be limited if I&#8217;m dealing with a complex information structure. I&#8217;m going to have to create individual sidebar.php files for every sidebar I want to include on the site. Doing this is both messy and near impossible for non-technical end users.</p>
<h4>Conditional awareness</h4>
<p>I can use</p>
<pre class="brush: php;">&lt;div id=&quot;sidebar&quot;&gt;
if (is_home()) {
echo &quot;&lt;ul&gt;&quot;;
wp_list_cats('children=0');
echo &quot;&lt;/ul&gt;
&quot;;
} elseif (is_category()) {
echo &quot;&lt;ul&gt;&quot;;
wp_list_cats('children=1');
echo &quot;&lt;/ul&gt;
&quot;;
} elseif (is_single()) {
} elseif (is_page()) {
if (is_page('About')) {
echo &quot;
This is my about page!
&quot;;
} elseif (is_page('Colophon')) {
echo &quot;
This is my colophon page, running on WordPress &quot; . bloginfo('version') . &quot;
&quot;;
} else {
echo &quot;
Vote for Pedro!
&quot;;
}
} else {
echo &quot;
Pedro offers you his protection.
&quot;;
}
?&amp;gt;
&lt;/div&gt;</pre>
<blockquote><p>But wait&#8230;</p></blockquote>
<p>You can define specific widgetized sidebars in each conditional statement, eliminating the need for separate page.php or single.php template files (i.e. about.php and services.php), but an end user will still have to register the sidebar in functions.php and in a conditional statement when creating a new page with a unique sidebar.</p>
<h4>A better alternative!</h4>
<p>Well, it&#8217;s better in <strong>a lot</strong> of ways at least. It&#8217;s called <a href="http://wordpress.org/extend/plugins/core-sidebars/">Core Sidebars</a>. It&#8217;s a plugin written by Daniel from <a href="http://nexterous.com">Nexterous LLC</a>. Unfortunately, it doesn&#8217;t appear to be actively supported anymore &#8211; with the last update being from 2008. That said, I can confirm that it works with WordPress 3.0.1.</p>
<p>Basically, Core Sidebars enables you to give end users really robust control over widgetized sidebars. Users can create page or post specific sidebars on the fly simply by clicking &#8220;Add Widgets&#8221; in a column that&#8217;s added to the Page/Post list in WordPress. Core Sidebars registers and creates a widgetized sidebar specifically associated with the page/post on which it was created.</p>
<p>It&#8217;s pretty easy to set up too. After installing and activating the plugin, simply post the following wherever the sidebars are going to appear:</p>
<pre class="brush: php;">$sboptions = array(
     'order' =&gt; 'title-content-widgets',
     'before_title' =&gt; '',
     'after_title' =&gt; '',
     'before_content' =&gt; '',
     'after_content' =&gt; '');
coresidebar($sboptions);</pre>
<p><em>Do you use a trick or technique I haven&#8217;t covered here? Let me know with a comment!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/4-ways-to-create-page-and-post-specific-sidebars-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Find and Optimize Fragmented Tables in a MySQL Database</title>
		<link>http://www.kmsm.ca/2010/how-to-find-and-optimize-fragmented-tables-in-a-mysql-database/</link>
		<comments>http://www.kmsm.ca/2010/how-to-find-and-optimize-fragmented-tables-in-a-mysql-database/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 05:19:49 +0000</pubDate>
		<dc:creator>Cailen</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Technologies]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387193</guid>
		<description><![CDATA[I&#8217;ve been doing some database optimization lately, and I found this script super handy. It will find any fragmented tables in your database: select TABLE_NAME,Data_free from information_schema.TABLES where TABLE_SCHEMA NOT IN ('information_schema','mysql') and Data_free &#62; 0; Once you have found your fragmented tables, you can optimize them with this handy piece of code: optimize table [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some database optimization lately, and I found this script super handy. It will find any fragmented tables in your database:</p>
<pre class="brush: sql;">
select TABLE_NAME,Data_free
from information_schema.TABLES
where TABLE_SCHEMA NOT IN ('information_schema','mysql')
and Data_free &gt; 0;
</pre>
<p>Once you have found your fragmented tables, you can optimize them with this handy piece of code:</p>
<pre class="brush: sql;">optimize table %TABLENAME%</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/how-to-find-and-optimize-fragmented-tables-in-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove the Category Base URL in WordPress</title>
		<link>http://www.kmsm.ca/2010/how-to-remove-the-category-base-url-in-wordpress/</link>
		<comments>http://www.kmsm.ca/2010/how-to-remove-the-category-base-url-in-wordpress/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 00:31:44 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=644387187</guid>
		<description><![CDATA[One of the difficulties with using WordPress as a CMS is that the out-of-the-box URL construction is limited. In this respect, categories have particularly poor control. By default, WordPress constructs category URLs as http://domain/category/category-name and post URLs as http://domain/date/post-name. While you can control most aspects of the post URLs (whether or not to display the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the difficulties with using WordPress as a CMS is that the out-of-the-box URL construction is limited. In this respect, categories have particularly poor control.</p>
<p>By default, WordPress constructs category URLs as <em>http://domain/category/category-name</em> and post URLs as <em>http://domain/date/post-name</em>. While you can control most aspects of the post URLs (whether or not to display the month of the post, for example), the only customization available for category URLs is the base name following the domain in which all categories reside (<em>http://domain/series/category-name</em>, for example).</p>
<p>But this can lead to counterintuitive URLs.</p>
<p>For example, if I file a post about about the Godather under a category called Film, the post URL will read <em>http://domain/2010/01/01/the-godfather</em> while the category URL will read <em>http://domain/category/film</em>. This might work well for a blog format, but for large-scale content management, intuitive URLs are a big deal.</p>
<p>Thankfully, we can get WordPress to do our bidding with a simple hack &#8211; and it even works with WordPress 3.0!</p>
<p>Let&#8217;s say I want to create post URLs in the form <em>http://domain/category/post-name</em> and category URLs in the form <em>http://domain/category-name</em>. Makes sense right? Well here&#8217;s how we do that.</p>
<h4>Step One: Edit the Post Permalink</h4>
<p>Open up WordPress administration panel, and navigate to the <strong>Permalinks</strong> options screen. Under <strong>Common settings</strong>, click <strong>Custom Structure</strong> and enter /%category%/%postname%/ into the field.</p>
<h4>Step Two: Edit Functions.php</h4>
<p>To edit the category URL structure we have to go into the <strong>functions.php</strong> file in our WordPress theme. Before the closing PHP bracket, enter the following:</p>
<pre class="brush: php;">
add_filter('user_trailingslashit', 'remcat_function');
function remcat_function($link) {
	return str_replace(&quot;/category/&quot;, &quot;/&quot;, $link);
}

add_action('init', 'remcat_flush_rules');
function remcat_flush_rules() {
	global $wp_rewrite;
	$wp_rewrite-&gt;flush_rules();
}

add_filter('generate_rewrite_rules', 'remcat_rewrite');
function remcat_rewrite($wp_rewrite) {
	$new_rules = array('(.+)/page/(.+)/?' =&gt; 'index.php?category_name='.$wp_rewrite-&gt;preg_index(1).'&amp;paged='.$wp_rewrite-&gt;preg_index(2));
	$wp_rewrite-&gt;rules = $new_rules + $wp_rewrite-&gt;rules;
}
</pre>
<p>Make sure to save <strong>functions.php</strong> and upload it to the theme directory.</p>
<p>Now, to go back to the Godfather example, category URLs will look like <em>http://domain/film</em> and post URLs will appear as <em>http://domain/film/the-godfather</em>. Cool eh?</p>
<p>There are other ways of doing this using <strong>.htaccess</strong> but this is a cleaner approach in that it modifies how WordPress generates URLs, instead of modifying how the server interprets them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/how-to-remove-the-category-base-url-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ontario Young Liberals</title>
		<link>http://www.kmsm.ca/2010/ontario-young-liberals/</link>
		<comments>http://www.kmsm.ca/2010/ontario-young-liberals/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 23:34:36 +0000</pubDate>
		<dc:creator>Joshua Kelly</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=644387166</guid>
		<description />
			<content:encoded />
			<wfw:commentRss>http://www.kmsm.ca/2010/ontario-young-liberals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Make Timthumb Get Youtube and Vimeo Video Thumbnails, Add Default Thumbnail When No Images Are Present</title>
		<link>http://www.kmsm.ca/2010/how-to-make-timthumb-get-youtube-and-vimeo-video-thumbnails-add-default-thumbnail-when-no-images-are-present/</link>
		<comments>http://www.kmsm.ca/2010/how-to-make-timthumb-get-youtube-and-vimeo-video-thumbnails-add-default-thumbnail-when-no-images-are-present/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 18:19:33 +0000</pubDate>
		<dc:creator>Cailen</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[thumnail]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.kmsm.ca/?p=147</guid>
		<description><![CDATA[One of our main portfolio pieces is a music blog called SalaciousSound that I started about 2 years back. I&#8217;ve been using timthumb on the site for about 6 months, though when I first added it I wasn&#8217;t able to grab thumbnails for videos, and it also didn&#8217;t handle posts without images well. I&#8217;ve added [...]]]></description>
			<content:encoded><![CDATA[<p>One of our main portfolio pieces is a music blog called <a href="http://salacioussound.com" target="_blank">SalaciousSound</a> that I started about 2 years back. I&#8217;ve been using timthumb on the site for about 6 months, though when I first added it I wasn&#8217;t able to grab thumbnails for videos, and it also didn&#8217;t handle posts without images well. I&#8217;ve added two pieces of functionality to the function that calls timthumb, catch_that_image(), which resides in my theme&#8217;s functions.php file. The former grabs thumbs from videos as the title describes, and the latter just adds a default image that I have defined if the function can not find an image or a video to get a thumbnail from.</p>
<pre class="brush: php;">function catch_that_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('//i', $post-&amp;gt;post_content, $matches);
$first_img = $matches [1] [0];
if ( $first_img != '' ) {
return urlencode($first_img);
}
/*
$match = array();
preg_match(&quot;/http://www.youtube.com/v/([^&quot;][a-zA-Z0-9-_]+)[&amp;amp;&quot;]/siU&quot;,$post-&amp;gt;post_content,$match);
if ( $match[1] != '' ) {
return 'http://img.youtube.com/vi/'.$match[1].'/0.jpg';
}
$vimmatch = array();
preg_match('@vimeo.com/[^&quot;&amp;amp;d]*([^&quot;&amp;amp;]+)@i', $post-&amp;gt;post_content, $vimmatch);
if ($vimmatch[1] != '') {
$vimhash = unserialize (file_get_contents (&quot;http://vimeo.com/api/v2/video/&quot;.$vimmatch[1].&quot;.php&quot;));
return $vimhash[0]['thumbnail_medium'];
}
*/
else { return 'http://url.com/wp-content/themes/themefolder/images/defaultimage.png'; }

}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kmsm.ca/2010/how-to-make-timthumb-get-youtube-and-vimeo-video-thumbnails-add-default-thumbnail-when-no-images-are-present/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<media:rating>nonadult</media:rating></channel>
</rss>
