Chinaunix首页 | 论坛 | 博客
  • 博客访问: 191075
  • 博文数量: 223
  • 博客积分: 8190
  • 博客等级: 中将
  • 技术积分: 2410
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-01 07:04
文章分类

全部博文(223)

文章存档

2012年(20)

2011年(203)

我的朋友

分类: BSD

2011-08-25 17:06:48

核心提示:织梦会员发表文章、采集文章设置默认为动态浏览,首后找到需要修改的地方,后从会员发布文章开端,找到 member/article_add.php,保存后上传至空间覆盖即可,以后会员发表的文章只需要审核,不需要再一处一处的修改了。 接下去是采集,同上,找到 你的后台目录/co_export

首后找到需要修改的地方,后从会员发布文章开端,找到 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,大功告成。以后不用再麻烦的修改了。

感谢大家的支持,本文为原创,转载请申明。原文地址:


66互联
EndTo:优化有技巧 网站SEO过程中的经验分享
地方区域网站的发展模式 以校园为中心辐射城市
阅读(415) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~