分类: BSD
2011-08-25 17:06:48
首后找到需要修改的地方,后从会员发布文章开端,找到 member/article_add.php
找到以下代码
//保存到主表
$inQuery = "INSERT INTO `cz_archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle, color,writer,source,litpic,pubdate,senddate,mid,description,keywords,mtype) VALUES ("$arcID","$typeid","$sortrank","$flag","$ismake","$channelid","$arcrank","0","$money","$title","$shorttitle", "$color","$writer","$source","$litpic","$pubdate","$senddate","$mid","$description","$keywords","$mtypesid"); ";
更改为
//保存到主表
$inQuery = "INSERT INTO `cz_archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle, color,writer,source,litpic,pubdate,senddate,mid,description,keywords,mtype) VALUES ("$arcID","$typeid","$sortrank","$flag","-1","$channelid","$arcrank","0","$money","$title","$shorttitle", "$color","$writer","$source","$litpic","$pubdate","$senddate","$mid","$description","$keywords","$mtypesid"); ";
保存后上传至空间覆盖即可,以后会员发表的文章只需要审核,不需要再一处一处的修改了。
接下去是采集,同上,找到 你的后台目录/co_export.php
找到以下代码
//基本消息主表
$mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) VALUES ("@aid@","@typeid@","@sortrank@","@flag@","0","$channelid","$arcrank","0","0","@title@","","","@writer@","@source@","@litpic@","@pubdate@","@senddate@","$adminid","@description@","@keywords@"); ";
替换为
//基本消息主表
$mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) VALUES ("@aid@","@typeid@","@sortrank@","@flag@","-1","$channelid","$arcrank","0","0","@title@","","","@writer@","@source@","@litpic@","@pubdate@","@senddate@","$adminid","@description@","@keywords@"); ";
OK,大功告成。以后不用再麻烦的修改了。
感谢大家的支持,本文为原创,转载请申明。原文地址: