discuz rss全文输出教程

某功能需要得到discuz的rss。经过在discuz官网上查询找到了discuz ?rss订阅的效果。但是不是全文输出的。纠结了很久在官网问?也没人回答,最好还是求助度娘,度娘很给力,结果真找出来?了。现在把方法给大家说下找到文件:

sourcemoduleforumforum_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”;。

经过本博主测试确实可行。

 

 

 

 

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 共1条

    暂无评论内容