discuz修改论坛的rss为全文输出的方法
2014-03-18 18:02
369 查看
找到文件: \source\module\forum\forum_rss.php
找到位置:
在其下方加入这样一段话:
将其下方的这段话:
修改为:
然后刷新即可看到效果
找到位置:
if($attachfile) { if($attachremote) { $filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attachfile; } else { $filename = (!strstr($_G['setting']['attachurl'], '://') ? $_G['siteurl'] : '').$_G['setting']['attachurl'].'forum/'.$attachfile; } }
在其下方加入这样一段话:
$fdata = DB::fetch_first("SELECT * FROM ".DB::table('forum_post')." WHERE tid = '$thread[tid]' and first = 1");
将其下方的这段话:
echo " <item>\n". " <title>".$thread['subject']."</title>\n". " <link>$_G[siteurl]".($trewriteflag ? rewriteoutput('forum_viewthread', 1, '', $thread['tid']) : "forum.php?mod=viewthread&tid=$thread[tid]")."</link>\n". " <description><![CDATA[".dhtmlspecialchars($thread['description'])."]]></description>\n". " <category>".dhtmlspecialchars($thread['forum'])."</category>\n". " <author>".dhtmlspecialchars($thread['author'])."</author>\n". ($attachfile ? '<enclosure url="'.$filename.'" length="'.$attachsize.'" type="image/jpeg" />' : ''). " <pubDate>".gmdate('r', $thread['dateline'])."</pubDate>\n". " </item>\n";
修改为:
echo " <item>\n". " <title>".$thread['subject']."</title>\n". " <link>$_G[siteurl]".($trewriteflag ? rewriteoutput('forum_viewthread', 1, '', $thread['tid']) : "forum.php?mod=viewthread&tid=$thread[tid]")."</link>\n". " <description><![CDATA[".dhtmlspecialchars($fdata['message'])."]]></description>\n". " <category>".dhtmlspecialchars($thread['forum'])."</category>\n". " <author>".dhtmlspecialchars($thread['author'])."</author>\n". ($attachfile ? '<enclosure url="'.$filename.'" length="'.$attachsize.'" type="image/jpeg" />' : ''). " <pubDate>".gmdate('r', $thread['dateline'])."</pubDate>\n". " </item>\n";
然后刷新即可看到效果
相关文章推荐
- discuz修改论坛的rss为全文输出的方法
- DedeCMS订阅RSS带图全文输出的修改方法
- 修改Discuz论坛最高在线人数记录的方法
- centos lamp/lnmp阶段复习 以后搬迁discuz论坛不需要重新安装,只需修改配置文件即可 安装wordpress 安装phpmyadmin 定时备份mysql两种方法 第二十五节课
- Discuz!论坛运营之修改帖子10000字节长度限制最大字数的方法
- discuz 修改RSS 为伪静态的一点小方法 ,修改源文件
- Discuz!教程之论坛编辑器默认勾选HTML代码的修改方法
- 5种获取RSS全文输出的方法
- 修改Discuz论坛最高在线人数记录的方法
- Discuz2.5中无法修改签名的解决方法
- discuz免激活同步登入代码修改方法(discuz同步登录)
- ASP.NET输出EXCEL表格的几种方法(总结修改)
- discuz论坛配置开启Sphinx全文搜索
- Dvbbs 7.1论坛鼠标指针修改方法
- 第三方获得RSS全文输出
- 月光博客RSS调整为全文输出
- DISCUZ 论坛管理员密码忘记的解决方法
- Discuz!:密码错误次数过多,请15分钟后重新登陆的修改方法
- Discuz!X3 修改在线人数在线会员以及统计数据的方法