Advertisement:

Author Topic: adf.ly full page script  (Read 2652 times)

Offline MiroslavP

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Male
    • DownMafia.org
adf.ly full page script
« on: April 06, 2011, 08:40:02 AM »
how to add adf.ly api script to my forum this is script
Code: [Select]
<script>
var adfly_id = 136830;
var adfly_advert = 'int';
var domains = ['depositfiles.com', 'rapidshare.com', 'vip-file.com', 'smsfiles.ru', '4files.net', 'turbobit.ru', 'uploading.com', 'letitbit.net', 'depositfiles.ru', 'sms4file.com', 'ifolder.ru', 'hotfile.com', 'anyfiles.net', 'sharingmatrix.com', 'megashare.com', 'megaupload.com', 'rapidshare.de', 'rapidshare.ru', 'uploadbox.com', 'filefactory.com', 'filefactory.ru', 'filepost.ru', 'onefile.net', 'freefolder.net', 'getthebit.com', 'turbobit.net',];
</script>
<script src="http://adf.ly/js/link-converter.js"></script>
DownMafia.Org [nofollow]

Offline mashby

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 8,136
  • Gender: Male
  • Beer is good food.
    • Choppix
Re: adf.ly full page script
« Reply #1 on: April 06, 2011, 09:08:18 AM »
I'm guessing it needs to go on the index.template.php file for the theme (or themes) you are running. You'll either want to change all ' to " or escape them as such:
Code: [Select]
<script>
var adfly_id = 136830;
var adfly_advert = \'int\';
var domains = [\'depositfiles.com\', \'rapidshare.com\', \'vip-file.com\', \'smsfiles.ru\', \'4files.net\', \'turbobit.ru\', \'uploading.com\', \'letitbit.net\', \'depositfiles.ru\', \'sms4file.com\', \'ifolder.ru\', \'hotfile.com\', \'anyfiles.net\', \'sharingmatrix.com\', \'megashare.com\', \'megaupload.com\', \'rapidshare.de\', \'rapidshare.ru\', \'uploadbox.com\', \'filefactory.com\', \'filefactory.ru\', \'filepost.ru\', \'onefile.net\', \'freefolder.net\', \'getthebit.com\', \'turbobit.net\',];
</script>
<script src="http://adf.ly/js/link-converter.js"></script>
Then you can leach away.
Always be a little kinder than necessary.
- James M. Barrie