Home >Backend Development >PHP Tutorial >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 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