Pages: [1]   Go Down
  Print  
Author Topic: SDR 3 listing giving the wrong number of referrals on purchase page  (Read 399 times)
757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« on: January 14, 2012, 12:52:08 PM »

The is a bug on the prices page as it list the wrong number of referrals that are avaiable to be sold.

Go to the prices.php file, lines 356 to 360, look for this group of codes:

$sql=$Db1->query("SELECT userid FROM user WHERE last_act>='".(time()-$timeR)."' and coclicks>='$settings[orphan_clicks]' and refered=''");
         $total=$Db1->num_rows();
         
         $sql=$Db1->query("SELECT userid FROM user WHERE refered='' and username!='$username'");
         $totalrefsavailable=$Db1->num_rows();

Change line 359 to be this:

$sql=$Db1->query("SELECT userid FROM user WHERE refered='' last_act>='".(time()-$timeR)."' and coclicks>='$settings[orphan_clicks]' and username!='$username'");
Logged

Upgrade to an SDR 3
ayman20068
Sr. Member
****
Offline Offline

Posts: 265


Offline Thursdays , Fridays


View Profile
« Reply #1 on: January 14, 2012, 02:03:16 PM »

 Grin you mean

$sql=$Db1->query("SELECT userid FROM user WHERE refered='' and last_act>='".(time()-$timeR)."' and coclicks>='$settings[orphan_clicks]' and username!='$username'");

you forgot little and  Wink i think
Logged

amidamaru34
Jr. Member
**
Offline Offline

Posts: 59


View Profile
« Reply #2 on: January 16, 2012, 10:58:23 AM »

ayman20068 is right
« Last Edit: January 16, 2012, 11:02:03 AM by amidamaru34 » Logged
Buxxer
Newbie
*
Offline Offline

Posts: 34


View Profile
« Reply #3 on: March 18, 2012, 08:56:55 PM »

I followed this instructions and still get this bug. Don't think I'm too stupid...

Can someone send me the prices.php file with the bug fixed?
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: