Pages: [1]   Go Down
  Print  
Author Topic: Fix for Aurora: Click bonus not working correctly  (Read 211 times)
757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« on: September 23, 2011, 10:13:17 PM »

We have found some errors created when the daily click bonus was rewritten to no longer run through the site settings.

This fix as been added to the SDR 3 October 1, 2011 Update.

1st item to fix:
Go to your members/contest.php file around lines 108 and add what has been added in bold:

if($settings[cbonus_on]==1) {

    $sqlw=$Db1->query("SELECT * FROM cbs WHERE id='1'");
    $tempw = $Db1->fetch_array($sqlw);

  
    $sqlz=$Db1->query("SELECT * FROM specials WHERE cbonus='1'");
    $tempb = $Db1->fetch_array($sqlz);

    $sqlh=$Db1->query("SELECT * FROM special_benefits WHERE special='$tempb[id]'");
    while($tempz = $Db1->fetch_array($sqlh)) {
        $benefits_speciallist.="

Now go down to line 129 and make it look like this (what is in bold is what changed)

<p>Each day, the members who have clicked <b>at least $tempw[macbonus] ads</b> will receive as follows:

2nd item to fix:
Now you will want to go to your members/profile file to update some of the settings there so the members can see the number of clicks required to get the bonus:

go to line 280, change this line:

$remainads=$settings[min_ads_cbonus]-$thismemberinfo[viewz];

to this, add what is in bold:

$sqlw=$Db1->query("SELECT * FROM cbs WHERE id='1'");
$tempw = $Db1->fetch_array($sqlw);


$remainads=$tempw[macbonus]-$thismemberinfo[viewz];

now go down to lines 619 to 634 and make it look like this (what is in bold has changed):

".iif($settings[cbonus_on]==1,"
                     <tr>
                        <td colspan=2 class=\"tableHead\"><b>Daily Click Status (PTC, PTR, xChange & eMails)</b></td>
                     </tr>
                     <tr>
                        <td>Total Ads Count: </td>
                        <td>$tempw[tads]</td>
                     </tr>
                     <tr>
                        <td>Min Ads to Click: </td>
                        <td>$tempw[macbonus]</td>
                     </tr>
                     <tr>
                        <td>Your total click Today: </td>
                        <td>$thismemberinfo[viewz]</td>
                     </tr>

3rd item to fix:
Now we go to the actual working of the bonus, go to your source/clicking/verifyClick.php file lines 158 and make it look like this (what is in bold is what was added or changed):

$sqlw=$Db1->query("SELECT * FROM cbs WHERE id='1'");
$tempw = $Db1->fetch_array($sqlw);


$sqll=$Db1->query("SELECT viewz,cbonus FROM user WHERE username='$username'");
   $checkusr = $Db1->fetch_array($sqll);
   if(($checkusr[viewz] >= $tempw[macbonus]) and ($settings[cbonus_on] == 1) and ($checkusr[cbonus] == 0)) {
      $sqlh=$Db1->query("SELECT * FROM special_benefits WHERE special='$settings[cbonus]'");
      while($bonus = $Db1->fetch_array($sqlh)) {
         $sqls=$Db1->query("UPDATE user SET $bonus[type]=$bonus[type]+$bonus[amount], cbonus='1' WHERE username='$username'");
      }
  }
« Last Edit: September 24, 2011, 09:38:03 AM by 757jterrell » Logged

Upgrade to an SDR 3
Buy4Less
SDR Reseller
Jr. Member
***
Offline Offline

Posts: 50


Scripts, Premade Website & Low Cost Hosting


View Profile WWW
« Reply #1 on: September 23, 2011, 10:20:10 PM »

Thanks for your help & support John

Buy4Less
Logged

Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: [1]   Go Up
  Print  
 
Jump to: