msgbartop
here and there, now and then
msgbarbottom

31 一 08 Log[2008.01.31]

1、增加Subscribe To Comments插件,访客可订阅特定blog的最新留言。

2、使用WordPress中文团队提供的中文语言包。把wp-config.php中的

define (‘WPLANG’, ”);

改为

define (‘WPLANG’, ‘zh_CN’);

3、增加Comment Quicktags -Reloaded插件,在评论框增加一条简单的标记插入栏,实际使用的是Reloaded版本。煎蛋有一个增加图像插入的修改,暂不应用。

修改wp-includes/js/quicktags.js(注意:relaoded版本实际引用的是wp自带的quicktags.js) ,注释掉第263行,使其不显示lookup标签。该标签用于英文的拼写检查,对中文没有用。

4、增加ClickQuote插件,通过点击一段文字在留言框中进行引用。

5、升级KB Advanced RSS WidgetSimple Tags

6、将feed修改为http://wp.onoffer.us/feed,有时候,无奈之何就是无奈之何。同时去除rss订阅用的5个图标,直接用文字方式表示。

7、根据加快WordPress的页面生成和载入速度一文合并JS,有两处要特别注意:1)<script></script>不可以省略为<script />;2)http://wp.onoffer.us/all.js.php不可以省略为all.js.php。修改内容包括:

7-1、增加all.js.php文件,内容为:

<?php
include (“wp-includes/js/jquery/jquery.js” ) ;
include (“wp-content/plugins/clickquote/clickquote.js” ) ;
include (“wp-includes/js/quicktags.js” ) ;
include_once (“wp-content/plugins/comment-quicktags/comment_quicktags.php” ) ;
?>

7-2、修改head模板,增加:

<script src=”http://wp.onoffer.us/all.js.php” type=”text/javascript” ></script>

7-3、修改相应插件的js插入语句,注释掉

simple-tags.ajax.tooltips.php 行76
clickquote.php 行47、48
comment_quicktags.php 行71、72

在6、7两项修改后,感觉页面载入速度有明显的提高。

补充:所谓明显提高,其实是在增加了simple-tags、quicktags、clickquote三个插件后,速度下降很明显,首页载入要30s;经过以上优化,恢复到原来15s左右的首页载时间,还是不大理想的。

(难得一次修改这么多,本篇log放上首页几天好了^^)

Popularity: 58% [?]

相关文章

Tags: , ,

Reader's Comments

  1. |

    你好,请问如何把Comment Quicktags 变成中文?能不能把你改好的文件发给我一份,谢谢了。能支持插入图片就更好了。

  2. |

    @逍遥灵 1、插入图片我没弄,你参考煎蛋的文章吧:

    http://jandan.net/2008/01/22/comment-img-tag.html

    2、改中文的问题:在插件文件的comment_quicktags.php中改,这个文件最后边那几行,如


    new edButton('ed_strong'
    ,"b"< =把这个改成"加粗"之类的

Leave a Comment