/member/article_add_action.php
/member/archives_addcheck.php
1、把前两个文件里面的
Quote:
注释掉
//CheckRank(0,0);
2.、把/member/article_add_action.php里的
Quote:
注释掉
//if($cInfos['sendrank'] > $cfg_ml->M_Type){
//$row = $dsql->GetOne("Select membername From dede_arcrank where rank='".$cInfos['sendran/k']."' ");
//$dsql->Close();
//ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档!","-1","0",5000);
//exit();
//}
一上的是以前大家都知道的。
3、最后/member/archives_addcheck.php文件中 还有个等级验证
Quote:
注释掉
//if($cInfos['sendrank'] > $cfg_ml->M_Type){
//$row = $dsql->GetOne("Select membername From dede_arcrank where rank='".$cInfos['sendrank']."' ");
//$dsql->Close();
//ShowMsg("对不起,需要 [".$row['membername']."] 才能在这个频道发布文档!","-1","0",5000);
//exit();
//}
ok,游客可以投稿了。
游客上传附件 首先修改
[ post]
1
include/dialoguser/config.php
//检验用户登录状态
Quote:
$cfg_ml = new MemberLogin();
/*if(!$cfg_ml->IsLogin())
{
$gurl = $cfg_memberurl."/login.php?gourl=".urlencode($dedeNowurl);
echo "<script language='javascript'>location='$gurl';</script>";
exit();
}
*/
2
include/inc_memberlogin.php
Quote:
/*function CheckUserSpace($uid){
global $cfg_mb_max,$dsql;
if(!is_object($dsql)) $dsql = new DedeSql(false);
$hasuse = GetUserSpace($uid,$dsql);
$maxSize = $cfg_mb_max * 1024 * 1024;
if($hasuse >= $maxSize){
$dsql->Close();
ShowMsg('你的空间已满,不允许上传新文件!','-1');
exit();
}
}
*/
3
include/FCKeditor/editor/dialog/imageuser.php
Quote:
/*CheckUserSpace($cfg_ml->M_ID);*/
Quote:
/*$savepath = $cfg_user_dir."/".$cfg_ml->M_ID;*/
[/post]
辛苦找了2小时的文件才搞定的
新闻热点
疑难解答