<?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>欧阳博客 Joming&#039;s Blog统计</title>
	<atom:link href="http://ouyy.com/tag/%e7%bb%9f%e8%ae%a1/feed" rel="self" type="application/rss+xml" />
	<link>http://ouyy.com</link>
	<description>发现·分享·娱乐·新鲜·资讯</description>
	<lastBuildDate>Thu, 17 May 2012 14:33:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WP-PostView插件的使用</title>
		<link>http://ouyy.com/archives/620.html</link>
		<comments>http://ouyy.com/archives/620.html#comments</comments>
		<pubDate>Sun, 25 Jan 2009 04:16:25 +0000</pubDate>
		<dc:creator>ouyang</dc:creator>
				<category><![CDATA[杂杂碎碎]]></category>
		<category><![CDATA[PostView]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[统计]]></category>

		<guid isPermaLink="false">http://www.ouyy.com/?p=620</guid>
		<description><![CDATA[由于刚换WP不久，WP很强有很多各式样的插件和N多的风格，但WP本身自带的功能非常少 起码对于我来说博客应该有的东西但WP自身的功能都没有，所以自己要什么功能自己安装就可以了 昨天总在找统计的插件，找到了说明但自己没有认真的弄，老是不成功。今天92an的King告诉了一下 便自己认真的研究了一下，呵呵。这么简单的东西居然弄了一天也没弄好，所以把过程写下来免的下次 又忘了。 第一、安装WP-PostView插件，WP里面有很强的功能就是在后台管理的获取更多插件里面可以在线安装插件 所以第一步就进入>>>插件>>>获取更多插件>>> 插件浏览/安装>>> 搜索 >>输入WP-PostView 搜索以后会出现WP-PostView等插件，只要在后面点击安装即可，然后就会出现安装成功了，然后在点击激活。 激活以后在后台的设置下面就可以看到PostView选项。在里面设置文字即可。 上面弄好了，但关键的还是在下面。将下面的语句添加到想要显示的地方 1 &#60;?php if&#40;function_exists&#40;’the_views’&#41;&#41; &#123; the_views&#40;&#41;; &#125; ?&#62; WP-PostView还可以调用显示最受欢迎阅读次数最多的文章，把下面语句: 1 2 3 &#60;?php if &#40;function_exists&#40;’get_most_viewed’&#41;&#41;: ?&#62; &#60;?php get_most_viewed&#40;&#41;; ?&#62; &#60;?php endif; ?&#62; 显示某一个分类下最受欢迎的文章 1 2 3 &#60;?php if &#40;function_exists&#40;’get_most_viewed_category’&#41;&#41;: ?&#62; &#60;?php get_most_viewed_category&#40;&#41;; ?&#62; &#60;?php endif; ?&#62; 相关文章 Drupal安装CKeditor+wysiwyg所见即所得编辑器( 25 ) WordPress hidepost plugin让你的文章做成收费的( [...]]]></description>
			<content:encoded><![CDATA[<p>由于刚换WP不久，WP很强有很多各式样的插件和N多的风格，但WP本身自带的功能非常少<br />
起码对于我来说博客应该有的东西但WP自身的功能都没有，所以自己要什么功能自己安装就可以了<br />
昨天总在找统计的插件，找到了说明但自己没有认真的弄，老是不成功。今天92an的King告诉了一下<br />
便自己认真的研究了一下，呵呵。这么简单的东西居然弄了一天也没弄好，所以把过程写下来免的下次<br />
又忘了。<br />
               <a class="downloadlink" href="http://ouyy.com/wp-content/plugins/download-monitor/download.php?id=2" title="版本1.4 已下载 499 次" >wp-wp-postviews中文版统计插件 (499)</a><br />
第一、安装WP-PostView插件，WP里面有很强的功能就是在后台管理的获取更多插件里面可以在线安装插件<br />
所以第一步就进入>>>插件>>>获取更多插件>>> 插件浏览/安装>>> 搜索 >>输入WP-PostView<br />
<img src="http://www.ouyy.com/wp-content/uploads/2009/01/view02.jpg" alt="view02" title="view02" class="aligncenter size-full wp-image-621" /><span id="more-620"></span><br />
搜索以后会出现WP-PostView等插件，只要在后面点击安装即可，然后就会出现安装成功了，然后在点击激活。<br />
激活以后在后台的设置下面就可以看到PostView选项。在里面设置文字即可。<br />
<img src="http://www.ouyy.com/wp-content/uploads/2009/01/view01.jpg" alt="view01" title="view01" width="582" height="231" class="aligncenter size-full wp-image-622" /></p>
<p>上面弄好了，但关键的还是在下面。将下面的语句添加到想要显示的地方</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><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span>’the_views’<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> the_views<span style="color: #009900;">&#40;</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>WP-PostView还可以调用显示最受欢迎阅读次数最多的文章，把下面语句:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</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><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span>’get_most_viewed’<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>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_most_viewed<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;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>显示某一个分类下最受欢迎的文章</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</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><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span>’get_most_viewed_category’<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>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_most_viewed_category<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;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://ouyy.com/archives/837.html" title="Wordpress hidepost plugin让你的文章做成收费的" rel="bookmark inlinks">WordPress hidepost plugin让你的文章做成收费的</a><span class="count">( 2 )</span></li>
<li><a href="http://ouyy.com/archives/1125.html" title="Chrome新版非常OK啦" rel="bookmark inlinks">Chrome新版非常OK啦</a><span class="count">( 0 )</span></li>
<li><a href="http://ouyy.com/archives/950.html" title="Drupal安装CKeditor+wysiwyg所见即所得编辑器" rel="bookmark inlinks">Drupal安装CKeditor+wysiwyg所见即所得编辑器</a><span class="count">( 25 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ouyy.com/archives/620.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

