veryid.com升级至wordpress mu 1.5.1
星期三, 05月 14th, 2008基于word press mu的多用户博客系统,现在升级至wp2.5内核。
基于word press mu的多用户博客系统,现在升级至wp2.5内核。
The 1.5.1 version of WordPress MU is now available for download:
wp-sticky。
wp-postratings。
wp-polls。
wp-dbmanager。
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 –>
删除线所标志的,即为我添加的。大家可以试试。
函数:
<?php st_related_posts(“”); ?>
‘number’ => 5,
‘orderby’ => ‘counter’,
‘order’ => ‘DESC’,
‘format’ => ‘list’,
‘include_page’ => true,
‘exclude_posts’ => ”,
‘exclude_tags’ => ”,
‘title’ => __(‘<h4>Related posts</h4>’, ’simpletags’),
‘nopoststext’ => __(‘No related posts.’, ’simpletags’),
‘dateformat’ => $this->dateformat,
‘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.
<?php st_related_posts(‘number=10&title=&include_page=false&xformat=<a href=”%permalink%” title=”%title% (%date%)”>%title%</a>’); ?>
应该说1.1版本有了比较明显的提升,因为可以根据tags的相关性来判断生成一个相关日志列表了。所以就不用以前的一些显示相关日志的插件了,一个simple tags足矣。
难道是为了完美么?唉
主题从K2 Release Candidate 1 Released升级至Release Candidate 3 Released。慢慢试试它的改进。最直观的就是 翻页功能更人性化。大家点击older试试。它会从头部文件慢慢移至你的页面文件,方便阅读吧。
方法很简单,
1 备份你修改过的文件,wp-content(uploads ,plugins,themes ). wp-config.php
2上传2.3的文件。然后运行升级,将你的备份文件再上传覆盖。utw因为不支持2.3了。但在manage- improt-Ultimate Tag Warrior能将其导入。然后再下载simple tags 来替换,很不错的吧。