Quote:
Originally Posted by 1hko
I have AW Coding credit system and this Modification. Everytime my members purchases a ticket for a raffle, I get the money but then it doesnt allow them to enter the raffle. :x
they keep getting
"You do not have any raffle tickets to enter this raffle.
Click HERE to purchase raffle tickets."
|
There is a confirmed bug in AW Coding's Credit Purchase System Lite.
I have been including a patch for this bug in the raffle install system for quite a while, but neglected to include it in version 1.2.6.
You can manually patch the Credit Purchase System files with this information..
Go to AdminCP->Plugins & Products->Plugin Manager
Locate AWCL- Units Updates and click Edit
In the plugin code, locate this code..
Code:
switch ( $vbulletin->options['cpsl_purchase_units'] ){
case 1:
$vbulletin->db->query_write("
UPDATE `$custom_table`
SET $custom_field = $custom_field + $units
WHERE $custom_user_field = ".$AWCL['IN']['userid']
);
break;
And replace with this code...
Code:
switch ( $vbulletin->options['cpsl_purchase_units'] ){
case 1:
$vbulletin->db->query_write("
UPDATE `".$vbulletin->options['cpsl_purchase_table']."`
SET ".$vbulletin->options['cpsl_purchase_field']." = ".$vbulletin->options['cpsl_purchase_field']." + $units
WHERE ".$vbulletin->options['cpsl_purchase_userfield']." = ".$AWCL['IN']['userid']
);
break;
Clicks SAVE
Locate AWCL- Trans delete and click Edit
In the plugin code, locate this code..
Code:
switch ( $vbulletin->options['cpsl_purchase_units'] ){
case 1:
$vbulletin->db->query_write("
UPDATE `$custom_table`
SET $custom_field = $custom_field - $units
WHERE $custom_user_field = ".$payment_info['userid']
);
break;
And replace with this code...
Code:
switch ( $vbulletin->options['cpsl_purchase_units'] ){
case 1:
$vbulletin->db->query_write("
UPDATE `".$vbulletin->options['cpsl_purchase_table']."`
SET ".$vbulletin->options['cpsl_purchase_field']." = ".$vbulletin->options['cpsl_purchase_field']." - $units
WHERE ".$vbulletin->options['cpsl_purchase_userfield']." = ".$AWCL['IN']['userid']
);
break;
Click SAVE
This patch was supplied by AWJunkies on 6/16/2011.