因为大多主题的留言薄都是将最新留言放在最下面,所以很不习惯,通过小修小改即可把留言顺序按照最新留言放在上面了——即实现倒序。

修改 comments.php 里面的评论顺序

  1. //也很简单,只需要在文件中替换一处代码:
  2. <?php foreach ($comments as $comment) : ?>
  3. //替换成:
  4. <?php foreach (array_reverse($comments) as $comment) : ?> 

如果有评论编号,做如下要改

通过上面的修改你的留言顺序应该倒过来了,如果有序号的话,还须把序号倒过来才算完美。不过有不少的模板主题的编号代码都不一样,有$iCommentCount或$iCommentnumber,我们仅用$iCommentCount做例子:

  1. $iCommentCount = 0;
  2. //...
  3. <?php $iCommentCount++; echo($iCommentCount); ?>
  4. //需要改成初始值为评论总数,输出一次自减一次,循环:
  5. $iCommentCount = get_comments_number();
  6. //...
  7. <?php echo($iCommentCount); $iCommentCount--; ?>

收藏自:http://seosem.ws/wordpress/no-plugin-guestbook-sort/

, ,

No Self Pings
解决 Wordpress 内部文章互 Ping 的插件(08/09/18)

评论回复插件 @ Reply
自动为你的指定回复添加@的样式(08/09/16)

中文 WordPress 工具箱
基本只用到日志截段功能

17fav Bookmark & Share
收藏&分享功能

All in One SEO Pack
SEO优化插件

CoolCode
代码高亮插件

Dean’s Permalinks Migration
转换文章永久链接

Disable autosave
屏弊WP的自动保存功能

DupPrevent
据说可以防止你的ADSENSE被GOOGLE封

Full Text Feed
FEED全文输出插件

Lightbox 2
图片显示暗箱效果

Plugin Update Plus
自动查找升级你的插件

Spam Karma 2
防止垃圾留言的插件

WordPress Database Backup
备份WordPress数据库

WP-PageNavi
一个分页插件

WP-PostViews
日志查看数插件

Related Posts
显示相关文章的插件

WP Statistics
站点统计插件

, ,

在侧栏加了个北京2008奥运倒计时flash插件

【注意】时间取的是本地计算机时间(您正在使用的电脑),因为考虑到网络连接接入以及程序的复杂度,因此没有取标准的北京时间,所以如果您自己的电脑时间设置错误,这个倒计时肯定是有所偏差的。这一点也希望大家多多理解。其实解决方案,用ServerProxy或者WebService都可以搞定,等我忙完之后也会考虑来补上。 目前发现有大量反向链接来到这个地址,有一些似乎是“Spam Site”,申明一下,这里只是我的个人blog而已,任何使用这个倒计时牌的网站均与我没有任何关系。

140X260 版:

  1. <center><embed src="http://aw.awflasher.com/2008.swf" style="overflow: hidden; width: 140px; height: 260px" type="application/x-shockwave-flash" height="260" width="140"></embed></center>

155X37 mini版

  1. <center><embed src="http://aw.awflasher.com/2008lite.swf" style="overflow: hidden; width: 155px; height: 37px" type="application/x-shockwave-flash" height="37" width="155"></embed></center>

转自aw’s blog

, , , , ,

Webware针对不同用户的需求整理了不同的最佳Firefox扩展,相信总有一份列表你会满意,从中发现有价值的内容方便自己的使用。列表如下:

Download.com: Best extensions for Firefox 2
Webware.com’s brothers at Download.com have a good general list, as covered inthis post.

About.com: Top 10 Firefox extensions
A collection of some of the most popular and useful general Firefox extensions.

Irfan Habib: My top 10 Firefox extensions
A thoughtful list for serious Firefox users. See also the comments to this post, which point to other good extensions.

Read/Write Web: Top 10 Firefox Web 2.0 add-ons
The focus is on effective browsing, bookmarks, and RSS. A good lineup if you explore the Web a lot and want to keep track of things you find.

The Simple Dollar: 10 Firefox plugs that save you money
Love the premise, even if it’s stretched a bit thin in this list. This is an unconventional list of extensions that, one way or another, can impact your pocketbook.

阅读全文

, , ,

这里是我使用的WP插件,下面是我的安装方法。

网站地图插件Dagon Design Sitemap Generator

复制page.php文件并重命名为 sitemap.php,将如下代码:

  1. <?php get_header(); ?>
  2.     <div id="content" class="narrowcolumn">
  3.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4.         <div class="post" id="post-<?php the_ID(); ?>">
  5.             <div class="entry">
  6. <?php the_content('<p class="serif">阅读全文 &raquo;</p>'); ?>
  7. <?php wp_link_pages(array('before' => '<p><strong>页面: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  8.     </div>
  9. </div>
  10. <?php endwhile; endif; ?>
  11. <?php edit_post_link('编辑', '<p>', '</p>'); ?>
  12.     </div>
  13. <?php get_sidebar(); ?>
  14. <?php get_footer(); ?>

改为如下代码:

阅读全文

, ,

收藏 & 分享

Powered by 17fav.com