Pages: [1]   Go Down
  Print  
Author Topic: Need some help  (Read 254 times)
jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« on: January 23, 2012, 08:05:02 AM »

Some body told me there is a cron or something to stop members from seeing there own ads? Looked on forums but cant seem to find anything as of yet about it. Got the part were i can make them to use more ad credits per ad but cant find the other.


Also to to ad forum to site. I have the SMF installed and the forum tab at the top now but not sure how to link the 2 together or were i have to go to do this.

MRV4 script


Thanks
Jon
« Last Edit: January 23, 2012, 09:30:07 AM by jdsifw » Logged
Upgrade to an SDR 3
ayman20068
Sr. Member
****
Offline Offline

Posts: 265


Offline Thursdays , Fridays


View Profile
« Reply #1 on: January 23, 2012, 03:00:25 PM »

- to prevent members from seeing or clicking their own ads you can do the following :

find the following file : members/click.php , find this code in it :
Code:
$sql = $Db1->query("SELECT * FROM ads WHERE
credits>=1
and active=1
and (daily_limit>views_today or daily_limit=0)
and (upgrade='0' ".($thismemberinfo[type]==1?" or upgrade='1'":"").")
ORDER BY $orderby $type
");

add this code
and username!='$username'

just after
and (daily_limit>views_today or daily_limit=0)

so the final code should be like this :
Code:
$sql = $Db1->query("SELECT * FROM ads WHERE
credits>=1
and active=1
and (daily_limit>views_today or daily_limit=0)
and username!='$username'
and (upgrade='0' ".($thismemberinfo[type]==1?" or upgrade='1'":"").")
ORDER BY $orderby $type
");

i'm using sdr 3 and it's line 49 for me , don't know about mrv but think you will find the code

- for forum integration i think there was a guide made by ddesign in a forum but that forum is down , here's a copy of his topic on another forum :
http://www.talkptc.com/index.php?topic=33332.0

just follow the steps and your forum will be now integrated with your site , but notice all members who joined before the integration date must be added manually to your forum
« Last Edit: January 23, 2012, 03:02:52 PM by ayman20068 » Logged

jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #2 on: January 24, 2012, 09:10:40 AM »

Thanks ill try it today and let ya know. Grin
Logged
needmorecoffee
Newbie
*
Offline Offline

Posts: 35


View Profile WWW
« Reply #3 on: March 28, 2012, 10:58:45 AM »

Does anyone know how to do the same thing for SDR?

Or will this work there too?

Thanks.
Logged
ayman20068
Sr. Member
****
Offline Offline

Posts: 265


Offline Thursdays , Fridays


View Profile
« Reply #4 on: March 28, 2012, 02:35:20 PM »

Does anyone know how to do the same thing for SDR?

Or will this work there too?

Thanks.

it will work for sdr too
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: