修正KingCMS xml地图bug

CMS与SEO 04-26 阅读:212 评论:0

继续KingCMS的bug修正。。痛苦ing


5.修正xml地图的生成

'                outmap=outmap&"<url>"
'                outmap=outmap&"<loc>"&getpath(data(2,i),0,king.siteurl&king.inst&listpath&"/"&data(1,i))&"</loc>"
'                outmap=outmap&"<lastmod>"&formatdate(data(0,i),1)&"</lastmod>"
'                outmap=outmap&"<priority>"&formatnumber((data(4,i)+data(5,i)+2)/4,1,true)&"</priority>"
'                outmap=outmap&"</url>"
                outmap=outmap&"<url>"
                outmap=outmap&"<loc>"&getpath(data(2,i),0,king.siteurl&king.inst&listpath&"/"&data(1,i))&"</loc>"
                outmap=outmap&"<lastmod>"&formatdate(data(0,i),"yyyy-MM-dd")&"</lastmod>"
                outmap=outmap&"<priority>"&formatnumber((data(4,i)+data(5,i)+2)/4,1,true)&"</priority>"
                outmap=outmap&"<changefreq>daily</changefreq>"
                outmap=outmap&"</url>"
                '上面修改的网站地图的生成。by何苦

 

貌似OO模块的这部分代码跟Article模块的这部分代码是相同的。

 

直接搜索 <lastmod>找到的这部分代码。在 page/module/fun.asp里边的。

 

替换即可。

用来修正Google提示的xml地图日期不正确的错误。