首先找到需要修改的地方,先从会员发布文章开始,找到 member/article_add.php
! Y4 v3 t7 N# C4 m5 k3 ~找到以下代码
: \0 k* ~' N" N: j: ~0 |/ k. f//保存到主表
* x% t+ E u+ v2 W3 r; W- d W" y) z$ L' A c; b) h
- $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) ; S# n3 f D8 c" L0 |; b6 h/ c. w
- VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle',
) e) S a, n2 U - '$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); ";
8 W$ c s7 F( o4 I2 h7 N6 F |
' j) y1 _9 f8 l, W8 x5 Q9 n/ T更改为
% N% c1 [7 Z0 z9 m4 l% f8 G; _//保存到主表
% m2 Q) P) y# Z
$ Q- \$ b4 i3 B) J/ t6 x- $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)
; `! k9 B& M. b) k9 a1 k - VALUES ('$arcID','$typeid','$sortrank','$flag','-1','$channelid','$arcrank','0','$money','$title','$shorttitle',
& M7 y% z5 @; ~& S7 T1 P - '$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); ";
- B4 E' ~$ _0 P' {* {, O, h
| - O7 b1 T) B% z
保存后上传至空间覆盖即可,以后会员发表的文章只需要审核,不需要再一处一处的修改了。- J) m& p; K# Y& y8 @
接下来是采集,同上,找到 你的后台目录/co_export.php
) w- ] X% K3 v8 F& K& s7 e; R找到以下代码
$ w$ T; T8 g5 k/ L6 B2 C+ _//基本信息主表
) }. `) q- I9 D2 J1 U8 W6 V8 b5 z! r2 k0 A& j$ j0 U$ p1 Q
- $mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) " a( O: |1 _5 Q& S( N$ ~* @
- VALUES ('@aid@','@typeid@','@sortrank@','@flag@','0','$channelid','$arcrank','0','0','@title@','','','@writer@','@source@','@litpic@','@pubdate@','@senddate@','$adminid','@description@','@keywords@'); ";& ?3 h* b r% C& R T8 h
| $ b* L- S2 E1 a6 v/ D5 ]6 r
替换为4 l0 W9 ~" u% T3 ` v1 P
//基本信息主表 ) n8 s3 @. Z% S3 j; F$ H* \
6 {0 g. Y0 }, n. o. l( n: r) e- $mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) n) r+ _+ O9 {- u
- VALUES ('@aid@','@typeid@','@sortrank@','@flag@','-1','$channelid','$arcrank','0','0','@title@','','','@writer@','@source@','@litpic@','@pubdate@','@senddate@','$adminid','@description@','@keywords@'); ";
0 c3 v/ v6 {1 A8 a3 `
|
3 [/ y" q! k: yOK,大功告成。以后不用再麻烦的修改了。
$ O9 R8 r, D' T; j+ G感谢大家的支持,本文为原创,转载请申明。原文地址:http://www.iii28.com/view-154-1.html$ e( n/ g; d/ [; E' {5 L* m7 q1 _
注:相关网站建设技巧阅读请移步到建站教程频道。 |
|