<?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>Ryan Paul &#187; Websites</title>
	<atom:link href="http://www.ryanpaul.ca/category/websites/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryanpaul.ca</link>
	<description>A disillusioned British guy in Kenora, Ontario blogging about life and racism in Canada from the police, judiciary and society.</description>
	<lastBuildDate>Wed, 28 Jul 2010 08:09:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Useful WordPress Stuff</title>
		<link>http://www.ryanpaul.ca/websites/useful-wordpress-stuff/</link>
		<comments>http://www.ryanpaul.ca/websites/useful-wordpress-stuff/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 07:58:37 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/?p=1810</guid>
		<description><![CDATA[I&#8217;m constantly looking and re looking for various tiny tricks and tips I&#8217;ve used over the years on multiple WordPress powered websites. I&#8217;ve grown sick of trying to remember which sites, and so I&#8217;ve spent a few hours compiling this list. This list is primarily for my own use, but if you should find it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m constantly looking and re looking for various tiny tricks and tips I&#8217;ve used over the years on multiple WordPress powered websites.  I&#8217;ve grown sick of trying to remember which sites, and so I&#8217;ve spent a few hours compiling this list.   This list is primarily for my own use, but if you should find it helpful&#8230; then knock yourself out <img src='http://www.ryanpaul.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   This list will definitely be expanding so I can use it for a one-stop-shop for every website I build.</p>
<p>But for now folks.. I hope you find this stuff useful.</p>
<p>I&#8217;d love to hear from people if anyone uses these&#8230; so leave a comment!</p>
<p>You plum!</p>
<hr /><strong>Individual Dynamic Link To A Post / Page:</strong><br />
<code>&lt;a href="&lt;?php echo get_page_link(1);?&gt;"&gt;&lt;?php echo   get_the_title(1) ?&gt;&lt;/a&gt;</code><br />
This will output a single dynamic link to a post or a page.</p>
<hr /><strong>Individual Dynamic Link To A Category:</strong><br />
<code>&lt;a href="&lt;?php echo get_category_link(1);?&gt;"&gt;&lt;?php echo   get_cat_name(1) ?&gt;&lt;/a&gt;</code><br />
This will output a single dynamic link to a category.</p>
<hr /><strong>Front End Delete Post Link For Authorised Users</strong></p>
<p>If you don&#8217;t have a functions.php in your WordPress theme, create &#8216;functions.php&#8217; and add this function to it.<strong><br />
</strong><br />
<code>function wp_delete_post_link($link = 'Delete This', $before = '', $after =     '')<br />
{<br />
global $post;<br />
if ( $post-&gt;post_type == 'page' ) {<br />
if ( !current_user_can( 'edit_page', $post-&gt;ID ) )<br />
return;<br />
} else {<br />
if ( !current_user_can( 'edit_post', $post-&gt;ID ) )<br />
return;<br />
}<br />
$link = "&lt;a onclick=\"return confirm('Are you SURE you want to delete     this post/page?')\" href='" . wp_nonce_url( get_bloginfo('url') .     "/wp-admin/post.php?action=delete&amp;amp;post=" . $post-&gt;ID,     'delete-post_' . $post-&gt;ID) . "'&gt;".$link."&lt;/a&gt;";<br />
echo $before . $link . $after;<br />
}</code><br />
Then add the following into your template within The Loop wherever you wish the delete link to go.<br />
<code>&lt;?php wp_delete_post_link('Delete', '  &lt;strong class="delete"&gt;', '&lt;/strong&gt; ') ?&gt;</code></p>
<hr /><strong>Front End Delete Comment Link</strong></p>
<p>Open &#8216;comments.php&#8217; and look for the edit comment link which will be something like: &lt;?php edit_comment_link(&#8216;Edit&#8217;,&#8217; [ ',' ] &#8216;); ?&gt; and add the following after it:<br />
<code>&lt;?php if (current_user_can('edit_post', $post-&gt;ID)) { ?&gt;&lt;strong&gt;[ &lt;a onclick="return confirm('Are you SURE you want to delete this comment?')" href='&lt;?php echo wp_nonce_url("/wp-admin/comment.php?action=deletecomment&amp;amp;c=$comment-&gt;comment_ID&amp;amp;_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment-&gt;comment_ID.""); ?&gt;'&gt;Delete&lt;/a&gt; ]&lt;/strong&gt;&lt;?php } ?&gt;</code></p>
<hr /><strong>Get Slug:</strong></p>
<p>You should be able to put the code below into your functions.php&#8230; or into the html head of your theme:<br />
<code>&lt;?php<br />
$post_id = get_post($post-&gt;ID); // get current post or page<br />
$slug = $post_id-&gt;post_name; // define slug as $slug<br />
?&gt;</code><br />
Then use the following to echo the slug:<br />
<code>&lt;?php echo $slug; ?&gt;</code></p>
<hr /><strong>Retrieve Post ID Outside of the Loop</strong></p>
<p>Put this code into your functions.php:<br />
<code>function function_name() {<br />
global $wp_query;<br />
$thePostID = $wp_query-&gt;post-&gt;ID;<br />
}</code><br />
Then use the following to echo the Post ID:<br />
<code>&lt;?php echo $post-&gt;ID ?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/useful-wordpress-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome political websites</title>
		<link>http://www.ryanpaul.ca/websites/awesome-political-websites/</link>
		<comments>http://www.ryanpaul.ca/websites/awesome-political-websites/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:41:09 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[awesome government websites]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/?p=1756</guid>
		<description><![CDATA[For a lot of people, websites are the first point of contact they&#8217;ll have with a particular organization/business/government entity.  As with all groups I believe that the quality of the website should reflect the quality of the group.  I&#8217;ve compiled a list of some political websites of various international government departments that I think are [...]]]></description>
			<content:encoded><![CDATA[<p>For a lot of people, websites are the first point of contact they&#8217;ll have with a particular organization/business/government entity.  As with all groups I believe that the quality of the website should reflect the quality of the group.  I&#8217;ve compiled a list of some political websites of various international government departments that I think are awesome.  <span id="more-1756"></span></p>
<hr />
<h3>United States Department of Justice</h3>
<p>First on the list is the United States Department of Justice.  From a design perspective it simply works brilliantly.  It has that blog feel &#8211; but still gives an air of competence and stateliness.</p>
<p><a href="http://www.justice.gov" target="top_"><img class="alignnone size-full wp-image-1759" title="United States Department of Justice" src="http://www.ryanpaul.ca/wp-content/uploads/thumb-department-of-justice.jpg" alt="United States Department of Justice" /></a></p>
<hr />
<h3>United States Army</h3>
<p>This is another American goverment website that just rocks!  I love the design of this.  What more can I say?</p>
<p><a href="http://www.army.mil" target="top_"><img class="alignnone size-full wp-image-1759" title="United States Army" src="http://www.ryanpaul.ca/wp-content/uploads/thumb-united-states-army.jpg" alt="United States Army" /></a></p>
<hr />
<h3>United States Peace Corps</h3>
<p><a href="http://www.peacecorps.gov" target="top_"><img class="alignnone size-full wp-image-1760" title="United States Peace Corps" src="http://www.ryanpaul.ca/wp-content/uploads/thumb-peace-corps.jpg" alt="United States Peace Corps" /></a></p>
<hr />
<h3>United States Bureau of the Public Debt</h3>
<p><a href="http://www.publicdebt.treas.gov/" target="top_"><img class="alignnone size-full wp-image-1761" title="United States Bureau of the Public Debt" src="http://www.ryanpaul.ca/wp-content/uploads/thumb-bureau-of-the-public-debt.jpg" alt="United States Bureau of the Public Debt" /></a></p>
<hr />
<h3>White House</h3>
<p><a href="http://www.whitehouse.gov"><img class="alignnone size-full wp-image-1762" title="White House" src="http://www.ryanpaul.ca/wp-content/uploads/thumb-whitehouse.jpg" alt="White House" /></a></p>
<p>Is there something you noticed about this list?  They&#8217;re all American websites.  How sad is that?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/awesome-political-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sweet CSS</title>
		<link>http://www.ryanpaul.ca/websites/sweet-css/</link>
		<comments>http://www.ryanpaul.ca/websites/sweet-css/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 22:29:21 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/?p=1173</guid>
		<description><![CDATA[If you check on Google for something like &#8216;awesome css design&#8217; you&#8217;ll find a plethora of information.  So I figured why should I not add a very short blog of my own about the subject.  Here&#8217;s only three, but I&#8217;ll add another soon. Simple Art Studio 7 Designs Point of Entry]]></description>
			<content:encoded><![CDATA[<p>If you check on Google for something like &#8216;awesome css design&#8217; you&#8217;ll find a plethora of information.  So I figured why should I not add a very short blog of my own about the subject.  Here&#8217;s only three, but I&#8217;ll add another soon.</p>
<p><strong>Simple Art</strong></p>
<p><a href="http://www.simpleart.com.ua/en/" target="_blank"><img class="alignnone size-full wp-image-1174" style="border:1px #000000 solid; padding:1px;" title="Simple Art" src="http://www.ryanpaul.ca/wp-content/uploads/simpleart-460x151.jpg" alt="Simple Art" width="460" height="151" /></a></p>
<p><strong>Studio 7 Designs</strong></p>
<p><a href="http://www.studio7designs.com/" target="_blank"><img class="alignnone size-full wp-image-1175" style="padding: 1px; border:1px #000000 solid;" title="Studio 7 Designs" src="http://www.ryanpaul.ca/wp-content/uploads/studio7-460x151.jpg" alt="Studio 7 Designs" width="460" height="151" /></a></p>
<p><strong>Point of Entry</strong></p>
<p><a href="http://www.pointofe.com" target="_blank"><img class="alignnone size-full wp-image-1176" style="padding: 1px; border: 1px #000000 solid;" title="poe-460x151" src="http://www.ryanpaul.ca/wp-content/uploads/poe-460x151.jpg" alt="poe-460x151" width="460" height="151" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/sweet-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome Cover Songs on Youtube</title>
		<link>http://www.ryanpaul.ca/websites/awesome-cover-songs-on-youtube/</link>
		<comments>http://www.ryanpaul.ca/websites/awesome-cover-songs-on-youtube/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 06:26:57 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/?p=966</guid>
		<description><![CDATA[Alicia Keys &#8211; No One ( sung by Sheena Melwani) Billy Jean &#8211; Michael Jackson ( played by Jose Feliciano )]]></description>
			<content:encoded><![CDATA[<p>Alicia Keys &#8211; No One ( sung by Sheena Melwani)</p>
<p><a href="http://www.ryanpaul.ca/websites/awesome-cover-songs-on-youtube/"><em>Click here to view the embedded video.</em></a></p>
<p>Billy Jean &#8211; Michael Jackson ( played by Jose Feliciano )</p>
<p><a href="http://www.ryanpaul.ca/websites/awesome-cover-songs-on-youtube/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/awesome-cover-songs-on-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Designing and Notepad</title>
		<link>http://www.ryanpaul.ca/websites/web-designing-and-notepad/</link>
		<comments>http://www.ryanpaul.ca/websites/web-designing-and-notepad/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 00:14:42 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/2007-07-28/web-designing-and-notepad/</guid>
		<description><![CDATA[I&#8217;m a web designer by trade. It&#8217;s what I do for a living and what I do to bring in a meager income to partially support my children. So many times I read about web designers bragging that they still code their html in Notepad. About 95% of people making this claim are flat-out lying. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a web designer by trade.  It&#8217;s what I do for a living and what I do to bring in a meager income to partially support my children.</p>
<p>So many times I read about web designers bragging that they still code their html in Notepad.  About 95% of people making this claim are flat-out lying.  Only a moron with NO BRAINS and no time-management skills would code an entire website solely in Notepad.</p>
<p>I know from experience&#8230; being in the field that web designers use programs like Coffee Cup, Web Studio, Dreamweaver, GoLive and Homesite.  Some archaic douche bags still use Frontpage but they&#8217;re in the minority.</p>
<p>Some people might code SOME of their html in &#8216;code&#8217; view in these HTML editors, but they do it much like me.  If I&#8217;m doing a complexed layout using CSS design instead of tables, then I&#8217;ll type the html by hand and keep checking it in WYSIWYG view.  But most people still use tables which suck.  There&#8217;s VERY FEW situations when a table is a necessity but mostly they&#8217;re crap and are horrendous for search engine optimisation.  Anyone using them for a website layout in this day and age knowing there is something better just needs a slap.</p>
<p>So please&#8230; if you&#8217;re claiming you use Notepad please stop lying because the chances are that you don&#8217;t (at least to make complete websites).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/web-designing-and-notepad/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS Zen Garden</title>
		<link>http://www.ryanpaul.ca/websites/css-zen-garden/</link>
		<comments>http://www.ryanpaul.ca/websites/css-zen-garden/#comments</comments>
		<pubDate>Sun, 22 Jul 2007 19:50:13 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/2007-07-22/css-zen-garden/</guid>
		<description><![CDATA[Most people in the design industry know about CSS Zen Garden.  It&#8217;s a website designed to show the power of css design.  There is a set amount of content which never changes, and web developers are invited to send in their own css files to style the website to their own design. They have no [...]]]></description>
			<content:encoded><![CDATA[<p>Most people in the design industry know about CSS Zen Garden.  It&#8217;s a website designed to show the power of css design.  There is a set amount of content which never changes, and web developers are invited to send in their own css files to style the website to their own design.</p>
<p>They have no physical access to the site, so they can&#8217;t change the content according to their design.  Their design changes the content layout.</p>
<p>It&#8217;s a truly excellent site, showcasing some fantastic designing and css skills.   Some of the submissions go for more fancy tricks rather than good design, but even those are decent.</p>
<p><a href="http://www.csszengarden.com" target="top_">http://www.csszengarden.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/css-zen-garden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Blog Post About Blogging</title>
		<link>http://www.ryanpaul.ca/websites/a-blog-post-about-blogging/</link>
		<comments>http://www.ryanpaul.ca/websites/a-blog-post-about-blogging/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 04:41:49 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/2007-07-21/a-blog-post-about-blogging/</guid>
		<description><![CDATA[Of late I&#8217;ve started to fall in love with WordPress. The sheer amount of functionality provided out of the base package, combined with the awesome power of the hundreds of plugins is definitely making my life more fulfulling. I recently heard about a guy who earns a six-figure income from blogging. No doubt I would [...]]]></description>
			<content:encoded><![CDATA[<p>Of late I&#8217;ve started to fall in love with WordPress.  The sheer amount of functionality provided out of the base package, combined with the awesome power of the hundreds of plugins is definitely making my life more fulfulling.</p>
<p>I recently heard about a guy  who earns a six-figure income from  blogging.  No doubt I would LOVE to do that&#8230; even though the $451 a day he earns from Google Ads dwarfs my approximately $7 per day&#8230; I would blog if I made no money and nobody EVER came to my website.</p>
<p>For instance&#8230; my day job is as a web developer.  Content management systems are a huge part of what I do every day.  I&#8217;ve tried all of the major ones.  My boss was very apprehensive on using WordPress in a professional environment as a CMS.  It took the crashing of a server with Drupal on it and the time it took me to construct that site, to get him to agree to have the same site rebuilt in WordPress.</p>
<p>On my WordPress Plugins page, I&#8217;ve listed all of the WordPress plugins I use on various personal websites.  So far I&#8217;ve used nearly all of them on work-sites in the last three weeks that the boss has agreed to allow WordPress in the workplace.</p>
<p>The flexibility and raw power is making WordPress one of the great loves of my life.  I&#8217;m not really sure what makes me feel like this either hahahaha.  Maybe it&#8217;s just having that administrative control to do what I want, where I want and how I want.</p>
<p>I can tell anyone out there who&#8217;s considering building a static OR interactive website with one of the major ones like Drupal, Joomla, PHPNuke, PostNuke, Xoops or anything else&#8230; FORGET that.  Use WordPress.  The plugins are where it&#8217;s at.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/websites/a-blog-post-about-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plodding On</title>
		<link>http://www.ryanpaul.ca/political/plodding-on/</link>
		<comments>http://www.ryanpaul.ca/political/plodding-on/#comments</comments>
		<pubDate>Sun, 01 Apr 2007 01:28:09 +0000</pubDate>
		<dc:creator>Ryan Paul</dc:creator>
				<category><![CDATA[Political]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[British Navy]]></category>
		<category><![CDATA[Iran]]></category>
		<category><![CDATA[Military]]></category>
		<category><![CDATA[navy]]></category>

		<guid isPermaLink="false">http://www.ryanpaul.ca/2007-04-01/plodding-on/</guid>
		<description><![CDATA[As usual&#8230; life plods on. Work is going good. Very very busy. Life on the home front is same as always. Rocky at times, great at others. My daughter is doing excellently. I have great trouble getting her to drink her milk all at once&#8230; the only time I don&#8217;t have problems feeding her is [...]]]></description>
			<content:encoded><![CDATA[<p>As usual&#8230; life plods on.  Work is going good.  Very very busy.</p>
<p>Life on the home front is same as always.  Rocky at times, great at others.  My daughter is doing excellently.  I have great trouble getting her to drink her milk all at once&#8230; the only time I don&#8217;t have problems feeding her is in the morning around 6am.</p>
<p>Lorraine doesn&#8217;t have problems getting her to eat&#8230; and didn&#8217;t with Nicolas either, even though he was with me 90% of the days when he was still on the bottle.  It used to bother me that my children eat better for their mother than me, but it doesn&#8217;t much at all anymore.  I figure it&#8217;s just one of those things that has no rhyme or reason that I can figure out.  So it&#8217;s all good!</p>
<p>I&#8217;m building my own community portal at <a href="http://www.kenoralife.ca">http://www.kenoralife.ca</a> to try and compete with long standing, but lack lustre local competitors mykenora.com and gokenora.com.  Kenora Life offers free email addresses, and will eventually offer free webhosting, classifieds and a search engine.  All in good time!</p>
<p>I&#8217;m sure most educated people have heard the latest bullshit in the Middle East &#8211; <a title="Iran's Revoluntionary Guard captures 15 British Navy sailors off the coast of Iraq" href="http://news.bbc.co.uk/2/hi/uk_news/6484279.stm" target="top_">Iran has captured 15 British Navy sailors</a>.  They&#8217;ve said that the Brits were in Iranian waters&#8230; which is about as sure as anything could be sure wrong!  <a title="Disputed locations of captured British Navy sailors by Iran" href="http://news.bbc.co.uk/2/hi/in_depth/6502805.stm" target="top_">Iran gave one set of coordinates&#8230; and then when the Navy pointed out those were still inside Iraq&#8217;s waters, Iran changed to another set of coordinates</a>.  They won&#8217;t release them, and the wimp in 10 Downing Street won&#8217;t launch a Cruise missile strike against Iran.  If Margaret Thatcher was in power&#8230; this would have been over 5 days ago.</p>
<p>If Iran acts this way and tries to bully people now&#8230; what can we expect with a nuclear armed Iran?  We need to bomb the hell out of the Ayatollah, and Ahmenedin</p>
<p>It irks me that Iran&#8217;s military could sneak up on ours without being detected which is almost impossible&#8230; so what the likely story is that either there was a failure of command on the HMS Cornwall, or they were in Iranian waters and were testing response times.</p>
<p>It irks me that <a title="Bush attacks Iran over British Navy captives" href="http://news.bbc.co.uk/2/hi/uk_news/6514567.stm" target="top_">it took President Bush a week to publicly say anything</a>.  I&#8217;ve been reading various peoples comments about this. One said that the Americans would have blown the Iranians out of the water&#8230; but instead we just surrender humbly and write rambling letters.</p>
<p>Put me in charge and I&#8217;ll have this sorted out in a week &#8211; launch a couple of Trident warheads at Tehran, and take a British aircraft carrier to the Persian Gulf and keep it there permanently&#8230; that&#8217;d sort out those stupid f**king Persians.  Why don&#8217;t they just stick to playing chess and making rugs?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpaul.ca/political/plodding-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
