导读:本日想在网站上添加游客投稿功能,于是就研究了一下织梦的代码,实现dede游客投稿相当简单,只用屏蔽掉几行代码就可以了... member arti
本日想在网站上添加游客投稿功能,于是就研究了一下织梦的代码,实现dede游客投稿相当简单,只用屏蔽掉几行代码就可以了...
/member/article_add.php
/member/article_add_action.php
/member/archives_addcheck.php
1、把前两个文件里面的引用,注释失落:
//CheckRank(0,0);
2.、把/member/article_add_action.php里的引用,注释失落:
//if($cInfos['sendrank'] > $cfg_ml->M_Type){
//$row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendran/k']."' ");
//$dsql->Close();
//ShowMsg("对不起,必要[".$row['membername']."]才能在这个频道发布文档!","-1","0",5000);
//exit();
//}
一上的是以前年夜家都知道的.
3、最后/member/archives_addcheck.php文件中 还有个品级验证引用,注释掉:
//if($cInfos['sendrank'] > $cfg_ml->M_Type){
//$row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' ");
//$dsql->Close();
//ShowMsg("对不起,必要 [".$row['membername']."] 才能在这个频道发布文档!","-1","0",5000);
//exit();
//}
ok,旅客可以投稿了.