5BL4VGwJ
织梦DedeCMS允许不同会员发布相同文章,不允许同一会员发布重复文章的方法: O3?3XB> <
打开 /member/inc/archives_check.php 文件 \Bg;^6U
找到 q,ry3Nr4n
//检测文档是否重复 ]6`]+&
if($cfg_mb_cktitle=='Y') cGevFlnh
{ B1EI'<S
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' "); X&B2&e;
if(is_array($row)) kIm)Um
{ AgOw{bJ%
ShowMsg("对不起,请不要发布重复文档!","-1","0",5000); _K4Igq
exit(); =F(fum;zH
} 6#,VnS)`q
} m&GxLT6
将 >)/,5VSE
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' "); WUVRwJ 5
修改为 -Y*"!8
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' and mid = '".$cfg_ml->M_ID."'");