<?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>不亦乐乎 &#187; 主题模板</title>
	<atom:link href="http://www.happyet.org/tag/%e4%b8%bb%e9%a2%98%e6%a8%a1%e6%9d%bf/feed" rel="self" type="application/rss+xml" />
	<link>http://www.happyet.org</link>
	<description>自娱自乐，不亦乐乎!</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:41:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>新主题LMS Classic分享</title>
		<link>http://www.happyet.org/370.html</link>
		<comments>http://www.happyet.org/370.html#comments</comments>
		<pubDate>Thu, 11 Feb 2010 04:30:04 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题模板]]></category>
		<category><![CDATA[黑色]]></category>

		<guid isPermaLink="false">http://www.happyet.org/370.html</guid>
		<description><![CDATA[黑底白字的暗色风格，两栏，无js等特殊效果，基本无图片简洁的主题。添加了一些在谷歌浏览器下才有效果的CSS样式，其他浏览器看不到但不影响使用，仅此而已。
图片预览：

网站预览：LMS.im
图片看起来黑不溜休的，其实我本人不喜欢黑色系列的风格，可是不知道为什么弄着弄着就黑了。。。。
下载地址：http://code.google.com/p/happyet/downloads/list
]]></description>
			<content:encoded><![CDATA[<p>黑底白字的暗色风格，两栏，无js等特殊效果，基本无图片简洁的主题。添加了一些在谷歌浏览器下才有效果的CSS样式，其他浏览器看不到但不影响使用，仅此而已。</p>
<p>图片预览：<br />
<img src="http://www.happyet.org/wp-content/uploads/2010/02/screenshot.png" alt="" title="screenshot" width="300" height="194" class="aligncenter size-full wp-image-369" /></p>
<p>网站预览：<a href="http://lms.im">LMS.im</a></p>
<p>图片看起来黑不溜休的，其实我本人不喜欢黑色系列的风格，可是不知道为什么弄着弄着就黑了。。。。</p>
<p>下载地址：<a href="http://code.google.com/p/happyet/downloads/list" target="_blank">http://code.google.com/p/happyet/downloads/list</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/370.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Wordpress自用简洁主题分享</title>
		<link>http://www.happyet.org/367.html</link>
		<comments>http://www.happyet.org/367.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 05:17:47 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题模板]]></category>

		<guid isPermaLink="false">http://www.happyet.org/367.html</guid>
		<description><![CDATA[我的wp主题基本上都是自己弄出来的，而且更换的频率很快，所以有一个共同的特点：是没有技术含量。另外，再加上个人不懂审美，所以主题都很单调，没什么斑斓色彩。
今天分享的一款主题是我用的上一个wp主题，自己取名lms2.0。是在lms1.0的基础上改过来的，自认为代码比前一个好点，嘎嘎。因为有png背景图片，ie下效果不是很好。自己用的时候老觉得不对劲，可是图抓出来看还过的去，为了不浪费，就发出来有需要的可以满试试。

支持使用小工具dynamic_sidebar，建议插件：wp-postviews
下载到这里：lms2.0 
]]></description>
			<content:encoded><![CDATA[<p>我的wp主题基本上都是自己弄出来的，而且更换的频率很快，所以有一个共同的特点：是没有技术含量。另外，再加上个人不懂审美，所以主题都很单调，没什么斑斓色彩。</p>
<p>今天分享的一款主题是我用的上一个wp主题，自己取名lms2.0。是在lms1.0的基础上改过来的，自认为代码比前一个好点，嘎嘎。因为有png背景图片，ie下效果不是很好。自己用的时候老觉得不对劲，可是图抓出来看还过的去，为了不浪费，就发出来有需要的可以满试试。</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4045/4308502616_d90198f827_b.jpg"><img class="aligncenter" title="lms" src="http://farm5.static.flickr.com/4045/4308502616_d90198f827_b.jpg" alt="" width="535" height="614" /></a></p>
<p>支持使用小工具dynamic_sidebar，建议插件：wp-postviews</p>
<p>下载到这里：<a href="http://code.google.com/p/happyet/downloads/list" target="_blank">lms2.0</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/367.html/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>不用more标签首页内容摘要显示</title>
		<link>http://www.happyet.org/364.html</link>
		<comments>http://www.happyet.org/364.html#comments</comments>
		<pubDate>Sun, 24 Jan 2010 11:14:16 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[more]]></category>
		<category><![CDATA[主题模板]]></category>

		<guid isPermaLink="false">http://www.happyet.org/364.html</guid>
		<description><![CDATA[如果想在Wordpress首页显示日志摘要，就得在发表文章的时候，在某一位置输入more标签，个人很不习惯这个方式，觉得很麻烦，所以一直以来都是用另外一个自动截取日志部分内容的方式来显示，这样就可以不用每次写日志要插入more标签了。修改方法如下：
在主题文件夹下的index.php文件里，找到如下代码（以默认的主题为例子）：

&#60;?php the_content&#40;__&#40;'Read the rest of this entry &#38;raquo;', 'kubrick'&#41;&#41;; ?&#62;

替换成：

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
&#60;?php 
	$permalink=get_permalink&#40;$ID&#41;;
	if&#40;empty&#40;$post-&#62;post_password&#41;&#41;&#123;
	if &#40;!&#40;strtoupper&#40;get_locale&#40;&#41;&#41; == 'ZH_CN'&#41;&#41;&#123;
	echo '&#60;p&#62;';
	the_content_rss&#40;'', true, '', 55&#41;;
	echo '&#60;/p&#62;';
	&#125;else&#123;
	$exp=mb_substr&#40;strip_tags&#40;$post-&#62;post_content&#41;,0,300&#41;;
	echo '&#60;p&#62;'.$exp.' ......  ';
	&#125;
	_e&#40;&#34;&#60;/p&#62;&#60;div class=\&#34;morelink\&#34;&#62;&#60;a href=\&#34;$permalink\&#34; class=\&#34;more\&#34;&#62;阅读全文 ...&#60;/a&#62;&#60;/div&#62;&#34;&#41;;
	&#125;else&#123;
	_e&#40;&#34;&#60;p&#62;Protected post, Enter your password to view: &#34;&#41;;
	_e&#40;&#34;&#60;a href=\&#34;$permalink\&#34;&#62;Click me to go and  enter the password &#38;raquo;&#60;/a&#62;&#60;/p&#62;&#34;&#41;;
	&#125;
?&#62;

可以通过修改上面代码$exp=mb_substr(strip_tags($post->post_content),0,300);后面的300数值的大小来控制首页需要输出的内容大小。另外，还可以通过css独立控制“阅读全文”的样式。
上面这个方法的缺陷在于，首页输出的摘要内容不包括里面链接和图片，对于除了文字外的内容会自动过滤（到首页看看我这篇日志的摘要，你就明白了。），只是纯文字内容。对于追求图文并茂的童鞋来说，相当的遗憾。另外，每次换主题，如果没有替换上面代码，则首页都是全文内容的输出。
不过图片的输出可以通过另外独立的php代码来实现，或者通过wordpress的自定义域来实现，只是自定义域的使用也是比较麻烦的就是了。
同时还有使用插件实现more标签功能的方法，如果你不介意在自己原有插件基础上再多加插件的话：
1、wp-kit-cn
wp-kit-cn是个不错的插件，最新评论输出，最新文章输出，N天内留言最多用户输出,本周或本月内留言最多用户输出，随机文章输出，评论最多的文章输出，最近回响输出，自动摘要算法，更加适合中文使用,wp-kit-cn官方下载地址。
使用时,要把the_content函数改为the_excerpt函数才能截断&#8230;
不过wp-kit-cn实现的效果和我上面提供的代码一样，不能显示图片。
2、wp-limit-posts-automatically
wp-limit-posts-automatically官方下载地址，这个插件支持摘要输出图片和视频等，不过遗憾的是据说对中文支持不大友好。不过你可以下载这个插件经过牛人修改后的版本wp-summary-automatically。
修改后的插件可以设置前几个段落为摘要,默认是前3段，不用修改the_content为the_excerpt了，如果没有设置不足设置的段落数，就不显示&#8221;阅读更多&#8221;链接词了。
3、通过function.php文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function my_excerpts&#40;$content = false&#41; &#123;
        [...]]]></description>
			<content:encoded><![CDATA[<p>如果想在Wordpress首页显示日志摘要，就得在发表文章的时候，在某一位置输入more标签，个人很不习惯这个方式，觉得很麻烦，所以一直以来都是用另外一个自动截取日志部分内容的方式来显示，这样就可以不用每次写日志要插入more标签了。修改方法如下：</p>
<p>在主题文件夹下的index.php文件里，找到如下代码（以默认的主题为例子）：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'kubrick'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>替换成：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</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: #000088;">$permalink</span><span style="color: #339933;">=</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_password</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strtoupper</span><span style="color: #009900;">&#40;</span>get_locale<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: #0000ff;">'ZH_CN'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #339933;">;</span>
	the_content_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">55</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$exp</span><span style="color: #339933;">=</span><span style="color: #990000;">mb_substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$exp</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' ......  '</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	_e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;/p&gt;&lt;div class=<span style="color: #000099; font-weight: bold;">\&quot;</span>morelink<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$permalink</span><span style="color: #000099; font-weight: bold;">\&quot;</span> class=<span style="color: #000099; font-weight: bold;">\&quot;</span>more<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;阅读全文 ...&lt;/a&gt;&lt;/div&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
	_e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;p&gt;Protected post, Enter your password to view: &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	_e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$permalink</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;Click me to go and  enter the password &amp;raquo;&lt;/a&gt;&lt;/p&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>可以通过修改上面代码$exp=mb_substr(strip_tags($post->post_content),0,300);后面的300数值的大小来控制首页需要输出的内容大小。另外，还可以通过css独立控制“阅读全文”的样式。</p>
<p>上面这个方法的缺陷在于，首页输出的摘要内容不包括里面链接和图片，对于除了文字外的内容会自动过滤（到首页看看我这篇日志的摘要，你就明白了。），只是纯文字内容。对于追求图文并茂的童鞋来说，相当的遗憾。另外，每次换主题，如果没有替换上面代码，则首页都是全文内容的输出。</p>
<p>不过图片的输出可以通过另外独立的php代码来实现，或者通过<a href="http://www.happyet.org/272.html">wordpress的自定义域</a>来实现，只是自定义域的使用也是比较麻烦的就是了。</p>
<p>同时还有使用插件实现more标签功能的方法，如果你不介意在自己原有插件基础上再多加插件的话：</p>
<p>1、wp-kit-cn</p>
<p>wp-kit-cn是个不错的插件，最新评论输出，最新文章输出，N天内留言最多用户输出,本周或本月内留言最多用户输出，随机文章输出，评论最多的文章输出，最近回响输出，自动摘要算法，更加适合中文使用,<a href="http://wordpress.org/extend/plugins/wp-kit-cn/" target="_blank">wp-kit-cn官方下载地址</a>。</p>
<p><strong>使用时,要把the_content函数改为the_excerpt函数才能截断&#8230;</strong></p>
<p>不过wp-kit-cn实现的效果和我上面提供的代码一样，不能显示图片。</p>
<p>2、wp-limit-posts-automatically</p>
<p><a href="http://wordpress.org/extend/plugins/wp-limit-posts-automatically/" target="_blank">wp-limit-posts-automatically官方下载地址</a>，这个插件支持摘要输出图片和视频等，不过遗憾的是据说对中文支持不大友好。不过你可以下载这个插件经过<a href="http://deloz.net/1000000344.html" target="_blank">牛人</a>修改后的版本<a href="http://sofuc-com.googlecode.com/files/wp-summary-automatically.php">wp-summary-automatically</a>。</p>
<p>修改后的插件可以设置前几个段落为摘要,默认是前3段，不用修改the_content为the_excerpt了，如果没有设置不足设置的段落数，就不显示&#8221;阅读更多&#8221;链接词了。</p>
<p>3、通过function.php文件</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> my_excerpts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// If is the home page, an archive, or search results</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_front_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_archive<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_search<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: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_excerpt</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// If an excerpt is set in the Optional Excerpt box</span>
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
                        <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_excerpt'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// If no excerpt is set</span>
                <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span>
                        <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #339933;">;</span>
                        <span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">55</span><span style="color: #339933;">;</span>
                        <span style="color: #000088;">$words</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #000088;">$excerpt_length</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
                                <span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                                <span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                                <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
                        <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;p&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Make sure to return the content</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_excerpts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/364.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>仿wp论坛列表式wp主题分享</title>
		<link>http://www.happyet.org/288.html</link>
		<comments>http://www.happyet.org/288.html#comments</comments>
		<pubDate>Tue, 08 Dec 2009 03:34:34 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题模板]]></category>
		<category><![CDATA[列表式]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/archives/288</guid>
		<description><![CDATA[刚刚去wp中文论坛看了一下自己发的帖子，这个主题在今年7月份就已经是个半成品了，一直放着没动，后来经一朋友要求根据他的要求修改了一下送出去了，自己都没有留。忽然某日猥琐科技找上门来，说很喜欢我的那个主题，我都忘记已经送人自己没留，还满口答应了下来，后来找遍了才发现，出于不好意思和他一直的鼓励，虽然心虚，最终还是重新弄了出来。无论做什么事情都有一个规律：一鼓作气，再而衰，第二次再弄起这个皮肤仍然是拖拖拉拉的，用是能用了，但还是非常粗糙，和以前的样子有些差别，不介意的可以拿去试试。

预览：http://lamos.org.ru/
另外根据上面的主题我又弄了一款新的，也是dz的主题，清凉一夏

仿wp论坛主题下载地址：http://code.google.com/p/happyet/downloads/list
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">刚刚去wp中文论坛看了一下自己发的帖子，这个主题在今年7月份就已经是个半成品了，一直放着没动，后来经一朋友要求根据他的要求修改了一下送出去了，自己都没有留。忽然某日<a href="http://viso.in" target="_blank">猥琐科技</a>找上门来，说很喜欢我的那个主题，我都忘记已经送人自己没留，还满口答应了下来，后来找遍了才发现，出于不好意思和他一直的鼓励，虽然心虚，最终还是重新弄了出来。无论做什么事情都有一个规律：一鼓作气，再而衰，第二次再弄起这个皮肤仍然是拖拖拉拉的，用是能用了，但还是非常粗糙，和以前的样子有些差别，不介意的可以拿去试试。<br />
<a href="http://www.happyet.org/wp-content/uploads/2009/12/wporgcn.jpg"><img class="aligncenter size-medium wp-image-289" title="wporgcn" src="http://www.happyet.org/wp-content/uploads/2009/12/wporgcn-400x378.jpg" alt="wporgcn" width="400" height="378" /></a></p>
<p>预览：http://lamos.org.ru/</p>
<p>另外根据上面的主题我又弄了一款新的，也是dz的主题，清凉一夏</p>
<p style="text-align: center;"><a href="http://www.happyet.org/wp-content/uploads/2009/12/syt.jpg"><img class="aligncenter size-medium wp-image-290" title="syt" src="http://www.happyet.org/wp-content/uploads/2009/12/syt-400x355.jpg" alt="syt" width="400" height="355" /></a></p>
<p>仿wp论坛主题下载地址：<a href="http://code.google.com/p/happyet/downloads/list" target="_blank">http://code.google.com/p/happyet/downloads/list</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/288.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>给博客换换衣裳</title>
		<link>http://www.happyet.org/282.html</link>
		<comments>http://www.happyet.org/282.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 01:06:28 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[主题模板]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/archives/282</guid>
		<description><![CDATA[好久没折腾博客了，自从自己乱搞搞出第一个wordpress主题模板后就没停止过折腾，而实际上用的最长久的那款主题——也就是上个主题——也才是我自己折腾出来的第二个，那时候刚了解wp主题是怎么搞的，就不知天高地厚的想模仿wp后台管理页面做一个主题，等做起来后才发现困难重重，根本不是我这个水平能搞定的，最后没想到就弄出这样一个四不像了。后来有几个朋友都说不错，我自己也被说的感觉良好了，所以就一直硬着头皮用着。这个算是我的主题版本1.0了，取名wordpress。
现在1.0终于升级2.0了，哈哈。

在升级完博客程序到2.8.6，禁用了自动保存等一些小修改后，上周末忍不住开始我的2.0工程了，今天就马上给博客换了衣裳，动作还算快吧。
2.0并不是在原有1.0的基础上修改的，而是直接以wordpress默认主题为基础，参考一老外的wp主题（主要是拿了它的图片素材，自己不会Photoshop的悲哀），然后按1.0的布局全新做的。
这次做的主题不再考虑ie6.0了，所以在ie6.0下sidebar会很不好看，而且在宽屏下两边有两道白色。另外新的主题sidebar完全是使用wp的小工具来实现的，没有自己加插件重新写sidebar了（以后可能会加）。
主题宽1004px，在1024*768下整个屏幕挤的满满的，不过在宽屏下效果就好多了。
现在的问题是：1、差一个好看的图片logo，2、在使用小工具下如何实现在非首页下不显示友情链接，3、文章页面时要不要sidebar。
]]></description>
			<content:encoded><![CDATA[<p>好久没折腾博客了，自从自己乱搞搞出第一个wordpress主题模板后就没停止过折腾，而实际上用的最长久的那款主题——也就是上个主题——也才是我自己折腾出来的第二个，那时候刚了解wp主题是怎么搞的，就不知天高地厚的想模仿wp后台管理页面做一个主题，等做起来后才发现困难重重，根本不是我这个水平能搞定的，最后没想到就弄出这样一个四不像了。后来有几个朋友都说不错，我自己也被说的感觉良好了，所以就一直硬着头皮用着。这个算是我的主题版本1.0了，取名wordpress。</p>
<p>现在1.0终于升级2.0了，哈哈。</p>
<p style="text-align: center;"><a href="http://www.happyet.org/wp-content/uploads/2009/11/lms2.jpg"><img class="aligncenter size-full wp-image-283" title="lms2" src="http://www.happyet.org/wp-content/uploads/2009/11/lms2.jpg" alt="lms2" width="400" height="267" /></a></p>
<p>在升级完博客程序到2.8.6，禁用了自动保存等一些小修改后，上周末忍不住开始我的2.0工程了，今天就马上给博客换了衣裳，动作还算快吧。</p>
<p>2.0并不是在原有1.0的基础上修改的，而是直接以wordpress默认主题为基础，参考一老外的wp主题（主要是拿了它的图片素材，自己不会Photoshop的悲哀），然后按1.0的布局全新做的。</p>
<p>这次做的主题不再考虑ie6.0了，所以在ie6.0下sidebar会很不好看，而且在宽屏下两边有两道白色。另外新的主题sidebar完全是使用wp的小工具来实现的，没有自己加插件重新写sidebar了（以后可能会加）。</p>
<p>主题宽1004px，在1024*768下整个屏幕挤的满满的，不过在宽屏下效果就好多了。</p>
<p>现在的问题是：1、差一个好看的图片logo，2、在使用小工具下如何实现在非首页下不显示友情链接，3、文章页面时要不要sidebar。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/282.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Wordpress主题模板修改制作入门之DIV+CSS篇</title>
		<link>http://www.happyet.org/251.html</link>
		<comments>http://www.happyet.org/251.html#comments</comments>
		<pubDate>Fri, 10 Jul 2009 03:41:05 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[主题模板]]></category>
		<category><![CDATA[修改制作]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/archives/251</guid>
		<description><![CDATA[看一下时间，上一篇关于wordpress模板函数到现在已经一个月过去了，时间过的真是快啊。其实关于div和css并没有什么东西可写，因为本身我自己是一个菜鸟，左思右想不知道能写什么，但是想想自己以前从对div和css一无所知到看的懂，并能加以修改所花的漫长时间上，所以还是决定写一些，可能会零碎、不专业和肤浅，但希望对像我这样业余的初学者有一些帮助吧。
我一直觉得利用wordpress来学习div和css是非常好的，原因有2，一是wordpress是纯div和css构架，二是wp的div不会很复杂（当然，你也可以把它搞的非常复杂，不过这些是牛人做的），但是涉及的css又非常完整，因为它本身就是一个独立的涉及各方面的但是不复杂的网站。
在开始说wp主题模板前，先简单说一下div和css，div也就是俗称容器，顾名思义，装网页内容的，完整格式是：&#60;div&#62;网页内容&#60;/div&#62;，因为一个页面通常会涉及很多的容器，所以要给容器贴上标签以便容易区别和确认，有的标签可能在一个页面里是独立的，只能被用一次，或只用到一次，而有的标签在页面里会反复的被使用到。
对于这两种情况又加以区分：
第一种：独立的，只能用一次或只使用一次的标签，我们用ID来表示，格式是&#60;div id=&#8221;标签名&#8221;&#62;网页内容&#60;/div&#62;
第二种：通用的，经常被用到的标签，用class来表示，格式是&#60;div class=&#8221;标签名&#8221;&#62;网页内容&#60;/div&#62;
有一点需要说明的是，能用id的地方一定可以用class，用class的地方不一定就能用id，但是对于id的唯一性，最好是用id的地方还是用id的好。
以我目前的水平，所有涉及div的知识，我知道的就上面这两个了，div装着网页内容被放在一个页面上是至上而下排列的，如果你想按你的意思让各个div容器放在你想要的位置，就得用css来格式定义它，定义div的样式和位置是通过定义上面说的给div确定的标签来实现的。
 在css（style.css文件）里对于ID和CLASS标签是通过#、.两个符号来认识的，ID对应的是“#”，CLASS对应的是“.”（英文输入状态下的句号）。具体格式如下：
网页页面上内容：&#60;div id=&#8221;id&#8221;&#62;id标签下div容器里的内容&#60;/div&#62;&#60;div class=&#8221;class&#8221;&#62;class标签下div容器里的内容&#60;/div&#62;
css文件里的内容：#id {给id标签容器定义的样式1; 给id标签容器定义的样式2;}  .class{给class标签容器定义的样式1; 给class标签容器定义的样式2;}
总体上就是这样，现在结合wordpress模板来简单说一下，从第一篇我介绍的wp主题模板的文件结构中已经了解各文件是怎么组合的了，我们以组合后的首页为例来看看大多数wordpress是怎么设置div的：
&#60;div id=&#8221;wrapper&#8221;&#62;——这个是最大的容器，包含所有页面内容的，因为它是唯一的无论哪个页面都只用到一次，所以用id来定义它，当然你也可以用class。
&#60;div id=&#8221;header&#8221;&#62;这里是头部的内容，也是唯一的&#60;/div&#62;
&#60;div id=&#8221;content&#8221;&#62;页面主要内容部分，也是唯一的&#60;/div&#62;
&#60;div id=&#8221;comment&#8221;&#62;评论部分内容（不在首页），也是唯一的&#60;/div&#62;
&#60;div id=&#8221;sidebar&#8221;&#62;侧边栏的容器，也是唯一的&#60;/div&#62;
&#60;div id=&#8221;footer&#8221;&#62;底部的内容，也是唯一的&#60;/div&#62;
&#60;/div&#62;这里是收起最大的容器wrapper的，不能丢了。
我们再来看一下index.php里的div设置：(谷歌浏览器奔溃，吓我一跳，还好，这以上的内容都在。。。)
引用header文件
&#60;div id=&#8221;content&#8221;&#62;——这个容器含侧边栏，一般放在header.php最下面
&#60;div id=&#8221;main&#8221;&#62;——这个是内容容器
&#60;div class=&#8221;title&#8221;&#62;日志的题目，不唯一&#60;/div&#62;
&#60;div class=&#8221;postmeta&#8221;&#62;题目下的日期等等之类的，不唯一&#60;/div&#62;
&#60;div class=&#8221;entry&#8221;&#62;日志内容或日志摘要&#60;/div&#62;
&#60;/div&#62;收起main容器
引用侧边栏
&#60;/div&#62;收起conten容器，一般在footer.php文件最上面
关于CSS的属性说多不多，说少也不少，不过足够让我们这样的初学者头晕脑涨的了，而且，各种各样的浏览器对一些属性的兼容性又有所不同，所以，如果你要自己弄wp的主题模板，除了要在本机上搭个php环境外，你还得装至少两个的浏览器，IE和firefox，当然，你也可以不鸟ie浏览器的用户。
下面是我自己捣鼓的几个wp皮，还有两个没弄完整。
1. 仿boblog主题mixice
2. Wordpress仿boblog“谷子骚”
3. Wordpress仿QQ校友风格
4. 本站目前在用的这个。。。
]]></description>
			<content:encoded><![CDATA[<p>看一下时间，上一篇关于<a href="http://www.happyet.com.cn/archives/222">wordpress模板函数</a>到现在已经一个月过去了，时间过的真是快啊。其实关于div和css并没有什么东西可写，因为本身我自己是一个菜鸟，左思右想不知道能写什么，但是想想自己以前从对div和css一无所知到看的懂，并能加以修改所花的漫长时间上，所以还是决定写一些，<strong>可能会零碎、不专业和肤浅，但希望对像我这样业余的初学者有一些帮助</strong>吧。</p>
<p>我一直觉得利用wordpress来学习div和css是非常好的，原因有2，一是wordpress是纯div和css构架，二是wp的div不会很复杂（当然，你也可以把它搞的非常复杂，不过这些是牛人做的），但是涉及的css又非常完整，因为它本身就是一个独立的涉及各方面的但是不复杂的网站。</p>
<p>在开始说wp主题模板前，先简单说一下div和css，div也就是俗称容器，顾名思义，装网页内容的，完整格式是：<strong>&lt;div&gt;网页内容&lt;/div&gt;</strong>，因为一个页面通常会涉及很多的容器，<strong>所以要给容器贴上标签以便容易区别和确认</strong>，有的标签可能在一个页面里是独立的，只能被用一次，或只用到一次，而有的标签在页面里会反复的被使用到。</p>
<p>对于这两种情况又加以区分：</p>
<p><strong>第一种：独立的，只能用一次或只使用一次的标签，我们用ID来表示，格式是&lt;div id=&#8221;标签名&#8221;&gt;网页内容&lt;/div&gt;</strong></p>
<p><strong>第二种：通用的，经常被用到的标签，用class来表示，格式是&lt;div class=&#8221;标签名&#8221;&gt;网页内容&lt;/div&gt;</strong></p>
<p>有一点需要说明的是，<strong>能用id的地方一定可以用class，用class的地方不一定就能用id，但是对于id的唯一性，最好是用id的地方还是用id的好</strong>。</p>
<p>以我目前的水平，所有涉及div的知识，我知道的就上面这两个了，div装着网页内容被放在一个页面上是至上而下排列的，如果你想按你的意思让各个div容器放在你想要的位置，就得用css来格式定义它，<strong>定义div的样式和位置是通过定义上面说的给div确定的标签来实现的。</strong></p>
<p><strong> </strong>在css（style.css文件）里对于ID和CLASS标签是通过#、.两个符号来认识的，<strong>ID对应的是“#”，CLASS对应的是“.”</strong>（英文输入状态下的句号）。具体格式如下：</p>
<blockquote><p>网页页面上内容：&lt;div id=&#8221;id&#8221;&gt;id标签下div容器里的内容&lt;/div&gt;&lt;div class=&#8221;class&#8221;&gt;class标签下div容器里的内容&lt;/div&gt;</p>
<p>css文件里的内容：#id {给id标签容器定义的样式1; 给id标签容器定义的样式2;}  .class{给class标签容器定义的样式1; 给class标签容器定义的样式2;}</p></blockquote>
<p>总体上就是这样，现在结合wordpress模板来简单说一下，从第一篇我介绍的<a href="http://www.happyet.com.cn/archives/176">wp主题模板的文件结构</a>中已经了解各文件是怎么组合的了，我们以组合后的首页为例来看看大多数wordpress是怎么设置div的：</p>
<blockquote><p>&lt;div id=&#8221;wrapper&#8221;&gt;——这个是最大的容器，包含所有页面内容的，因为它是唯一的无论哪个页面都只用到一次，所以用id来定义它，当然你也可以用class。</p>
<p>&lt;div id=&#8221;header&#8221;&gt;这里是头部的内容，也是唯一的&lt;/div&gt;</p>
<p>&lt;div id=&#8221;content&#8221;&gt;页面主要内容部分，也是唯一的&lt;/div&gt;</p>
<p>&lt;div id=&#8221;comment&#8221;&gt;评论部分内容（不在首页），也是唯一的&lt;/div&gt;</p>
<p>&lt;div id=&#8221;sidebar&#8221;&gt;侧边栏的容器，也是唯一的&lt;/div&gt;</p>
<p>&lt;div id=&#8221;footer&#8221;&gt;底部的内容，也是唯一的&lt;/div&gt;</p>
<p>&lt;/div&gt;这里是收起最大的容器wrapper的，不能丢了。</p></blockquote>
<p>我们再来看一下index.php里的div设置：(谷歌浏览器奔溃，吓我一跳，还好，这以上的内容都在。。。)</p>
<blockquote><p>引用header文件</p>
<p>&lt;div id=&#8221;content&#8221;&gt;——这个容器含侧边栏，一般放在header.php最下面</p>
<p>&lt;div id=&#8221;main&#8221;&gt;——这个是内容容器</p>
<p>&lt;div class=&#8221;title&#8221;&gt;日志的题目，不唯一&lt;/div&gt;</p>
<p>&lt;div class=&#8221;postmeta&#8221;&gt;题目下的日期等等之类的，不唯一&lt;/div&gt;</p>
<p>&lt;div class=&#8221;entry&#8221;&gt;日志内容或日志摘要&lt;/div&gt;</p>
<p>&lt;/div&gt;收起main容器</p>
<p>引用侧边栏</p>
<p>&lt;/div&gt;收起conten容器，一般在footer.php文件最上面</p></blockquote>
<p>关于<a href="http://www.happyet.com.cn/archives/214">CSS的属性</a>说多不多，说少也不少，不过足够让我们这样的初学者头晕脑涨的了，而且，各种各样的浏览器对一些属性的兼容性又有所不同，所以，如果你要自己弄wp的主题模板，除了要<a href="http://www.happyet.com.cn/archives/209">在本机上搭个php环境</a>外，你还得装至少两个的浏览器，IE和firefox，当然，你也可以不鸟ie浏览器的用户。</p>
<p>下面是我自己捣鼓的几个wp皮，还有两个没弄完整。</p>
<p>1. <a href="http://www.happyet.com.cn/archives/232">仿boblog主题mixice</a></p>
<p>2. <a href="http://www.happyet.com.cn/archives/183">Wordpress仿boblog“谷子骚”</a></p>
<p>3. <a href="http://www.happyet.com.cn/archives/121">Wordpress仿QQ校友风格</a></p>
<p>4. 本站目前在用的这个。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/251.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>向独立自“煮”的新生活迈进</title>
		<link>http://www.happyet.org/237.html</link>
		<comments>http://www.happyet.org/237.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:30:51 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[杂谈随笔]]></category>
		<category><![CDATA[主题模板]]></category>
		<category><![CDATA[情绪]]></category>
		<category><![CDATA[感动]]></category>
		<category><![CDATA[独立自“煮”]]></category>
		<category><![CDATA[福州]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/?p=237</guid>
		<description><![CDATA[又折腾了，又在折腾博客的皮了，又忘记了博客是用来写不是用来做的了。。。
回头是岸！回头是岸！头很晕很晕。。。
很久很久以前还是一个人的时候就买了一个电压力锅了，如果没记错的话，这个电压力锅被我用来煮过一次胡萝卜玉米排骨汤，一两次八宝粥，一次螃蟹，很多很多时候它都是呆在纸箱里。
后来，又买了一台五谷豆浆机，豆浆机的使用次数稍微多些，到超市五谷杂粮各抓一把，周末早上就自己做豆浆吃了，有坚持过几星期，由于豆浆机容量稍微大了些，毕竟是一个人，吃起来又浪费又痛苦，最后也作罢了。
于是就再没动过它们了。
很久很久以后的某个周末，某人心血来潮拉着我直奔杨桥国美，买下了电磁炉，又到好又多添置了油盐酱醋，因为买电磁炉有送一个铁锅，所以当晚就摸黑研究到八九点才将晚饭搞定，从此步入独立“自煮”的生活。
上班的缘故，中午是没法自己做了，所以只能是早饭和晚饭了，早饭当然是吃稀饭了，晚饭又不知道吃什么，两个人都厨艺不精，所以还是决定吃稀饭，就这样，一天两顿稀饭的独立“自煮”着，两人曾经感慨的一句话是：什么时候才能吃上干饭啊！
虽然基本上天天吃稀饭，但是还是慢慢习惯了自己作饭吃。有的时候晚上下班太累了，到那些饭店去看了看，还是觉得就算是一碗稀饭一个煎蛋都比那些更让人有胃口，让人觉得心里塌实。
]]></description>
			<content:encoded><![CDATA[<p>又折腾了，又在折腾博客的皮了，又忘记了<a href="http://www.happyet.org/187.html">博客是用来写不是用来做的</a>了。。。</p>
<p>回头是岸！回头是岸！头很晕很晕。。。</p>
<p>很久很久以前还是一个人的时候就买了一个电压力锅了，如果没记错的话，这个电压力锅被我用来煮过一次胡萝卜玉米排骨汤，一两次八宝粥，一次螃蟹，很多很多时候它都是呆在纸箱里。</p>
<p>后来，又买了一台五谷豆浆机，豆浆机的使用次数稍微多些，到超市五谷杂粮各抓一把，周末早上就自己做豆浆吃了，有坚持过几星期，由于豆浆机容量稍微大了些，毕竟是一个人，吃起来又浪费又痛苦，最后也作罢了。</p>
<p>于是就再没动过它们了。</p>
<p>很久很久以后的某个周末，某人心血来潮拉着我直奔杨桥国美，买下了电磁炉，又到好又多添置了油盐酱醋，因为买电磁炉有送一个铁锅，所以当晚就摸黑研究到八九点才将晚饭搞定，从此步入独立“自煮”的生活。</p>
<p>上班的缘故，中午是没法自己做了，所以只能是早饭和晚饭了，早饭当然是吃稀饭了，晚饭又不知道吃什么，两个人都厨艺不精，所以还是决定吃稀饭，就这样，一天两顿稀饭的独立“自煮”着，两人曾经感慨的一句话是：什么时候才能吃上干饭啊！</p>
<p>虽然基本上天天吃稀饭，但是还是慢慢习惯了自己作饭吃。有的时候晚上下班太累了，到那些饭店去看了看，还是觉得就算是一碗稀饭一个煎蛋都比那些更让人有胃口，让人觉得心里塌实。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/237.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>仿boblog主题mixice发布分享</title>
		<link>http://www.happyet.org/232.html</link>
		<comments>http://www.happyet.org/232.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 10:02:47 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[mixice]]></category>
		<category><![CDATA[主题模板]]></category>
		<category><![CDATA[仿boblog]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/archives/232</guid>
		<description><![CDATA[这个主题早就模仿了，有发布在HICHF里共享，不过一直是个半成品，问题在于单篇日志页面（single.php）里文章内容下面使用了get_most_viewed() 这个东东后就不显示评论了，其他随机日志，相关日志等插件都没问题，不知道怎么解决，所以就一直放着了。今天又拿出来改了一下，把most viewed改成最近评论。
本主题模仿自boblog，未经原作者同意，如果原作者不同意的话，可以联系我删除，原boblog地址：http://www.mixice.cn
图片：

需要的插件：
wordpress-23-related-posts-plugin
wp-postviews
genki_announcement
random-posts-plugin
wp-pagenavi
下载地址：http://code.google.com/p/happyet/downloads/list
]]></description>
			<content:encoded><![CDATA[<p>这个主题早就模仿了，有发布在<a href="http://www.hichf.com/read.php?tid-12136.html" target="_blank">HICHF</a>里共享，不过一直是个半成品，问题在于单篇日志页面（single.php）里文章内容下面使用了get_most_viewed() 这个东东后就不显示评论了，其他随机日志，相关日志等插件都没问题，不知道怎么解决，所以就一直放着了。今天又拿出来改了一下，把most viewed改成最近评论。</p>
<p>本主题模仿自boblog，未经原作者同意，如果原作者不同意的话，可以联系我删除，原boblog地址：http://www.mixice.cn</p>
<p>图片：<br />
<center><div id="attachment_231" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.happyet.org/wp-content/uploads/2009/06/mixice.png"><img src="http://www.happyet.org/wp-content/uploads/2009/06/mixice.png" alt="mixice" title="mixice" width="400" height="294" class="size-full wp-image-231" /></a><p class="wp-caption-text">mixice</p></div></center></p>
<p>需要的插件：<br />
wordpress-23-related-posts-plugin<br />
wp-postviews<br />
genki_announcement<br />
random-posts-plugin<br />
wp-pagenavi</p>
<p>下载地址：<a href="http://code.google.com/p/happyet/downloads/list" target="_blank">http://code.google.com/p/happyet/downloads/list</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/232.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>申请了个Google Code</title>
		<link>http://www.happyet.org/230.html</link>
		<comments>http://www.happyet.org/230.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:09:28 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[网页网络]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[QQ校友]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题模板]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/archives/230</guid>
		<description><![CDATA[其实我不大知道这个google code具体能干什么用的，甚至不知道怎么称呼这个东西，目前我只知道它提供一定的空间，可以存储文件，并提供下载的，根据我目前使用情况判断，好象一次做多上传100m文件，空间2g（Max upload size: 100 MB. Using 107 KB out of 2048 MB. ）。
所以我申请了一个，专门用来放自己模仿制作的wordpress主题模板，申请完后立马将以前做的那个仿QQ校友的风格修改优化了下传上去了,以后其他的也都会传到那上面去。
我的google code地址：http://code.google.com/p/happyet/
google提供的东西确实好用，速度非常快，不过今天看163新闻说很多google提供的服务国内都不能用了，唉，叹息一声啊。。。。
]]></description>
			<content:encoded><![CDATA[<p>其实我不大知道这个google code具体能干什么用的，甚至不知道怎么称呼这个东西，目前我只知道它提供一定的空间，可以存储文件，并提供下载的，根据我目前使用情况判断，好象一次做多上传100m文件，空间2g（Max upload size: 100 MB. Using 107 KB out of 2048 MB. ）。</p>
<p>所以我申请了一个，专门用来放自己模仿制作的wordpress主题模板，申请完后立马将以前做的那个<a href="http://www.happyet.org/121.html">仿QQ校友的风格</a>修改优化了下传上去了,以后其他的也都会传到那上面去。</p>
<p>我的google code地址：<a href="http://code.google.com/p/happyet/" target="_blank">http://code.google.com/p/happyet/</a></p>
<p>google提供的东西确实好用，速度非常快，不过今天看163新闻说很多google提供的服务国内都不能用了，唉，叹息一声啊。。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/230.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wordpress主题模板修改制作入门之模板函数篇</title>
		<link>http://www.happyet.org/222.html</link>
		<comments>http://www.happyet.org/222.html#comments</comments>
		<pubDate>Tue, 09 Jun 2009 13:02:29 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题模板]]></category>
		<category><![CDATA[修改制作]]></category>
		<category><![CDATA[模板函数]]></category>

		<guid isPermaLink="false">http://www.happyet.com.cn/archives/222</guid>
		<description><![CDATA[在上篇介绍了关于wp主题模板的文件结构到现在又好几天过去了，时间真快啊，我一个模板断断续续的都还没做完呢，今天来列举一下wordpress常用到的一些函数吧。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
1. 调用模板函数：
&#160;
&#60;?php the_tags&#40;&#41;; ?&#62; ; 调用文章标签 
&#60;?php get_header&#40;&#41;; ?&#62; : 调用Header模板 
&#60;?php get_sidebar&#40;&#41;; ?&#62; : 调用Sidebar模板 
&#60;?php get_footer&#40;&#41;; ?&#62; : 调用Footer模板 
&#60;?php the_content&#40;&#41;; ?&#62; : 显示内容(Post/Page) 
&#60;?php if&#40;have_posts&#40;&#41;&#41; : ?&#62; : 检查是否存在Post/Page 
&#60;?php while&#40;have_posts&#40;&#41;&#41; : the_post&#40;&#41;; ?&#62; : 如果存在Post/Page则予以显示 
&#60;?php endwhile; ?&#62; : While 结束 
&#60;?php endif; ?&#62; : If 结束 
&#60;?php the_time&#40;’字符串’&#41; ?&#62; : [...]]]></description>
			<content:encoded><![CDATA[<p>在上篇介绍了<a href="http://www.happyet.org/?p=176">关于wp主题模板的文件结构</a>到现在又好几天过去了，时间真快啊，我一个模板断断续续的都还没做完呢，今天来列举一下wordpress常用到的一些函数吧。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">1. 调用模板函数：
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<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> ; 调用文章标签 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<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> : 调用Header模板 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<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> : 调用Sidebar模板 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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> : 调用Footer模板 
<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> : 显示内容(Post/Page) 
<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: #000000; font-weight: bold;">?&gt;</span> : 检查是否存在Post/Page 
<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> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 如果存在Post/Page则予以显示 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : While 结束 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : If 结束 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span>’字符串’<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 显示时间，时间格式由“字符串”参数决定，具体参考PHP手册 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<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> : 正文中的留言链接。如果使用 comments_popup_script() ，则留言会在新窗口中打开，反之，则在当前窗口打开 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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> : 内容页(Post/Page)标题 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 内容页(Post/Page) Url 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span>’<span style="color: #339933;">,</span> ‘<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 特定内容页(Post/Page)所属Category 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<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> : 作者 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<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> : 特定内容页(Post/Page) ID 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<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> : 如果用户已登录并具有权限，显示编辑链接 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_links_list<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> : 显示Blogroll中的链接 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_template<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> : 调用留言/回复模板 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<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> : 显示Page列表 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_categories<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> : 显示Categories列表 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_post_link<span style="color: #009900;">&#40;</span>’ <span style="color: #339933;">%</span><span style="color: #990000;">link</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> previous_post_link<span style="color: #009900;">&#40;</span>’<span style="color: #339933;">%</span><span style="color: #990000;">link</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> get_calendar<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> : 日历 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 显示内容存档 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> posts_nav_link<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> : 导航，显示上一篇/下一篇文章链接 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> ‘<span style="color: #339933;">/</span>文件名’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 嵌入其他文件，可为定制的模板或其他类型文件
&nbsp;
2. 基本条件判断的函数
&nbsp;
is_home() : 是否为主页 
is_single() : 是否为内容页(Post) 
is_page() : 是否为内容页(Page) 
is_category() : 是否为Category/Archive页 
is_tag() : 是否为Tag存档页 
is_date() : 是否为指定日期存档页 
is_year() : 是否为指定年份存档页 
is_month() : 是否为指定月份存档页 
is_day() : 是否为指定日存档页 
is_time() : 是否为指定时间存档页 
is_author() : 是否为指定作者存档页 
is_archive() : 是否为存档页 
is_search() : 是否为搜索结果页 
is_404() : 是否为 “HTTP 404: Not Found” 错误页 
is_paged() : 主页/Category/Archive页是否以多页显示 
&nbsp;
上面这些函数的用法一般都为<span style="color: #000000; font-weight: bold;">&lt;?php</span>  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>如果是home页，这里显示的内容<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>，这个用EditPlus打开默认模板里的archive.php文件，前面十几行都能找的到上面的函数。
&nbsp;
3. Header部分常用到的函数
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’name’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 博客名称(Title) 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’stylesheet_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : CSS文件路径 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’pingback_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : PingBack Url 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’template_url’<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> bloginfo<span style="color: #009900;">&#40;</span>’version’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : WordPress版本 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’atom_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : Atom Url 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’rss2_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : RSS 2.o Url 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 博客 Url 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’html_type’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> : 博客网页Html类型 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’charset’<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> bloginfo<span style="color: #009900;">&#40;</span>’description’<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> wp_title<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> : 特定内容页(Post/Page)的标题
&nbsp;
4. 与模板相关的其他函数
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span>’Message’<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> wp_register<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> : 显示注册链接 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_loginout<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;!–next page–&gt; : 将当前内容分页 
&lt;!–more–&gt; : 将当前内容截断，以不在主页/目录页显示全部内容 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> timer_stop<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</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;">echo</span> get_num_queries<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>更详细的信息请参考WordPress官方文档。<br />
wordpress官方文档：http://codex.wordpress.org/Main_Page</p>
<p>下一篇，也是最后一篇，分享一下我对DIV和CSS的一点认识。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/222.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
