本站使用的WordPress插件

Theme Test Drive
模板測試插件(08/12/28)

No Self Pings
解決 WordPress 內部文章互 Ping 的插件(08/09/18)

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

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
顯示相關文章的插件

不用插件,簡單實現留言倒序

因為大多主題的留言薄都是將最新留言放在最下面,所以很不習慣,通過小修小改即可把留言順序按照最新留言放在上面了——即實現倒序。

修改 comments.php 里面的評論順序

1
2
3
4
//也很簡單,只需要在文件中替換一處代碼:
<?php foreach ($comments as $comment) : ?>
//替換成:
<?php foreach (array_reverse($comments) as $comment) : ?> 

如果有評論編號,做如下要改

通過上面的修改你的留言順序應該倒過來了,如果有序號的話,還須把序號倒過來才算完美。不過有不少的模板主題的編號代碼都不一樣,有$iCommentCount或$iCommentnumber,我們僅用$iCommentCount做例子:

1
2
3
4
5
6
7
$iCommentCount = 0;
//...
<?php $iCommentCount++; echo($iCommentCount); ?>
//需要改成初始值為評論總數,輸出一次自減一次,循環:
$iCommentCount = get_comments_number();
//...
<?php echo($iCommentCount); $iCommentCount--; ?>

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

十個最好的Firefox擴展插件列表

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.

繼續閱讀

本站使用的WordPress插件安裝方法

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

網站地圖插件Dagon Design Sitemap Generator

復制page.php文件并重命名為 sitemap.php,將如下代碼:

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

改為如下代碼:

繼續閱讀

博客圈最流行的30個 wordpress 插件

原文:staska.net翻譯:sein

似乎每個寫博的人都列舉過自己喜歡的插件,這篇關于 wordpress 插件的文章,是在總結了 48個列表280個插件的基礎上寫出來的。

Akismet:規則嚴厲的反 spam 插件。

Google Sitemap Generator:SEO 利器,生成規范的站點地圖以便 Google 收錄。

Related posts:自動搜索并列舉相關文章的插件。

Wp-Contact form:給你的 blog 加一個聯系表單。加強版 / 防 spam 版

WordPress database backup:數據庫備份插件,免得進 phpmyadmin 那么麻煩,如果你的主機支持 smtp 的話,還可以直接把備份發送到郵箱。

Feedburner Feed Replacement:將原始 feed 地址轉向到 feedburner 的燒錄地址。

Ultimate Tag Warrior:經典的 tag 插件。

繼續閱讀

八個無價的WordPress插件

WordPress是一個非常流行的免費網站內容管理軟件,然而同時,如果你想為你的網站提供一個良好的平臺,那么就需要在默認的Wordpress中增加一些自定義的功能。最簡單的方法就是插件。只要將一些特殊的文件放到Wordpress的安裝目錄下,就可以得到新的功能。這里介紹8個絕對物超所值的Wordpress插件。

  WP Shortstat
  Jeff Minard開發的WP-Shortstat,是將一個簡單的網站統計軟件“Shortstat”移植到Wordpress。如果你是OS X用戶,你還可以下載WP-Shortstat Widget桌面版。

  Get Custom
  經常有Wordpress的新用戶問我,“怎么往文章中插入附件呢?”,默認的Wordpress不提供這樣的功能,但是它提供了方法。在Wordpress中你可以使用“Custom Fields”來貼上自定義數據,Scott Reilly的“Get Custom”插件可以很容易地做到這一點。

  WP Cache Inspect
  Wordpress 2已經內置了很不錯的緩存系統,然而有一些小問題是,它有時會緩存一些你不需要緩存的信息。例如,當你重新設計你網站的欄目時候,無論你刷新了多少次頁面,你都發現沒有任何改變。Peter Westwood的WP Cache Inspect可以讓你在任何需要的時候手動清除緩存。

繼續閱讀

無需插件,創建WordPress留言板

以默認外觀為基準:
1.到默認外觀目錄下,復制single.php文件,并改名為guestbook.php;
2.打開guestbook.php文件,在

1
<?php get_header();?>
1
2
3
4
5
6
下面,添加代碼:
<?php
/*
Template Name: GuestBook
*/

?>

保存.
3.添加一個頁面,頁面模板選guestbook.php,保存
4.復制comments.php文件,并改名為guestcomments.php;
5.打開guestbook.php文件,修改

1
<?php comments_template();?>

1
<?php comments_template('/guestcomments.php');?>