<?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; wordpress</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>WordPress博客统计文章阅读次数及访客数并刷访问数</title>
		<link>http://www.bio-info-trainee.com/433.html</link>
		<comments>http://www.bio-info-trainee.com/433.html#comments</comments>
		<pubDate>Sun, 22 Mar 2015 01:01:55 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[访客]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=433</guid>
		<description><![CDATA[需要插件和自己修改主题下面的foot.php代码。 参考 http://jing &#8230; <a href="http://www.bio-info-trainee.com/433.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>需要插件和自己修改主题下面的foot.php代码。</p>
<p>参考 <a href="http://jingyan.baidu.com/article/ae97a646ce37c2bbfd461d01.html">http://jingyan.baidu.com/article/ae97a646ce37c2bbfd461d01.html</a></p>
<p>步骤如下：</p>
<p>1、登陆到wp后台，鼠标移动到左侧菜单的“插件”链接上，会弹出子菜单，点击子菜单的“安装插件”链接</p>
<p>2、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>在“安装插件”链接页面的搜索框中输入“WP-PostViews”，然后回车</p>
<p>3、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>在搜索结果页面点击“WP-PostViews”插件内容区域的“现在安装”按钮</p>
<p>4、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>程序自动下载插件到服务器并解压安装，一直等到安装成功信息出现，然后在安装成功提示页面点击“启动插件”链接。</p>
<p>5、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>页面会自动跳转到“已安装插件”页面，在已安装插件列表中我们可以看到“Form Manager”插件已经处于启用状态（插件名下是“停用”链接）。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数599.png"><img class="alignnone size-full wp-image-434" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数599.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数599" width="554" height="316" /></a></p>
<p>有了这个插件之后，我们的整个网页环境里面就多了一个 the_views()函数，它统计着每个文章的点击数，这样我们之前的网页就能显示点击数了。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数673.png"><img class="alignnone size-full wp-image-435" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数673.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数673" width="553" height="188" /></a></p>
<p>这个是我现在用的主题的php代码，把文章用span标记隔开了，而且显示着上面php代码里面的每一个内容包括日期，分类，标签，评论等等</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数742.png"><img class="alignnone size-full wp-image-436" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数742.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数742" width="554" height="170" /></a></p>
<p>其中thez-view()这个函数返回的不仅仅是一个访客数，但是我的文章的访客都太少了，所以我写了一个脚本帮我刷一刷流量。</p>
<p>[perl]</p>
<p>use List::MoreUtils qw(uniq);</p>
<p>$page='http://www.bio-info-trainee.com/?paged=';</p>
<p>foreach (1..5){   #我的文章比较少，就42个，所以只有5个页面</p>
<p>$url_page=$page.$_;</p>
<p>$tmp=`curl $url_page`;</p>
<p>#@p=$tmp=~/p=(\d+)/;</p>
<p>$tmp =~ s/(p=\d+)/push @p, $1/eg; #寻找p=数字这样的标签组合成新的网页地址</p>
<p>}</p>
<p>@p=uniq @p;</p>
<p>print &quot;$_\n&quot; foreach @p; #可以找到所有42个网页的地址</p>
<p>foreach (@p){</p>
<p>$new_url='http://www.bio-info-trainee.com/?'.$_;</p>
<p>`curl $new_url` foreach (1..100); #每个网页刷一百次</p>
<p>}</p>
<p>[/perl]</p>
<p>大家可以看到这个网页被刷的过程，从15到21到27直到100<br />
<a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数1231.png"><img class="alignnone size-full wp-image-437" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数1231.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数1231" width="552" height="533" /></a></pre>
<p>大家现在再去看我的网页，就每个文章都有一百的访问量啦！</p>
<p><a href="http://www.bio-info-trainee.com/">http://www.bio-info-trainee.com/</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/433.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>菜鸟建站教程三部曲</title>
		<link>http://www.bio-info-trainee.com/89.html</link>
		<comments>http://www.bio-info-trainee.com/89.html#comments</comments>
		<pubDate>Wed, 11 Mar 2015 12:41:59 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[杂谈-随笔]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=89</guid>
		<description><![CDATA[菜鸟建站教程三部曲    门牌号(域名)——房间（主机）——装修（网站源码） 在 &#8230; <a href="http://www.bio-info-trainee.com/89.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><b>菜鸟建站教程三部曲   </b></p>
<p style="text-align: center;"><b>门牌号(域名)——房间（主机）——装修（网站源码）</b></p>
<p>在没有拥有自己网站之前，我曾无数次害怕过这个过程，以为会有各种各样的麻烦，需要学html、sql、php、javascript、Dreamweaver、需要花大量的时间写程序，需要花大笔的金钱去买域名买空间，而且买到域名和空间也不知道还会有哪些步骤，一切的一切都看起来是那么的困难。而今回首，才发现，整个过程居然只有一个小时即可！！！</p>
<p><span id="more-89"></span></p>
<p>本人亲测，给我女朋友申请她的个人网站真的就不到一小时搞定了，接下来我会把教她的步骤一个个贴出了。</p>
<p>首先简单介绍域名和空间的概念，域名就是门牌号，好的地段的门牌号非常之贵，甚至高达几百上千万的都有，但是绝大部分一般的门牌号就几十块钱一年即可，而空间就是一个人的房间，房间当然是越大越豪华就越贵，也有便宜的茅草屋才十几块钱一年的！</p>
<p>最低档：垃圾门牌号加上茅草屋——费用0。 二级域名+免费空间</p>
<p>第二档：普通门牌号加上泥瓦屋——费用约50每年。</p>
<p>第三档：豪华门牌号加上小洋房——费用&gt;1000每年。</p>
<p>第四档：超级门牌号加上小别墅——费用&gt;10000每年。</p>
<p>这个我简单介绍，垃圾门牌号就是所谓的二级域名，都是免费的，比如我在某个地方建立了一个商场，但是没有人来，我就把我的门牌号下面划分几十万个房间，这样每个人都可以免费领取一个二级门牌号，但前提是别人想去访问你，首先要来我的商场里面。而茅草屋就分为几种情况了，有的是大商户做活动送的一个小房间，或者是一个很垃圾的房间，配置很低，一般就1G空间加上50M的数据库，而且还是共享流量。</p>
<p>我这里建了三个站都是这样的配置，几乎不花钱，但是我门牌号是自己的独立的。</p>
<p>第一步：置办门牌号（域名），可以去万网、西部数码、美橙互联、互联中国等一系列域名服务商那里买到，一般的门牌号就几十块钱一年，我是在万网买的。</p>
<p><b><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲970.png"><img class=" size-full wp-image-90 aligncenter" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲970.png" alt="菜鸟建站教程三部曲970" width="502" height="347" /></a></b></p>
<p>第二步：买房间（主机空间），这个要看房间大小，房间功能来定价格，我这里用的是万网活动送的，免费两年，1G的空间加上50M的数据库，暂时是够用了。</p>
<p><b><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲1241.png"><img class=" size-full wp-image-91 aligncenter" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲1241.png" alt="菜鸟建站教程三部曲1241" width="470" height="519" /></a></b></p>
<p>最后一步：装修自己的房间（上传网页源码），这个差异非常大，我就不细讲了，每个人的装修品味装修风格都不同。步骤就有点繁琐了，首先需要下载自己喜欢的源码包，然后用ftp工具(flashFXP)把源码包上传到自己的空间，然后在自己的空间管理控制台里面解压这个源码包，然后访问自己的域名进入install，然后跟着提示一步步的做即可。<br />
我这里简单介绍几个风格迥异的网页给大家欣赏一下</p>
<p><a href="http://www.bio-info-trainee.com/tmp/EasyTalk/index.php">http://www.bio-info-trainee.com/tmp/EasyTalk/index.php</a>  这是一个微博系统</p>
<p><b><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲1559.png"><img class=" size-full wp-image-92 aligncenter" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲1559.png" alt="菜鸟建站教程三部曲1559" width="554" height="317" /></a></b></p>
<p>&nbsp;</p>
<p><a href="http://www.bio-info-trainee.com/tmp/o-blog/">http://www.bio-info-trainee.com/tmp/o-blog/</a>  这是一个博客网站</p>
<p><b><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲1665.png"><img class=" size-full wp-image-93 aligncenter" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/菜鸟建站教程三部曲1665.png" alt="菜鸟建站教程三部曲1665" width="553" height="324" /></a></b></p>
<p>&nbsp;</p>
<p>然后就是我自己的主页了，是wordpress的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/89.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress安装代码高亮插件</title>
		<link>http://www.bio-info-trainee.com/64.html</link>
		<comments>http://www.bio-info-trainee.com/64.html#comments</comments>
		<pubDate>Mon, 09 Mar 2015 14:50:24 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[杂谈-随笔]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=64</guid>
		<description><![CDATA[wordpress安装代码高亮插件 能做到代码高亮的插件实在是太多了，我这里随便 &#8230; <a href="http://www.bio-info-trainee.com/64.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><strong>wordpress安装代码高亮插件</strong></p>
<p>能做到代码高亮的插件实在是太多了，我这里随便选择一个。首先在wordpress的插件里面查找SyntaxHighlighter Evolved这个插件。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/wordpress安装代码高亮插件77.png"><img class="alignnone size-full wp-image-72" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/wordpress安装代码高亮插件77.png" alt="wordpress安装代码高亮插件77" width="554" height="219" /></a></p>
<p><span id="more-64"></span></p>
<p>下载安装即可使用，使用方法可以查看插件具体详情。</p>
<p>然后我们输入以下代码</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/wordpress安装代码高亮插件115.png"><img class="alignnone size-full wp-image-73" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/wordpress安装代码高亮插件115.png" alt="wordpress安装代码高亮插件115" width="463" height="338" /></a></p>
<p>即可出现代码高亮的效果，如下</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/wordpress安装代码高亮插件132.png"><img class="alignnone size-full wp-image-71" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/wordpress安装代码高亮插件132.png" alt="wordpress安装代码高亮插件132" width="465" height="218" /></a></p>
<p>是不是很爽呀，接下来我会发布一系列爬虫的代码，都需要用高亮来显示！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/64.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
