东莞长安哪里淘宝培训

destoon禁止同一个会员发布重复信息

已供应为例子:打开文件module/sell/sell.class.php 在代码function pass($post)前面增加一个title_exists函数: function title_exists($title) { $condition = "title='$title'"; return $this->db->get_one("SELECT itemid FROM {$this->table} WHERE $condition"); } 在if($post['totime'])这前面添加 if(strlen($post['title']) < 3) return $this->_(lang('message->pass_title')); if(!$this->itemid && $this->title_exists($post['title'])) return $this->_(lang('message->pass_chongfu')); 最后在找到lang\zh-cn\message.inc.php添加一行$L['pass_chongfu'] = '标题重复请重新填写';

分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
前一篇:网络营销定位分析的8个体系,你的企业做到了几个? 后一篇:手机网站如何针对百度做SEO优化工作?
标签:
分类:东莞网站设计与美工荟萃| 发布:admin| 查看: | 发表时间:2014-3-28
原创文章如转载,请注明:转载自东莞电子商务 http://www.gdhaoyou.com/
本文链接:http://www.gdhaoyou.com/post/cfxx.html

相关文章

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。