Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to isolate point user dan bonus points ? I wanna add in other line

0 votes
asked Oct 8 in Themes by taufik7000
Please, i need your help
Q2A version: 1.8

1 Answer

+1 vote
answered Oct 8 by esqeudero

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 = #",



return $record;