国产欧美二区三区-国产欧美高清-国产欧美国产精品第二区-国产欧美国产精品第一区-小说区 图片区-小说区 综合区 都市激情

當前位置: 首頁 > 站長資訊 > 正文頁面

discuz教程:修改論壇的rss為全文輸出的方法

打開 /source/module/forum/forum_rss.php 文件78i網站目錄_網站網址收錄與提交入口

找到78i網站目錄_網站網址收錄與提交入口

if($attachfile) {78i網站目錄_網站網址收錄與提交入口

if($attachremote) {78i網站目錄_網站網址收錄與提交入口

$filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attachfile;78i網站目錄_網站網址收錄與提交入口

} else {78i網站目錄_網站網址收錄與提交入口

$filename = (!strstr($_G['setting']['attachurl'], '://') ? $_G['siteurl'] : '').$_G['setting']['attachurl'].'forum/'.$attachfile;78i網站目錄_網站網址收錄與提交入口

}78i網站目錄_網站網址收錄與提交入口

}78i網站目錄_網站網址收錄與提交入口

在其下方加入78i網站目錄_網站網址收錄與提交入口

$fdata = DB::fetch_first("SELECT * FROM ".DB::table('forum_post')." WHERE tid = '$thread[tid]' and first = 1");78i網站目錄_網站網址收錄與提交入口

將其下方的這段話:78i網站目錄_網站網址收錄與提交入口

echo " <item>/n".78i網站目錄_網站網址收錄與提交入口

" <title>".$thread['subject']."</title>/n".78i網站目錄_網站網址收錄與提交入口

" <link>$_G[siteurl]".($trewriteflag ? rewriteoutput('forum_viewthread', 1, '', $thread['tid']) : "forum.php?mod=viewthread&tid=$thread[tid]")."</link>/n".78i網站目錄_網站網址收錄與提交入口

" <description><![CDATA[".dhtmlspecialchars($thread['description'])."]]></description>/n".78i網站目錄_網站網址收錄與提交入口

" <category>".dhtmlspecialchars($thread['forum'])."</category>/n".78i網站目錄_網站網址收錄與提交入口

" <author>".dhtmlspecialchars($thread['author'])."</author>/n".78i網站目錄_網站網址收錄與提交入口

($attachfile ? '<enclosure url="'.$filename.'" length="'.$attachsize.'" type="image/jpeg" />' : '').78i網站目錄_網站網址收錄與提交入口

" <pubDate>".gmdate('r', $thread['dateline'])."</pubDate>/n".78i網站目錄_網站網址收錄與提交入口

" </item>/n";78i網站目錄_網站網址收錄與提交入口

修改為:78i網站目錄_網站網址收錄與提交入口

echo " <item>/n".78i網站目錄_網站網址收錄與提交入口

" <title>".$thread['subject']."</title>/n".78i網站目錄_網站網址收錄與提交入口

" <link>$_G[siteurl]".($trewriteflag ? rewriteoutput('forum_viewthread', 1, '', $thread['tid']) : "forum.php?mod=viewthread&tid=$thread[tid]")."</link>/n".78i網站目錄_網站網址收錄與提交入口

" <description><![CDATA[".dhtmlspecialchars($fdata['message'])."]]></description>/n".78i網站目錄_網站網址收錄與提交入口

" <category>".dhtmlspecialchars($thread['forum'])."</category>/n".78i網站目錄_網站網址收錄與提交入口

" <author>".dhtmlspecialchars($thread['author'])."</author>/n".78i網站目錄_網站網址收錄與提交入口

($attachfile ? '<enclosure url="'.$filename.'" length="'.$attachsize.'" type="image/jpeg" />' : '').78i網站目錄_網站網址收錄與提交入口

" <pubDate>".gmdate('r', $thread['dateline'])."</pubDate>/n".78i網站目錄_網站網址收錄與提交入口

" </item>/n";78i網站目錄_網站網址收錄與提交入口

然后刷新即可看到效果78i網站目錄_網站網址收錄與提交入口

  

此文由 網站目錄_網站網址收錄與提交入口 編輯,未經允許不得轉載!:

相關文章