織夢DedeCMS允許不同會員發(fā)布相同文章,不允許同一會員發(fā)布重復(fù)文章的方法:
打開 /member/inc/archives_check.php 文件
找到
//檢測文檔是否重復(fù)
if($cfg_mb_cktitle=='Y')
{
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' ");
if(is_array($row))
{
ShowMsg("對不起,請不要發(fā)布重復(fù)文檔!","-1","0",5000);
exit();
}
}
將
$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."'");