Home > php教程 > php手册 > dedecms 问答系统如何取消积分与用户登陆验证

dedecms 问答系统如何取消积分与用户登陆验证

WBOY
Release: 2016-06-13 09:54:44
Original
1129 people have browsed it

dedecms 问答系统如何取消积分与用户登陆验证
/*
现在我要用dedecms来做一个问答功能,功能是不需要用户登陆并可以提问,因为问题时需要积分所以我把登际与积分都取消了。
找到
post.php教程文件打开并找到

if(!isset($action)) $action = '';
if(empty($uid) && $action != 'rate')
{
 showmsgs('no_login','../member/login.php?gourl=../ask/');
 exit;
}


代码过滤掉,这是就是登陆验证,这样提问就不要登陆了,下面取消积分
找到

 $needscore = $anonymous * 10 + $reward;
 if($scores  {
  showmsgs('noscore','-1');
 }

删除就ok了,这样你的dedecms可登陆也可以以直接发布哦。

本站原创教程转载注明来源于www.bKjia.c0m

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template