织梦允许不同会员发布相同的文章,不允许同一会员发布重复的文章

1:打开文件 member/inc/archives_check.php 

找到如下代码:

//检测文档是否重复 
if($cfg_mb_cktitle=='Y') 
{ 
    $row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' "); 
    if(is_array($row)) 
    { 
        ShowMsg("对不起,请不要发布重复文档!","-1","0",5000); 
        exit(); 
    } 
} 

织梦允许不同会员发布相同的文章,不允许同一会员发布重复的文章

2:修改代码

$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' "); 


修改为

$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' and mid = '".$cfg_ml->M_ID."'");


经实践正确!