Hi Im trying to use vsa donate add on and have changed vBExperience VSa PayPal Donate to
PHP Code:
if ($DoDebug==1) echo "<br/>VSa PayPal Donate - Attachments";
if ($user['usergoupid'] != "55" or $user['usergoupid'] != "56" )
{
$attq = $vbulletin->db->query_read("SELECT
SUM(amount) as myamount
FROM " . TABLE_PREFIX . "vsa_ppdonate
WHERE confirmed=1 AND userid=".$user['userid']."
GROUP BY userid
");
if ($vbulletin->db->num_rows($attq) > 0 )
{
$att = $vbulletin->db->fetch_array($attq);
$xperience['count_user_vppd'] = $att['myamount'] * $vbulletin->options['xperience_points_vppd'];
$xperience['count_user'] += $xperience['count_user_vppd'];
}
}
I'm trying to exclude a user group or two from getting points for donations. but this does not seem to work can anyone give me a few more pointers please.