WP插件:Smart RSS介绍

smartrss插件是一个wordpress插件,可以让你的博客拥有基于多个RSS信息源自动化聚合展现的功能。

特点:
-管理RSS信息源的管理员工具
-每个RSS都可以被指定到不同的类别目录中
-提供相关文章显示功能
-支持定时自动化执行

软件包:
-smart_rss.php        管理员定制界面程序
-wp_smartrss.php   定时任务执行程序

安装步骤:
-上传文件smart_rss.php到wp-content/plugins目录
-进入管理界面,点击Plugins,并启动Smart RSS
-选择Options->Smart RSS,设定RSS信息源
-上传wp_smartrss.php到您的WordPress根路径(基于安全原因,建议修改这个文件名称)
-访问http://sitename/wp_smartrss.php网址,执行任务。如果你想自动化执行,你可以设置一个cron来实现。
-设置的CRON工作,用一个代码类似这样的:
“nice –adjustment=19 /usr/bin/php /$full-path-to-the-file/wp_smartrss.php”
或者
“nice –adjustment=19 /usr/bin/php /$full-path-to-the-file/your_file_name.php”
-如果你希望把这个文件部署到服务器其它目录,你需要编辑路径,打开文件wp_smartrss.php:
require_once (’wp-config.php’);并取而代之的是你设定的路径
require_once (’/full-path-to-wordpress/wp-config.php’);

相关文章展示实现:
-展示相关文章,放入下面代码到你的single.php模板页面:

< ?php smartrss_related_posts(5, 10, ‘<li><b style=”font-size:14px;”>’, ‘</b>’, ”, ”, false, false); ?>

函数功能参数: smartrss_related_posts(limit, len, before_title, after_title , before_post, after_post , show_pass_post, show_limit)

- limit = the related posts limit to be displayed
- len = if show_limitis set then it will limit the post size to $len words
- before_title = html code to add before post title
-after_title = html code to add after post title
-before_post = html code to add before post
-after_post =html code to add after post
-show_past_post = include posts that are password protected
-show_limit = limit the post text to $len words

下载:
点击此处

开发者网站:
http://www.devplug.net/

Comments

cos-html-cache和smartRSS的不匹配

cos-html-cache是国人开发了一个静态化的WP插件,Smart RSS是基于RSS的auto post插件。cos-html-cache监控了正常的读改写操作,但结合Smart RSS后,并不能正常更新信息。
具体就不清楚是那个插件不符合WP标准了。
插件用多了,兼容性就会出现问题。

Comments

两个读取feed自动发布的WP插件

Comments

目前使用的robots.txt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
User-agent: *
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /feed/
Disallow: /comments/feed
Disallow: /trackback/
Allow: /wp-content/uploads
 
# BEGIN XML-SITEMAP-PLUGIN
Sitemap: <a href="http://noble.77dt.com/sitemap.xml.gz">http://noble.77dt.com/sitemap.xml.gz</a>
# END XML-SITEMAP-PLUGIN

Comments

[wordpress]update to 2.3.3

这次的升级赶的比较及时,登陆上后台,就看到了2.3.3的发布信息(在官方发布后的2个小时左右吧)。
严格说来,这次的升级对于个人使用的用户,其实并不是十分急需的。
A flaw was found in our XML-RPC implementation such that a specially crafted request would allow any valid user to edit posts of any other user on that blog.
既:一个特定的请求会导致任何有效的用户在这个博客上修改其他任何用户发表的日志。
这个问题,不是什么大的问题。
顺手升级了。

Comments

接近无聊的动作记录:给blog加上版本信息

这个动作纯属无聊的折腾,记录一下:

1
2
3
4
5
6
7
8
9
10
11
<script type="text/javascript">
document.body.oncopy=function(){
 event.returnValue=false;
 var t=document.selection.createRange().text;
<?php
  echo "var s=\"本文来源于 It\'s My Life ".get_settings('home');
  echo " , 原文地址:".the_permalink()."\";";
?>
 clipboardData.setData('Text','\r\n'+t+'\r\n'+s+'\r\n');
}
</script>

将此段代码加在目前使用的模版文件中的,sigle.php的最后部分(不要加在最前面,会出现JS调用document.body错误,因为当时body对象还没有被声明使用)。

Comments

It’s My Life © 2008     Powered by WordPress     25 queries. 1.240 seconds.