Dedecms question and answer system how to cancel points and user login verification
/*
Now I want to use DEDECMS to do a question and answer function, the function is no need to login and can ask questions, because the problem needs to be integral so I put the point and points are canceled.
Found it
post.php Tutorial file opens and finds
if (!isset ($action)) $action = ';
if (Empty ($uid) && $action! = ' rate ')
{
Showmsgs (' No_login ', ' ... /member/login.php?gourl=. /ask/');
Exit
}
Code filter out, this is the login verification, so ask not to login, the following cancellation points
Found it
$needscore = $anonymous * + $reward;
if ($scores < $needscore)
{
Showmsgs (' Noscore ', '-1 ');
}
Delete is OK, so your dedecms can be landed can also be published directly Oh.
This site original tutorial reproduced annotated from www.bKjia.c0m
http://www.bkjia.com/PHPjc/632368.html www.bkjia.com true http://www.bkjia.com/PHPjc/632368.html techarticle dedecms question and answer system how to cancel points and user login verification/* Now I want to use DEDECMS to do a question and answer function, the function is no need to login and can ask questions, because the problem needs to accumulate ...