Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 推出RSS订阅插件

[复制链接]
happyhy 发表于 2008-11-24 05:51:34 | 显示全部楼层 |阅读模式
UCHome插件
语言编码: UTF8简体 
插件名称: RSS订阅/Js调用
插件作者:
适用版本:
本帖最后由 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

不懂英语,我在安装时配置文章没设置,没启用缓存,可能使用时有点慢!
谁懂的指点一下!

配置文件代码:
  1. <?php

  2. // MAGPIE SETUP ----------------------------------------------------
  3. // Define path to Magpie files and load library
  4. // The easiest setup is to put the 4 Magpie include
  5. // files in the same directory:
  6. // define('MAGPIE_DIR', './')

  7. // Otherwise, provide a full valid file path to the directory
  8. // where magpie sites

  9. define('MAGPIE_DIR',  './magpie/');

  10. // access magpie libraries
  11. require_once(MAGPIE_DIR.'rss_fetch.inc');
  12. require_once(MAGPIE_DIR.'rss_utils.inc');

  13. // value of 2 optionally show lots of debugging info but breaks JavaScript
  14. // This should be set to 0 unless debugging
  15. define('MAGPIE_DEBUG', 0);

  16. // Define cache age in seconds.
  17. define('MAGPIE_CACHE_AGE', 60*60);

  18. // OTHER SETTIINGS ----------------------------------------------
  19. // Output spec for item date string if used
  20. // see http://www.php.net/manual/en/function.date.php
  21. $date_format = "F d, Y h:i:s a";


  22. // server time zone offset from GMT
  23. // If this line generates errors (common on Windoze servers,
  24. //   then figure out your time zone offset from GMT and enter
  25. //   manually, e.g. $tz_offset = -7;

  26. $tz_offset = gmmktime(0,0,0,1,1,1970) - mktime(0,0,0,1,1,1970);

  27. // ERROR Handling ------------------------------------------------

  28. // Report all errors except E_NOTICE
  29. // This is the default value set in php.ini for Apache but often not Windows
  30. // We recommend changing the value to 0 once your scripts are working
  31. ini_set('display_errors', 1);
  32. ini_set('error_reporting', E_ALL^ E_NOTICE);


  33. // Utility to remove return characters from strings that might
  34. // pollute JavaScript commands. While we are at it, substitute
  35. // valid single quotes as well and get rid of any escaped quote
  36. // characters
  37. function strip_returns ($text, $linefeed=" ") {
  38.         $subquotes = ereg_replace("&apos;", "'", stripslashes($text));
  39.         return ereg_replace("(\r\n|\n|\r)", $linefeed, $subquotes);
  40. }

  41. ?>
复制代码
 楼主| happyhy 发表于 2008-11-24 05:57:32 | 显示全部楼层
本帖最后由 happyhy 于 2008-11-24 10:57 编辑

目前界面粗糙,寻求高手开发完善,做为RSS订阅插件!

有意开发者,留邮箱!!
回复

使用道具 举报

whj888 发表于 2008-11-24 08:30:58 | 显示全部楼层
本帖最后由 whj888 于 2008-11-24 08:41 编辑

一直想要,以前装了一个博通,那个很完整,但听说很消耗服务器就放下了。
这个是JS的,资源消耗可能小吧。

不过GBK的不能用很可惜,
应该可以转码吧
回复

使用道具 举报

abcnic1 发表于 2008-11-24 09:44:18 | 显示全部楼层
看看去 :)
回复

使用道具 举报

 楼主| happyhy 发表于 2008-11-24 11:00:07 | 显示全部楼层
此楼以上邮箱已发!
回复

使用道具 举报

 楼主| happyhy 发表于 2008-11-24 14:28:05 | 显示全部楼层
完了,服务器受不了,大家把程序下到自己网站吧!

看回贴情况放出!
回复

使用道具 举报

057499 发表于 2008-11-24 14:46:43 | 显示全部楼层
回复

使用道具 举报

李渠 发表于 2011-12-16 18:29:56 | 显示全部楼层
可以共享吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 07:26 , Processed in 0.138774 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表