04-01-2020, 10:28 PM
I noticed that after the most recent update, premium accounts were not getting the set multiplier for points
I compared the OLD surf.php from 1.2.2 to surf.php in the new 1.3.0 release and found this difference (around line 59ish)
OLD:
NEW:
The part that says 'surf ratio premium' is no longer in the 1.3.0 version causing only 1 point to be awarded instead of the 3 i have set for my premium account
I found replacing that line entirely with the following seems to fix the error:
I hope this helps someone...
I compared the OLD surf.php from 1.2.2 to surf.php in the new 1.3.0 release and found this difference (around line 59ish)
OLD:
Code:
$points = ($data['premium'] == 0) ? $surfing_site['points'] * ($site['surf_ratio_free'] / 100) : $surfing_site['points'] * ($site['surf_ratio_premium'] / 100);
NEW:
Code:
$points = ($data['premium'] == 0) ? $surfing_site['points'] * ($site['surf_ratio_free'] / 100) : $surfing_site['points'];
The part that says 'surf ratio premium' is no longer in the 1.3.0 version causing only 1 point to be awarded instead of the 3 i have set for my premium account
I found replacing that line entirely with the following seems to fix the error:
Code:
$points = ($data['premium'] == 0) ? $surfing_site['points'] * ($site['surf_ratio_free'] / 100) : $surfing_site['points'] * ($site['surf_ratio_premium'] / 100);
I hope this helps someone...