Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
464 views
in Themes by
Please, i need your help
Q2A version: 1.8

1 Answer

+1 vote
by

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;

}

...