本帖最后由 happyhy 于 2008-11-24 11:11 编辑
目前还不是一个完整插件!
但可以使用!
已具有RSS Feed内容JS调用功能:
将Feed内容以JS方式输出,便于嵌入页面中,做成文章列表。适用于任何博客程序以及网站,只要支持RSS Feed,在字符编码UTF-8网站就可以使用。完全可以利用它来做一个简易的RSS阅读器。
此程序是国外开源的,原开发者声称:可以自行二次开发修改命名为任一版本并产权保护.
网址:http://www.eqibar.com/home/ask.php?do=ask&ac=view&id=2
大家可以测试,体验试用!
可以将自己的,或别人网站的RSS源网址生成JS代码!
然后将代码复制粘贴到自己或别人网站博客!
看看效果,
可以自定义样式风格!
RSS网址如:
https://discuz.dismall.com/rss.php
http://www.eqibar.com/home/rss.php
不懂英语,我在安装时配置文章没设置,没启用缓存,可能使用时有点慢!
谁懂的指点一下!
配置文件代码:- <?php
- // MAGPIE SETUP ----------------------------------------------------
- // Define path to Magpie files and load library
- // The easiest setup is to put the 4 Magpie include
- // files in the same directory:
- // define('MAGPIE_DIR', './')
- // Otherwise, provide a full valid file path to the directory
- // where magpie sites
- define('MAGPIE_DIR', './magpie/');
- // access magpie libraries
- require_once(MAGPIE_DIR.'rss_fetch.inc');
- require_once(MAGPIE_DIR.'rss_utils.inc');
- // value of 2 optionally show lots of debugging info but breaks JavaScript
- // This should be set to 0 unless debugging
- define('MAGPIE_DEBUG', 0);
- // Define cache age in seconds.
- define('MAGPIE_CACHE_AGE', 60*60);
- // OTHER SETTIINGS ----------------------------------------------
- // Output spec for item date string if used
- // see http://www.php.net/manual/en/function.date.php
- $date_format = "F d, Y h:i:s a";
- // server time zone offset from GMT
- // If this line generates errors (common on Windoze servers,
- // then figure out your time zone offset from GMT and enter
- // manually, e.g. $tz_offset = -7;
- $tz_offset = gmmktime(0,0,0,1,1,1970) - mktime(0,0,0,1,1,1970);
- // ERROR Handling ------------------------------------------------
- // Report all errors except E_NOTICE
- // This is the default value set in php.ini for Apache but often not Windows
- // We recommend changing the value to 0 once your scripts are working
- ini_set('display_errors', 1);
- ini_set('error_reporting', E_ALL^ E_NOTICE);
- // Utility to remove return characters from strings that might
- // pollute JavaScript commands. While we are at it, substitute
- // valid single quotes as well and get rid of any escaped quote
- // characters
- function strip_returns ($text, $linefeed=" ") {
- $subquotes = ereg_replace("'", "'", stripslashes($text));
- return ereg_replace("(\r\n|\n|\r)", $linefeed, $subquotes);
- }
- ?>
复制代码 |