• 2012-07-28

    博客新主题新评论

    Views: 32839 | 7 Comments

    之前的苹果风格主题有点审美疲劳了, 换一个简朴一点的.

    以前评论没有盖楼功能, 现在也加上了. 不是 WordPress 默认的分页功能, 因为其默认的分页会将所有评论读出来再分页, 这显然不合适. 另外, 我还把评论者头像显示功能打开了, 这样, 如果你在 getavatar.com 有头像, 就可以显示了. 不过, getavatar.com 好像部分被屏蔽了.

    有喜欢这个主题和评论插件的朋友可以找我要.

    Posted by ideawu at 2012-07-28 19:25:21 Tags: ,
  • 2010-06-22

    WordPress评论转义HTML标签

    Views: 27312 | No Comments

    把这段代码放到 theme 里的 functions.php 文件:

    function theme_pre_comment_post( $c) {
    	$c['comment_content'] = htmlspecialchars($c['comment_content']);
    	return $c;
    }
    add_filter( 'preprocess_comment', 'theme_pre_comment_post', '', 1);
    
    Posted by ideawu at 2010-06-22 13:54:47 Tags:
  • 2010-04-23

    换一个mac风格的WordPress主题i2theme

    Views: 23676 | No Comments

    今天无意中发现一个mac风格的Wordpress主题 i2theme, 觉得很好看, 于是Download下来, 改一下宽度, 就用上了. 以前也发现别人用过这样的mac主题.

    mac的视觉效果确实非常优雅, 有机会要买一个苹果电脑用用.

    Posted by ideawu at 2010-04-23 21:59:16 Tags:
  • 2010-04-09

    WordPress category widget using new 2.8 API

    Views: 29745 | No Comments

    Category widget with an exclude field, that you can set 'Uncategoriezed' not being shown. Based on default WordPress category widget, so it acts just like that one.

    In widget setting page, add "ideawu_category" widget to Sidebar, then type "1" into the "Exclude" form field that save. Category ids are seperated by comma mark.

    Download: ideawu_category.zip

    Posted by ideawu at 2010-04-09 12:16:04 Tags: ,
  • 2010-03-23

    WordPress开发指南

    Views: 20234 | No Comments

    不使用Permalink也能编辑Wordpress slug

    编辑 wp-admin/js/page.js 和 wp-admin/js/post.js, 将如下两行注释掉.

    //jQuery('#slugdiv').hide();
    //jQuery('#pageslugdiv').hide();

    autosave和revisions

    define( 'AUTOSAVE_INTERVAL', 99999 ); // seconds
    define( 'WP_POST_REVISIONS', 0 ); // disable revisions

    从wp-admin/post-new.php和page-new.php中删除"wp_enqueue_script('autosave');";

    关闭恼人的插件更新提示

    在wp-admin/menu.php中搜索"update_plugins", 你就知道怎么修改了.

    显示文章数量为0的分类

    就算没有文章, 分类也应该显示, 而不应该隐藏.

    修改wp-includes/category-template.php的wp_list_categories可带参数hide_empty.

    Posted by ideawu at 2010-03-23 14:45:36 Tags:
  • 2010-02-26

    更新了简历, Google百度搜索引擎快来啊

    Views: 18762 | No Comments

    我的简历页面(http://www.ideawu.net/resume.php)更新后, 这两个搜索引擎都没有来更新, 还是以前的内容, 不知道什么原因, 所以发篇日志试下. WordPress的SEO做得还是很好.

    Google百度搜索引擎快来啊!

    Posted by ideawu at 2010-02-26 11:58:37 Tags:
|<<<12>>>| 1/2 Pages, 11 Results.