How can I add points directly to the User Points database? I have a quiz site and would like to use the User Points module to store quiz scores, instead of creating something from scratch. I have created a taxonomy "Quiz" for such points. 

Every quiz ends by showing the score made (between 0 to 100 depending on how many answers they got right). I would like to go on and store this in the userpoint database.

I am using the following code but m getting 2 error messages:


  Notice: Undefined variable: user in ...
  Notice: Trying to get property of non-object in .... 


The code I am using is the following one:

$params = array (
  'uid' =&gt; $user-&gt;uid,
  'description' =&gt; 'Totals points from quizes',
  'points' =&gt; $percentage,
  'tid' =&gt;127,
);

userpoints_userpointsapi($params);



Question: Can a heavy key-chain damage your ignition?
Answer: I worked on VWs and Audis for a while, we had some mkIV's like yours with worn out ignition switches from heavy key rings. My advice is to keep the weight of the key ring to something reasonable.