<?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>AhWee.com &#187; Website</title>
	<atom:link href="http://ahwee.com/tag/website/feed" rel="self" type="application/rss+xml" />
	<link>http://ahwee.com</link>
	<description>A Resource Oriented Multi Niche Website</description>
	<lastBuildDate>Wed, 23 Nov 2011 03:25:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<atom:link rel='hub' href='http://ahwee.com/?pushpress=hub'/>
		<item>
		<title>How To WebSlice Your Website</title>
		<link>http://ahwee.com/how-to-webslice-your-wordpress-website</link>
		<comments>http://ahwee.com/how-to-webslice-your-wordpress-website#comments</comments>
		<pubDate>Tue, 24 Mar 2009 11:44:29 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ahwee.com/?p=825</guid>
		<description><![CDATA[How to implement Internet Explorer 8 Webslice Feature in Wordpress.
<a href="http://www.ahwee.com/how-to-webslice-your-wordpress-website/"><img title="How To WebSlice Your Wordpress Website" src="http://www.ahwee.com/gallery/zp-core/i.php?a=one-image-posts&#38;i=how-to-webslice-1.jpg&#38;w=220&#38;h=118" alt="How To WebSlice Your Wordpress Website" /></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.ahwee.com/how-to-webslice-your-wordpress-website/"><img class="ZenphotoPress_thumb aligncenter" title="How To WebSlice Your WordPress Website" src="http://www.ahwee.com/gallery/zp-core/i.php?a=one-image-posts&amp;i=how-to-webslice-1.jpg&amp;w=456&amp;h=245" alt="How To WebSlice Your WordPress Website" width="456" height="245" /></a></p>
<p>As we all might have already heard, Microsoft released their <a href="http://www.ahwee.com/internet/new-internet-explorer8-user-review-part-1/">New Internet Explorer 8</a> just a week ago. They have introduced a very useful feature called Webslice which slices a piece of your website on the bookmark tab (as shown in the picture above). Webslice does not come automatically, you&#8217;ll need to do some easy coding to achieve that.</p>
<p>This How To guide will teach you how to slice your WordPress blog/website in order to be detected by Internet Explorer 8&#8242;s Webslice feature. Non-wordpress websites follows the same method as well.<span id="more-825"></span><br />

<!-- Begin Google Adsense code -->
<div class="ads"><script type="text/javascript"><!--
google_ad_client = "pub-7979015157183994";
/* Single Post - Content, 468x60, created 30/10/08 */
google_ad_slot = "7124243196";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<!-- End Google Adsense code -->
</p>
<h3>What is Webslice?</h3>
<p style="text-align: center;"><img class="ZenphotoPress_thumb aligncenter" title="How To WebSlice Your WordPress Website" src="http://www.ahwee.com/gallery/zp-core/i.php?a=one-image-posts&amp;i=how-to-webslice-2.jpg&amp;w=400&amp;h=" alt="How To WebSlice Your WordPress Website" width="400" height="250" /></p>
<p>Webslice is a small (around 300 x 300 pixels) page that can be viewed from Internet Explorer&#8217;s bookmark tab. Webslice works like RSS, just that instead of opening tonnes of new links, it opens a little webpage that represents the link of the website you are going.</p>
<h3>Is Mozila Firefox Webslice Compatible?</h3>
<p>For the time being (24 March 2009), I afraid Mozila Firefox is not webslice compatible yet. But I am quite certain that in the near future they will implement it in their browser as well, same goes to Google Chrome.</p>
<h3>How Do I Implement It?</h3>
<p>I sincerely suggest that you do all this in <a href="http://sourceforge.net/projects/xampp/">Xampp</a> because you don&#8217;t want to screw up your visitor&#8217;s impression as you change things.</p>
<h3>Step 1: Define webslice</h3>
<p>Webslice is detected by Internet Explorer 8 with a few HTML codes. My Headline section is websliced by defining it with this code.<br />
(This is defined in WordPress&#8217;s <strong>&#8220;The Loop&#8221;</strong>)</p>
<p><code>&lt;div class="<strong>hslice</strong> post" <strong>id="1"&gt;</strong><br />
&lt;h2 class="<strong>entry-title</strong>"&gt;Title&lt;/h2&gt;<br />
&lt;div&gt;Content&lt;/div&gt;<br />
<strong>&lt;a rel="feedurl" href="http://www.ahwee.com/webslice.php/" style="display:none;"&gt;&lt;/a&gt;</strong><br />
&lt;/div&gt;</code></p>
<p>Note the bolded texts. These are <strong>essential</strong> to define a webslice.</p>
<p><strong>Hslice</strong> class tells IE8 that this &lt;div&gt; tag is sliced. <strong>Id</strong> is just an identification (I have no idea what is it for), any value is alright. Anything inside the <strong>entry-title</strong> tag is served as the name for the bookmarked tab.</p>
<p>The <strong>rel=&#8221;feedurl&#8221;</strong> tells you where to get the updated feed. For my case it&#8217;s www.ahwee.com/webslice.php we will talk more about that later.</p>
<p>By now if you load your webpage with IE8, the section that is websliceable should be detected with the green icon and green borders shown in the first picture.</p>
<h3>Step 2: Making your Webslice Page</h3>
<p>Let&#8217;s do it my way, I&#8217;ve tried numerous methods and some does not work the way I wanted it to be. I won&#8217;t venture that far.</p>
<p>What I do is, I make a webslice.php file at the root of my wordpress folder, it&#8217;s at the same level with wp-content, wp-includes and wp-admin.</p>
<p>I want to enable <strong>WordPress Template Tags</strong> to be usable in that page so I have to include wp-load and template-loader.php.</p>
<p><code>&lt;?php require_once( dirname(__FILE__) . '/wp-load.php' );<br />
wp();<br />
require_once( ABSPATH . WPINC . '/template-loader.php' );<br />
?&gt;</code></p>
<p>After this it&#8217;s all wordpress programming. All you do is &#8230;</p>
<ol>
<li>Query the updated post</li>
<li>Use the_title(), the_time(), the_content() and etc to show whatever you want to show in the webslice</li>
<li>Define them like what we did in Step 1 again (minus the rel=&#8221;feedurl&#8221; part)</li>
<li>Add one more <strong>entry-content</strong> div tag to determine what to publish on the sliced feed.</li>
<li>Style your webslice with the HTML style &lt;div style=&#8221;text-align:justify&#8221;&gt;. Style sheets does not work, tell me if you found a way around this.</li>
</ol>
<p>If you have no idea what I&#8217;m talking about and would like to look at codes. <a href="http://www.ahwee.com/download/webslice.rar">Download it</a>.</p>
<h3>Step 3: Testing</h3>
<p>Test your webslice. See if it&#8217;s working properly, refresh it from the bookmark tab.</p>
<p>Set the update frequency to 15 minutes and make a test post. After 15 minutes, observe your webslice update by changing the text and bolding it. If you have reached until that part, implement it to your website and let your visitors enjoy webslicing your webpage.</p>
<p>As an admin I proudly announce that AhWee.com is Webslice compatible.</p>
<p>That&#8217;s all for this guide. If I missed anything or something is not working. Get back to me I will answer as quickly as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://ahwee.com/how-to-webslice-your-wordpress-website/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

