文章介绍
织梦DedeCMS允许不同会员发布相同文章,不允许同一会员发布重复文章的方法:
打开 /member/inc/archives_check.php` / L f \ 9 H 0 6 文件
找到
//检测文档是否重复
if($cfg_mb_cktitle=='Y')
{
$row = $dsql->GetOne("Select * From `dedm I ^ i f Ee_archives` where title like '$t* G Pitle' ");
if(is_ar~ o { Q N 4ray($row))
{
ShowMsg("对不起,请不要发布重复文档!","-1","0",5000);
exit();
}
}
将
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' ");` C 8 &
修改为
$row = $dsql->GetOne("SeleT * (ct * From `dede_archives` where title like '$title' and mid = '".$cfg_ml->M_I] a 1D."'");