Pages: [1]   Go Down
  Print  
Author Topic: FIX for Aurora SDR 3: Exchange Ads - surf error fix  (Read 671 times)
eecash
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: June 01, 2011, 07:46:27 PM »

Noticed this interesting error in the Exchange surf (on SDR3).  If a advertiser country targets an Exchange ad, the surf for the TE still tries to display that ad to a surf, regardless of the user's country.  Therefore, it displays an "Error - you cannot view this ad for this country" or something similar.

THIS IS FIXED IN THE 6-15-11 Update

To fix this, go to gpt.php in the main public_html or www folder and add this line anywhere between line 77 and 83.  EXAMPLE BELOW

before adding the fix
   $sql = $Db1->query("SELECT id FROM ".$adTables[$type]." WHERE
      credits>=1
      and active='1'
      and (daily_limit>views_today or daily_limit=0)
      and (upgrade='0' ".($thismemberinfo[type]==1?" or upgrade='1'":"").")
       ");

After adding the fix
   $sql = $Db1->query("SELECT id FROM ".$adTables[$type]." WHERE
      credits>=1
      and active='1'
      and (country='' or country='$thismemberinfo[country]')
      and (daily_limit>views_today or daily_limit=0)
      and (upgrade='0' ".($thismemberinfo[type]==1?" or upgrade='1'":"").")
       ");


This is only important if you use the Click Exchange.  

-----------------------------------

I am the admin of EarnEasyCash.info and from time to time I mess around with the scripts or help others.
« Last Edit: June 24, 2011, 02:45:56 PM by 757jterrell » Logged
Upgrade to an SDR 3
eecash
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #1 on: June 02, 2011, 04:04:07 PM »

If you have multi-country targetting, the edit will be

and (country='' or country like '%$thismemberinfo[country]%')

instead of

and (country='' or country= '$thismemberinfo[country]')
Logged
reider666
Full Member
***
Offline Offline

Posts: 190


View Profile
« Reply #2 on: June 15, 2011, 05:15:35 AM »

I add changes but still got error :  Error - We are really appologize, this ads not allowed to be viewed from your country!
Logged
Iriss
Newbie
*
Offline Offline

Posts: 26


View Profile WWW
« Reply #3 on: May 02, 2012, 07:36:17 PM »

I have this problem with exchange ads: I have there 5 ads (all are mine), 3 are for all countries, 2 are for CZ/SK only. Im CZ. I can see the 3 ads for all countries but I cant see the 2 CZ/SK ads, it returns me back to Earnings area. I tried it with another CZ account and its the same. I should see all ads because Im CZ.

And another problem: I should not see my own ads.

Any fix for this?
Logged


My own PTC! Need members! Free VIP Membership!
ayman20068
Sr. Member
****
Offline Offline

Posts: 261


Offline Thursdays , Fridays


View Profile
« Reply #4 on: May 11, 2012, 03:08:43 PM »

I have this problem with exchange ads: I have there 5 ads (all are mine), 3 are for all countries, 2 are for CZ/SK only. Im CZ. I can see the 3 ads for all countries but I cant see the 2 CZ/SK ads, it returns me back to Earnings area. I tried it with another CZ account and its the same. I should see all ads because Im CZ.

And another problem: I should not see my own ads.

Any fix for this?

please post the file named gpt.php

Quote
And another problem: I should not see my own ads.

that's not default thing in the script you need to modify your script for this , it's explained in this post :
http://auroraadmintraining.info/index.php/topic,596.0.html
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: