亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        dedecms教程:添加rss訂閱功能

        字號(hào):


            小編安裝好 dedecms 后,點(diǎn)擊左上角的 rss 功能,發(fā)現(xiàn)404錯(cuò)誤,進(jìn)入后臺(tái)目錄一看,發(fā)現(xiàn) rss 文件根本不存在,所以我們要自己給 dedecms 添加 rss 訂閱功能。
            新建rss.php傳到根目錄:
            <?php 
            require_once (dirname(__file__) . /include/common.inc.php); 
            require_once dedeinc./arc.partview.class.php; 
            $pv = new partview(); 
            $pv->settemplet($cfg_basedir . $cfg_templets_dir . /default/rssmap.htm); 
            header(content-type:application/xml); 
            $pv->display(); 
            ?> 
            新建rss.htm傳至/templates/default目錄下:
            <?xml version=1.0 encoding=utf-8 ?> 
            <rss version=2.0> 
            <channel> 
            <title>{dede:global.cfg_webname/}</title> 
            <link>{dede:global.cfg_basehost/}</link> 
            <description>{dede:global.cfg_description/}</description> 
            <language>zh-cn</language> 
            <generator>{dede:global.cfg_webname/}</generator> 
            <webmaster>{dede:global.cfg_adminemail/}</webmaster> 
            {dede:arclist row='20' col='1' titlelen='100' orderby='pubdate'} 
            <item> 
            <link>http://down.chinaz.com[field:arcurl/]</link> 
            <title><![cdata[[field:title function='html2text(@me)'/]]]></title> 
            <author>[field:writer/]</author> 
            <category>[field:typename/]</category> 
            <pubdate>[field:pubdate function='strftime(%a, %d %b %y %h:%m:%s +0800,@me)'/]</pubdate> 
            <guid>http://down.chinaz.com[field:arcurl/]</guid> 
            <description><![cdata[[field:description function='html2text(@me)'/]...]]></description> 
            </item> 
            {/dede:arclist} 
            </channel> 
            </rss> 
            把域名改成你的域名,另外在后臺(tái) -> 模板管理 -> head.htm 里面修改rss鏈接為:http://域名/rss.php。
            到此,我們就實(shí)現(xiàn)了dedecms rss訂閱的功能了。這里小編提醒站長(zhǎng),一個(gè)良好的網(wǎng)站應(yīng)該有訂閱的功能,rss訂閱或者郵件訂閱都是一個(gè)不錯(cuò)的選擇,不僅可以增強(qiáng)用戶(hù)體驗(yàn),而且對(duì)網(wǎng)站的結(jié)構(gòu)也很有好處。