Archive for the ‘word press’ Category

veryid.com升级至wordpress mu 1.5.1

星期三, 05月 14th, 2008

地址:www.veryid.com

基于word press mu的多用户博客系统,现在升级至wp2.5内核。

The 1.5.1 version of WordPress MU

星期三, 05月 14th, 2008

The 1.5.1 version of WordPress MU is now available for download:

http://mu.wordpress.org/download/

启用NextGEN Gallery

星期三, 04月 30th, 2008

不得不为wordpress良好的扩展性而感叹。使用了NextGEN Gallery的本意是帮助朋友测试这个插件,但安装后发现的确强大。比163那些博客们好多了吧。哈哈。一下是对相册的调用:

ID为1的影集:

ID为1的影集的幻灯片展示

ID为1的相册 -竖排(影集可看做相册的子集)

my life

8 照片

idea

2 照片

google

2 照片

ID为1的相册 -横排(影集可看做相册的子集)

my life

8 照片

idea

2 照片

google

2 照片

单图:

09.jpg

主题的选择

星期日, 04月 27th, 2008

再次更换了主题。这个主题其实是我自己修改的。在默认主题的基础上。 (more…)

最近想汉化的插件

星期三, 10月 24th, 2007

wp-sticky。
wp-postratings。
wp-polls。
wp-dbmanager。

simple tags1.1的相关日志功能

星期六, 10月 20th, 2007

simple tags1.1提供了一个函数,st_related_posts(””);这个函数可以添加在文章的结尾处,根据这篇文章的tags,来获取与之相同tags的一组文章的标题列表,从而能帮助读者快速的找到相关信息。
在管理后台,即标签-选项中,我们可以复选此功能,但会在主页面,单个文章页面,文章后都会出现这个相关日志列表,那么,怎么自己添加这个函数呢?我们以只在单个文章下添加为例。

一般的主题文件,simple.php控制着单个页面的显示,打开 single.php,找到文章的结尾处添加
<?php st_related_posts(‘number=10&title=&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>即可。具体的函数值参考下面,或是作者的主页。

而有些不是在single.php下 添加,如我用的k2,是在theloop.php下控制的。

找到

<div class=”entry-content”>
<?php the_content(sprintf(__(’Continue reading \’%s\”, ‘k2_domain’), the_title(”, ”, false))); ?>

<?php wp_link_pages(’before=<p class=”page-links”><strong>’ . __(’Pages:’,’k2_domain’) . ‘</strong>&after=</p>’); ?>

<?php if ((is_single() or is_day()) ) { ?>
<?php st_related_posts(’number=10&title=相关文章&nopoststext=暂时没

有 :(&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>
<?php } ?>

</div> <!– .entry-content –>

删除线所标志的,即为我添加的。大家可以试试。

函数:

  1. <?php st_related_posts(“”); ?>

函数值:

  1. ‘number’ => 5,

  2. ‘orderby’ => ‘counter’,

  3. ‘order’ => ‘DESC’,

  4. ‘format’ => ‘list’,

  5. ‘include_page’ => true,

  6. ‘exclude_posts’ => ,

  7. ‘exclude_tags’ => ,

  8. ‘title’ => __(‘<h4>Related posts</h4>’, ’simpletags’),

  9. ‘nopoststext’ => __(‘No related posts.’, ’simpletags’),

  10. ‘dateformat’ => $this->dateformat,

  11. ‘xformat’ => __(‘<a href=”%permalink%” title=”%title% (%date%)”>%title%</a> (%commentcount%)’, ’simpletags’)

举例:

We want to show the first 10 related article without title, without pages and without comments count.

  1. <?php st_related_posts(‘number=10&title=&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>

参数说明:
  • number
    (integer) Number of articles to show
  • orderby
    (string) Key of tags sorting. Valid values are :

    • counter - (default) by number of common tags (most relevance)
    • post_date - by publication’s date
    • post_title - by title
    • random - random
  • order
    (string) Order of sorting. Valid values are :

    • ASC - ascending
    • DESC - descending
  • format
    (string) show tags as non ordered list UL/LI

    • flat - (Default) Articles are separated with spaces
    • list - articles are inside non ordered lists containing class=’related_posts’
    • array -articles are inside a PHP array (use it with st_get_related_posts())
  • include_page
    (boolean) “true” to add pages, “false” only for posts
  • exclude_posts
    (string) Separate articles ID to exclude with commas
  • exclude_tags
    (string) Separate tags ID to exclude with commas
  • title
    (string) Specify the positioned title before the list
  • nopoststext
    (string) Specify the text to show when there is no related post
  • dateformat
    (string) Specify the date format. Same format as PHP date function
  • xformat
    (string) Extended links format. Available Markups :

    • %post_date% - Replaced by the date of the article
    • %post_permalink% - Replaced by the permalink of the link
    • %post_title% - Replaced by the title of the article
    • %post_comment% - Replaced by the comments count of the article
    • %post_tagcount% - Replaced by the number of common tags
    • %post_id% - Replaced by the ID of the article
    • %post_relatedtags% - Replaced by common tag list

simple tags 1.1发布

星期五, 10月 19th, 2007

应该说1.1版本有了比较明显的提升,因为可以根据tags的相关性来判断生成一个相关日志列表了。所以就不用以前的一些显示相关日志的插件了,一个simple tags足矣。

重新装了2遍

星期五, 10月 19th, 2007

难道是为了完美么?唉

主题升级至K2 Release Candidate 3 Released

星期日, 10月 14th, 2007

主题从K2 Release Candidate 1 Released升级至Release Candidate 3 Released。慢慢试试它的改进。最直观的就是 翻页功能更人性化。大家点击older试试。它会从头部文件慢慢移至你的页面文件,方便阅读吧。

本博客顺利升至2.3本版,并utw转化到simple tags

星期日, 10月 14th, 2007

方法很简单,

1 备份你修改过的文件,wp-content(uploads ,plugins,themes ). wp-config.php

2上传2.3的文件。然后运行升级,将你的备份文件再上传覆盖。utw因为不支持2.3了。但在manage- improt-Ultimate Tag Warrior能将其导入。然后再下载simple tags 来替换,很不错的吧。