->
在Honkin那里看到他的文章顶端显示的有文章的阅读次数,遂百度了一下,发现是Postviews插件,下载、安装、调试,现在能正常使用了。下载及使用方法见这里。需要提醒的是,如果你的主题里面有theloop.php文件,你需要在这里添加相应的代码,比如我的。这样有一个缺点,就是首页(index.php)和单篇文章页面(single.php)都调用的是theloop.php,这样以来二者都显示了阅读次数而不能独立调整,就像现在我的博客。另外我感觉这个插件不是很准确,因为我刚装完就有一些日志的阅读次数为1次,而51la给出的数据显示当时并没有人访问。
另外无意中解决了一个一直以来困扰我的问题,就是我想把每篇博客发表时间显示到小时和分钟,而博客默认的只显示年、月、日。其实很简单,你只需在首页、页面和单篇文章页面(或者theloop.php,如果你有的话)的源代码中找到并且修改如下字段(或者类似):
<?php the_time('l, F jS, Y') ?>
其中l(小写的L)表示星期几,F表示月份,j表示日期,加上S会显示TH,Y表示年份(y只显示年份的后两位),细节参见WP的官方说明档案。
如果想加入时间,也很简单,只需要再加入一段代码即可:
<?php the_time('G:i') ?>
以上是24小时制,如果你偏爱am和pm可以用以下代码:
<?php the_time('g:i a'); ?>
细节参见WP的官方说明档案。
这样显示时间和日期的代码就变成了:
<?php the_time('G:i') ?> <?php the_time('l, F jS, Y') ?>
当然你也可以在两段代码之间加上空格或诸如at之类的文字或调整顺序,以保证输出效果的美观。
注意:我并没有尝试把二者用放在一句代码里而是分开来写,只保证上述方法有效,如果你有兴趣可以尝试。
Tags:
postviews wordpress 网络
记得寒假那段刚发表一篇博客就被GOOGLE和GOOGLE blogsearch收录了,延迟不到2分钟,当时惊叹GOOGLE的效率。现在不知道怎么搞的,两天都还没有被收录,不知道是不是因为最近更新频率较低所致,准备每天更新一篇,刺激一下GOOGLE。还有一种情况是被GOOGLE blogsearch收录了,但是没有被GOOGLE网页收录,也是令人不解。前两天下载了一个GOOGLE SITEMAP插件,貌似对收录没有什么影响。另外发现一比较奇怪的现象,我在DREAMHOST上把实验室的网页设置为www.nanocsu.com和nanocsu.com都可以访问,但是GOOGLE对二者的收录有明显差别,后者的结果多于前者,不知为何。搜索引擎真是复杂。
Tags:
google 收录速度 杂记 网络
Some terms related to automatic swith-such liquid level switch and temperature switch came to me recently. These are quite new for me, a graduate in Materials discipline. I think these are some kinds of elements of mechanical engineering. The general defination and description of those terms are listed below when corresponding search through the Internet has been done.
Liquid level switch is mainly used in equipments which request liquid level is regularly kept unchangeably.Liquid level switch can be widely used in automobile, industry equipments, agriculture equipments and household electrical appliances.
As to temperature switch, it is responsive to temperature changes. Temperature switches generally are provided with a temperature responsive element which will open or close a switch when a predetermined minimum pressure or temperature is sensed by the responsive element.
Tags:
广告 网络
->
As the saying goes, every coin has two sides. So does this one- GPS tracking technology. It is hardly to deny that high tech is a double-edged sword.
The reasons are quite obvious. For one thing, this high tech can guarantee the betterment of social security-policemen have possessed an effective and powerful weapon in avoiding of drug deal or some activities illegal. For another, people are forced to confront with this embarrassing situation—privacy being infringed and lost
Let’s move a little deeper and be more specific. What about tracking the Cops themselves? Even if I am not a cop, I can tell a cop being tracked felt like exactly a criminal being tracked. The results are same: if you want to track your employee by GPS tracking, you must undertake the consequences of the decline of the focus and efficiency. If you want to track your spouse or your kids by GPS tracking, sorry, get out! Your freak…
People always think of technology as a solution to problems, not a creator. But now they must change their mind before it is too late.
Finally, I have a question: would you like to track yourself by GPS tracking technology to show your wife or kids or your employer where you are?
Tags:
广告 网络
Many students who just graduated from high school may ask their parents for a brand new laptop as a present of entering college. So you may need guide for choosing college laptops. Now you can ask "The Best PC Laptops for College" for help.
In this site, you can see what are chosen as best college laptops and guide for buying college laptops is also available. In the present status, Toshiba Satellite A215-S4697 15.4" Widescreen is regardes as No.1 college laptop. You can consider it as your first choice. In the useful guide, the features of durability, weight and size, speed and storage are emphasized. More details can be checked on their first page. In addition, the price of their products is also attractive.
So If you plan to buy college laptops for your children, "The Best PC Laptops for College" worths your visit.
Tags:
广告 网络