You can define and use a custom function easily.
It should look like below.
function custom_userpoints_without_bonus($userid) { $record = qa_db_query_sub( "SELECT ABS(points - bonus) FROM ^userpoints WHERE userid = #", $userid ); return $record; }
function custom_userpoints_without_bonus($userid) {
$record = qa_db_query_sub(
"SELECT ABS(points - bonus)
FROM ^userpoints
WHERE userid = #",
$userid
);
return $record;
}
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.