Home  >  Article  >  Backend Development  >  How to cancel points and user login verification in dedecms question and answer system_PHP tutorial

How to cancel points and user login verification in dedecms question and answer system_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:53:51720browse

How to cancel points and user login verification in dedecms Q&A system
/*
Now I want to use dedecms to create a question and answer function. The function does not require users to log in and can ask questions. Because questions require points, I canceled both login and points.
Found
Open the post.php tutorial file and find

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


The code is filtered out. This is the login verification. If you ask questions like this, don’t log in. Cancel the points below
Found

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

It’s OK to delete it, so your dedecms can be logged in or published directly.

Original tutorials on this site are reproduced from www.bKjia.c0m

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632368.htmlTechArticlededecms Q&A system how to cancel points and user login verification/* Now I want to use dedecms to make a Q&A function, function It does not require users to log in and ask questions, because questions need to be accumulated...
Statement:
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