首先找到需要修改的地方,先从会员发布文章开始,找到 member/article_add.php
# m: D3 J$ _ [. e: O# \1 S找到以下代码, V8 U: R3 z% t+ l0 {; X/ J
//保存到主表 ' X% A/ j$ I m1 Z% g+ X
3 Q% J5 c: L( L0 h% b- $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)
' M3 v, X, |1 H - VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle',
& d* f' L1 L7 w: N: c! ]! R - '$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); ";
& Q" ~ D9 G8 i
|
, t0 N0 ~; U R; q+ ^$ [( l更改为: S6 u: G/ `1 D4 P) F) I; F; h; j$ N
//保存到主表 * B( ^3 j5 U) L) i+ h7 A& s# L
$ r! \3 K; ^; A; }0 p/ w" s* [- $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)
$ [0 D4 Z* \8 f- t' w - VALUES ('$arcID','$typeid','$sortrank','$flag','-1','$channelid','$arcrank','0','$money','$title','$shorttitle',
3 W9 l6 W! R+ C/ G& O X: R$ k7 S% Y2 ^ - '$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); ";
5 B& e5 y9 x" ?0 t! ~! C" t" R8 {, |- ?
|
! s4 q! Z5 E2 G- o/ S! W: f" R保存后上传至空间覆盖即可,以后会员发表的文章只需要审核,不需要再一处一处的修改了。
7 R8 N. l2 p/ B接下来是采集,同上,找到 你的后台目录/co_export.php" m5 g9 p; Q7 }7 S; _: }
找到以下代码1 o" ]3 v1 s- V: j
//基本信息主表
2 o$ l3 h- M9 S3 J' f1 k8 {$ m
+ B& J; b7 f' k3 D3 q( l/ _0 `+ k- $mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords)
8 K+ t c x* e1 D. S, u - VALUES ('@aid@','@typeid@','@sortrank@','@flag@','0','$channelid','$arcrank','0','0','@title@','','','@writer@','@source@','@litpic@','@pubdate@','@senddate@','$adminid','@description@','@keywords@'); ";' c+ v: X$ o# }. I/ Q7 w/ [. O1 Y
| ) }6 d: B7 i Y7 z
替换为
: C H# f; {' |$ S( R8 [//基本信息主表 & @6 k# P; ^( T! Y- C
# i# ^) ^" S# M
- $mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) ! x" [5 ~4 K- T' l* ?
- VALUES ('@aid@','@typeid@','@sortrank@','@flag@','-1','$channelid','$arcrank','0','0','@title@','','','@writer@','@source@','@litpic@','@pubdate@','@senddate@','$adminid','@description@','@keywords@'); ";
. U' F, G2 O: n2 ~ | 5 M1 b6 S/ `6 \0 \3 s
OK,大功告成。以后不用再麻烦的修改了。. [5 q6 [: n7 L/ f
感谢大家的支持,本文为原创,转载请申明。原文地址:http://www.iii28.com/view-154-1.html) X1 ~ x+ `2 Q& N- ~
注:相关网站建设技巧阅读请移步到建站教程频道。 |
|