<?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>SoleSky &#187; web</title>
	<atom:link href="http://www.solesky.com/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solesky.com</link>
	<description>My love, My life,My soul</description>
	<lastBuildDate>Mon, 30 Aug 2010 13:15:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Keyword: Censored</title>
		<link>http://www.solesky.com/2010/04/keyword-censored/</link>
		<comments>http://www.solesky.com/2010/04/keyword-censored/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 04:02:38 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Soliloquy]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[South Park]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1492</guid>
		<description><![CDATA[
As a big fan of South Park, I can&#8217;t miss any new episode of it. And this great comedy animation has been broadcasted years and years and the 200th episode finally comes. In 200th and  201th episode, the most heard voice is &#8220;bi-~&#8221;. &#8220;Bi&#8221; is used to cover those sensitive words, image, and other stuffs.
South [...]]]></description>
			<content:encoded><![CDATA[<p><a class="flickr-image alignnone" title="SP200" rel="flickr-mgr" href="http://www.flickr.com/photos/solesky1/4545073734/"><img class="flickr-large" src="http://farm5.static.flickr.com/4022/4545073734_ddf20b6737.jpg" alt="SP200" /></a></p>
<p>As a big fan of South Park, I can&#8217;t miss any new episode of it. And this great comedy animation has been broadcasted years and years and the 200th episode finally comes. In 200th and  201th episode, the most heard voice is &#8220;bi-~&#8221;. &#8220;Bi&#8221; is used to cover those sensitive words, image, and other stuffs.</p>
<p>South Park can&#8217;t be seen on TV in China, a country that has the most great number of censored words. But thanks to the Internet, there are many many South Park fans in China. For example, I started to watch South Park when I was in the campus 4 years ago. And then I discovered that there are so many guys like me on the web in China.</p>
<p>Sometimes I think about why South Park so popular in China. It&#8217;s funny that this animation didn&#8217;t release Chinese version in mainland of China, and also it contains a lot of American jokes that we hardly to get it. But South Park is totally a big hit. The reason I love it is because that I admire the freedom of discuss and express people&#8217;s own feelings. We admire the American people&#8217;s liberty of speech. The author of South Park can make fun of whoever they want, including the President of USA. But if we say something about our &#8220;great&#8221; Party in our opinion and stand in a wrong point, maybe someone would call you to drink&#8230;. South Park is very brave to express the author&#8217;s, the ordinary people&#8217;s voices, thinkings in public, so there are many censored things couldn&#8217;t be told about and seen directly. Then the &#8220;bi&#8221; voice comes out very frequently. In fact, we got it most of the time&#8230; That is the most funny thing and we all know that. And at this point, we Chinese guys love this &#8220;bit&#8221; sound very much because it just like the situation we are facing all the time. Our great China Lan is full of sensitive culture. &#8220;The Big Brother is watching you&#8221;  All the sensitive information would be filtered or the sensitive word would be replace by &#8220;CENSORED&#8221;.</p>
<p>Chinese web is a black joke itself. And Chinese netizens love telling black jokes. So we love South Park~ <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/04/keyword-censored/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a Page of posts</title>
		<link>http://www.solesky.com/2009/07/create-a-page-of-posts/</link>
		<comments>http://www.solesky.com/2009/07/create-a-page-of-posts/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 00:34:47 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=827</guid>
		<description><![CDATA[Maybe sometimes we need to create a page to collect many posts that have same factor, or they are about the same topic. For example, now I have posted several posts about my journey at Yangshuo. Then I wanna create a page to display them. My plan is to create a page called &#8220;footprints&#8221; that [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe sometimes we need to create a page to collect many posts that have same factor, or they are about the same topic. For example, now I have posted several posts about my journey at Yangshuo. Then I wanna create a page to display them. My plan is to create a page called &#8220;footprints&#8221; that can show a list of all my posts about journey. And then, I wanna create a sub-page to display some of them, focused on the Yangshou journey. Like this:<br />
<img class="alignnone size-full wp-image-829" title="page&amp;subpages" src="http://www.solesky.com/wp-content/uploads/2009/07/screenshot_002.png" alt="page&amp;subpages" width="246" height="213" /><br />
Then the first step is to create the &#8220;footprints&#8221; page. There are several ways to do that.</p>
<ul>
<li> The lazy one is to let it done with some plugins, such things related with &#8220;list&#8221;, anyway, I don&#8217;t remember <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  . That&#8217;s quite easy to make it work. So let&#8217;s go to the second one.</li>
<li> DIY the page by yourself.  When you decide to DIY such page by yourself, we have to make a file called template file which control how the page display.</li>
</ul>
<p>The way to create a template file:</p>
<p><span id="more-827"></span></p>
<ol>
<li>: Make a copy of your &#8220;index.php&#8221; in the using theme folder, or the &#8220;single.php&#8221; if you want the comment feature. And add a few line to mention that this is a template file, just like:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: yangshuo
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Then rename as &#8220;tour.php&#8221;.
</li>
<li> : Modify some codes.<br />
you can replace the codes which fetching the posts data by new codes that get the post list function.<br />
Or make it as what I do:<br />
Find the sentence about fetching all post like:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>replace with</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cat=55&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That is to choose those category belong to &#8220;tour&#8221; (ID =55).<br />
Then find and delete the part of post content:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">                &lt;div class=&quot;content&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;div class=&quot;fixed&quot;&gt;&lt;/div&gt;
		&lt;/div&gt;</pre></td></tr></table></div>

<p>Then we got a &#8220;list&#8221; that display the post only with those title and some meta information. <a href="http://www.solesky.com/footprints/">Like this</a>
</li>
<li> : Add page called &#8220;footprints&#8221; that using this template and publish~ </li>
<p>       In fact there is another way to do that, by using the search feature of word press.</p>
<ol>
<li> : We need a search link that show the post related to tour. <a href="http://www.solesky.com/category/tour-fun/">Like this: http://www.solesky.com/category/tour-fun/</a>
</li>
<li> : Create a template called tour2.php by copying the index.php and add a heading like this:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: tour
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;script&gt;location=&quot;http://www.solesky.com/category/tour-fun&quot;&lt;/script&gt;</pre></td></tr></table></div>

</li>
<p>Maybe you are clear now. This time we use the script to make a automatic &#8220;jump&#8221; to the search page of &#8220;tour&#8221;. That also make a good list for us. But this time we can&#8217;t modify the detail such as the order and meta and so on. Anyway, this methods is easier~
</li>
<p>OK, the &#8220;footprints&#8221; page show a list of posts about all my tour.<br />
Then I have to create different feature like Yangshuo tour feature.</p>
<p>The steps are quite similar. Create a template file called &#8220;yangshuo&#8221; and do step 1 as when we create the &#8220;tour.php&#8221; above.</p>
<p>Now we find the codes</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>And modify it to display only on the topic about Yangshuo.<br />
This time we use tag selection instead, so we replace this line by:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tag=yangshuo&amp;order=ASC'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
       <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s to say we only query the posts those have Yangshuo tag from database.</p>
<p>And I don&#8217;t modify the rest part cause I want to display the content.</p>
<p><a href="http://www.solesky.com/footprints/yangshuo/">Like this</a></p>
<p>Then make a sub page called &#8220;Yangshuo&#8221; belongs to the &#8220;footprint&#8221; page using this template file and publish~<br />
~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/07/create-a-page-of-posts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
