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

[wordpress]WordPress的tag增加及目前使用的插件调整

wordpress升级到2.3x已经有几个月了,看到了新的tag内置功能,但一直都没有进行模版调整,之前是使用的Jerome’s Keywords,因为是后安装了,所以一直也没有过于使用。
今天根据wordpress的文件,在目前使用的PhoenixBlue模版上进行了调整。
1、在single.php文件中,加入了本文tag 的显示

< ?php the_tags(‘< h3 >Tags< /h3 >   ’, ‘ ‘ , ”); ?>

2、在sidebar.php文件中,加入了本文tag cloud的显示

< ?php wp_tag_cloud(); ?>

其它的调整,对整个wordpress的插件进行了精简和更新,目前使用的插件为:
akismet
delicious-bookmark-this
google-sitemap-generator
podpress
simple-tags
WP23RP
wp-cache
wp-db-backup

Comments

[wordpress]基于Jerome’s Keywords的Tags功能实现

开始采用的是UltimateTagWarrior,但考虑到升级、复杂度等因素,决定换用Jerome’s Keywords。对我而言,主要是要使用Tags和Tagcloud功能。
借鉴曹增辉的实现介绍,结合在定制过程中的,丰富了一下内容:
1、从http://vapourtrails.ca/wp-keywords下载最新的文件;
2、上载到模版目录(我的是wp-content\themes\almost-spring);
3、进入后台,Plugins->Jerome’s Keywords->Activate;
4、修改index.php

<div class=”postentry”>
<?php the_content(“<p>__(‘Read the rest of this entry »’)</p>”); ?>
</div>
Tags: <?php the_post_keytags(); ?>

添加加重的那一句。
5、single.php同上修改;
6、下载作者提供的模板文件:cosmos.php,将这个文件上传到wp-content/themes/yourtheme/下,然后在WEB下控制面板里新建立一个page,注意在右边的模板template列表里选择“cosmos”。这样就形成了Tag云图;
7、曹提到的mod_write功能在我目前使用的主机上是支持的。所以后续问题我没有遇到,从这点上说,基于目前使用的几个主机提供商的经验来说,还是北美的主机要好一些。也可能就因为如此,这些功能才成为国外软件的基本功能吧。

Comments

It’s My Life © 2006-2007     Powered by WordPress     21 queries. 0.223 seconds.