首页建站经验 discuz教程:修改论坛的rss为全文输出的方法

discuz教程:修改论坛的rss为全文输出的方法

打开 /source/module/forum/forum_rss.php 文件找到if($attachfile) {if($attachremote) {$filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attachfile;} else {…

打开 /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 " /n".

" ".$thread['subject']."/n".

" $_G[siteurl]".($trewriteflag ? rewriteoutput('forum_viewthread', 1, '', $thread['tid']) : "forum.php?mod=viewthread&tid=$thread[tid]")."/n".

" /n".

" ".dhtmlspecialchars($thread['forum'])."/n".

" ".dhtmlspecialchars($thread['author'])."/n".

($attachfile ? '' : '').

" ".gmdate('r', $thread['dateline'])."/n".

" /n";

修改为:

echo " /n".

" ".$thread['subject']."/n".

" $_G[siteurl]".($trewriteflag ? rewriteoutput('forum_viewthread', 1, '', $thread['tid']) : "forum.php?mod=viewthread&tid=$thread[tid]")."/n".

" /n".

" ".dhtmlspecialchars($thread['forum'])."/n".

" ".dhtmlspecialchars($thread['author'])."/n".

($attachfile ? '' : '').

" ".gmdate('r', $thread['dateline'])."/n".

" /n";

然后刷新即可看到效果

以上就是本文章的内容,希望对大家有所帮助

本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/jianzhan/jingyan/19148.html
上一篇phpcms v9通过$CATEGORYS调用当前栏目数据的方法
下一篇 discuz教程:制作门户的百度sitemap的方法
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部