<?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/"
	>

<channel>
	<title>Sneil</title>
	<atom:link href="http://www.sneil.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.sneil.com</link>
	<description>是的，没错，就是一只蜗牛！</description>
	<pubDate>Wed, 31 Dec 2008 13:01:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>我的Wordpress初始设置</title>
		<link>http://www.sneil.com/?p=3</link>
		<comments>http://www.sneil.com/?p=3#comments</comments>
		<pubDate>Thu, 11 Dec 2008 16:15:16 +0000</pubDate>
		<dc:creator>Sneil</dc:creator>
		
		<category><![CDATA[我的日志| Diary]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sneil.com/%e6%88%91%e7%9a%84wordpress%e5%88%9d%e5%a7%8b%e8%ae%be%e7%bd%ae.htm</guid>
		<description><![CDATA[安装wordpress完成后，根据自己的偏好进行设置，记之备忘。

下载最新的Wordpress 2.7安装完成后，开始设置及修改：

一、格式修改，内容增添
1. 修改博客名称，副标题
2. 修改日期格式为 l, F jS, Y，时间格式为 H:i:s
3. 上传新主题 WP_Premium，删除多余的主题
4. 修改永久链接格式为%postname%.htm
5. 建立分类
  我的日志&#124; Diary
   善用酷软&#124; Software
   我的收集&#124; Collection
   电脑网络&#124; PCInternet
6. 添加最新评论（作者原文：http://www.gengbing.com/aboutme/show-1410-1.html）

侧栏调用代码如下：]]></description>
			<content:encoded><![CDATA[<p>安装wordpress完成后，根据自己的偏好进行设置，记之备忘。</p>
<p>下载最新的<a href="http://cn.wordpress.org/">Wordpress 2.7</a>安装完成后，开始设置及修改：</p>
<p>1. 修改博客名称，副标题<br />
2. 修改日期格式为 l, F jS, Y，时间格式为 H:i:s<br />
3. 上传新主题 WP_Premium，删除多余的主题<br />
4. 修改永久链接格式为%postname%.htm<br />
5. 建立分类<br />
   我的日志| Diary<br />
    善用酷软| Software<br />
    我的收集| Collection<br />
    电脑网络| PCInternet<br />
6. 添加最新评论（作者原文：http://www.gengbing.com/aboutme/show-1410-1.html）</p>
<p>侧栏调用代码如下：</p>
<pre name="code" class="php:nocontrols">
<!-- Start Recent Comments -->
<!--p if (function_exists('mdv_recent_comments')) {-->
<div class="widget widget_recent_entries">
<h2>Recent Comments</h2>
<ul>
  <!--p mdv_recent_comments('10');--></ul>
</div>

<!--p }-->
<!-- End Recent Comments -->
</pre>
<p>在wp-includes中functions.php模板加入以下代码：</p>
<pre name="code" class="php">
/*
Plugin Name: Recent Comments
*/

if (function_exists('mdv_recent_comments')) {
}else{

	function mdv_recent_comments($no_comments = 10, $comment_lenth = 5, $before = '
<li class="off" onmouseover="this.className=&quot;on&quot;;" onmouseout="this.className=&quot;off&quot;;">', $after = '

', $show_pass_post = false, $comment_style = 0) {
	    global $wpdb;
	    $request = "SELECT ID, comment_ID, comment_content, comment_author, comment_author_url, post_title FROM $wpdb-&gt;comments LEFT JOIN $wpdb-&gt;posts ON $wpdb-&gt;posts.ID=$wpdb-&gt;comments.comment_post_ID WHERE post_status IN ('publish','static') ";
		if(!$show_pass_post) $request .= "AND post_password ='' ";
		$request .= "AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT $no_comments";
		$comments = $wpdb-&gt;get_results($request);
	    $output = '';
		if ($comments) {
			foreach ($comments as $comment) {
				$comment_author = stripslashes($comment-&gt;comment_author);
				if ($comment_author == "")
					$comment_author = "anonymous";
				$comment_content = strip_tags($comment-&gt;comment_content);
				$comment_content = stripslashes($comment_content);
				$words=split(" ",$comment_content);
				$comment_excerpt = join(" ",array_slice($words,0,$comment_lenth));
				$permalink = get_permalink($comment-&gt;ID)."#comment-".$comment-&gt;comment_ID;

				if ($comment_style == 1) {
					$post_title = stripslashes($comment-&gt;post_title);

					$url = $comment-&gt;comment_author_url;

					if (empty($url))
						$output .= $before . $comment_author . ' on ' . $post_title . '.' . $after;
					else
						$output .= $before . "<a rel="external" href="$url">$comment_author</a>" . ' on ' . $post_title . '.' . $after;
				}
				else {
					$output .= $before . '' . $comment_author . ':  <a title="View the entire comment by ' . $comment_author.'" href="' . $permalink;
					$output .= '">' . $comment_excerpt.'</a>' . $after;
				}
			}
			$output = convert_smilies($output);
		} else {
			$output .= $before . "None found" . $after;
		}
	    echo $output;
	}
}</li>
</pre>
<p>7. 在侧边栏增加一个TAGS排行榜（作者原文：http://dickeydong.cn/wp-tag-cloud.html）</p>
<pre name="code" class="php:nocontrols">
<!--p wp_tag_cloud('smallest=12&#038;largest=12&#038;unit=px&#038;number=20&#038;format=list&#038;orderby=count&#038;order=DESC');-->
</pre>
<p>8.添加页面Album和Tags<br />
9.添加更新服务网址<br />
http://blogsearch.google.com/ping/RPC2<br />
http://api.my.yahoo.com/RPC2<br />
http://api.my.yahoo.com/rss/ping<br />
http://ping.feedburner.com<br />
http://www.zhuaxia.com/rpc/server.php<br />
http://www.xianguo.com/xmlrpc/ping.php<br />
http://www.feedsky.com/api/RPC2<br />
http://blog.iask.com/RPC2<br />
http://ping.blog.qikoo.com/rpc2.php<br />
http://rpc.pingomatic.com/<br />
http://rpc.technorati.com/rpc/ping<br />
http://www.blogsdominicanos.com/ping/<br />
11.  在模板index.php文件中，</p>
<pre name="code" class="php:nocontrols">
   找到
<?php the_content('Read the rest of this entry &raquo;'); ?>
   将其修改为以下代码：
 <?php if(is_category() || is_archive() || is_home() ) {
     the_excerpt();
 } else {
     the_content('Read the rest of this entry &raquo;');
 } ?>
<div class="details">
<div class="inside"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> so far | <a href="<?php the_permalink() ?>">Read On &raquo;</a></div>
</div>
</pre>
<p>参照网友修改（月光原文：http://www.williamlong.info/archives/1031.html）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sneil.com/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
	</channel>
</rss>
