首先找到需要修改的地方,先从会员发布文章开始,找到 member/article_add.php
: ~3 m/ ?: J O; r9 [% a/ _找到以下代码
4 h# U: Z3 Q1 b//保存到主表
$ `! S& F# g0 M- l. ]/ X, S, ?) L5 V* a! u2 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)
6 n% ~2 {1 [: N4 W( R' d - VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle', 9 P) C5 e* _2 c2 s# y0 q
- '$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); ";
9 ]6 Q7 [, Y$ ~; @- c1 n |
8 A0 `/ B& U7 }6 t更改为
4 n+ g7 h( l# }/ n6 S//保存到主表 / c; A5 }! n$ x( z( K, B7 q+ Q, H
& p8 ]/ u6 `$ U' J @6 I5 M
- $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) ( g% P6 F. u9 e V( G& }* u8 _
- VALUES ('$arcID','$typeid','$sortrank','$flag','-1','$channelid','$arcrank','0','$money','$title','$shorttitle', 7 g& S( p3 O ^+ z5 @3 G3 P8 l l
- '$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); ";2 y- q& R- c) k- X2 b1 o7 O
| 7 u2 t- B2 t. K
保存后上传至空间覆盖即可,以后会员发表的文章只需要审核,不需要再一处一处的修改了。
2 s+ M" ?: c6 O. K4 c, A3 {接下来是采集,同上,找到 你的后台目录/co_export.php
7 [+ w& f0 u5 m找到以下代码3 `1 i/ j1 Z9 ^( I9 L1 X
//基本信息主表 % x! s% I& F# V6 x- j. d
; d4 n5 m y; w/ v
- $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% z+ Z8 V0 ?* \: G - VALUES ('@aid@','@typeid@','@sortrank@','@flag@','0','$channelid','$arcrank','0','0','@title@','','','@writer@','@source@','@litpic@','@pubdate@','@senddate@','$adminid','@description@','@keywords@'); ";
& @+ m9 B1 a, X8 o/ z | 0 C0 `8 [1 A' K% _0 H
替换为" A. B& L7 }4 m1 a, G8 N0 f3 I
//基本信息主表 ( z5 Z+ y( A9 H7 N c1 H0 P
4 U# V" p# Q2 D: p4 B- $mainSqlTemplate = "INSERT INTO `$maintable`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) ; q7 J8 x8 F4 ~& S. A4 K o) A
- VALUES ('@aid@','@typeid@','@sortrank@','@flag@','-1','$channelid','$arcrank','0','0','@title@','','','@writer@','@source@','@litpic@','@pubdate@','@senddate@','$adminid','@description@','@keywords@'); ";
8 Z( k6 {2 _! n! O' `
| " @# i" K6 q+ M. p' O
OK,大功告成。以后不用再麻烦的修改了。
' p) \# |, h. Y, ?感谢大家的支持,本文为原创,转载请申明。原文地址:http://www.iii28.com/view-154-1.html
1 {6 X; x- I3 { ] 注:相关网站建设技巧阅读请移步到建站教程频道。 |
|