分类分类
更新时间:2026-08-08 19:05:42作者:fang
打开 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 " <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";
然后刷新即可看到效果
以上就是本文章的内容,希望对大家有所帮助
相关
星球小队策略游戏316.49 MBv1.15.366.638912026-08-08
下载超市大亨3D经营养成253.14 MBv10.252026-08-08
下载绝世武林角色扮演453.09 MBv1.8.14162026-08-08
下载Crush Crush手机版经营养成124.86 Mv0.4482026-08-08
下载消消大亨经营养成13.56 Mv1.0.02026-08-08
下载endacopia手机版冒险游戏1.43Gv1.0.02026-08-08
下载最强帮主角色扮演143.91 MBv9991.12026-08-08
下载战西游手游折扣版策略游戏13.77 MBv1.02026-08-08
下载富豪物语创业时代官方版经营养成215.01 Mv3.0.12026-08-08
下载咒术回战爱憎乱斗手游动作射击291.7 Mv1.0.02026-08-08
下载三国吧兄弟折扣版策略游戏380.04 MBv1.0.02026-08-08
下载代号97动作射击277.47 Mv1.0.72026-08-08
下载










