DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.

Adf.ly hack for DLE

Adf.ly hack for DLE

Like i said very one search how to integrate this fabulous code into Datalife Engine sad

Don't worry i found the solution actually it's very simple but you have to concentrate with me

let do it babe smoke

First bale go to your adf.ly account after that concentrate with the following images bully :

Adf.ly hack for DLE

Adf.ly hack for DLE

Adf.ly hack for DLE


well,well,well now like you see we have two codes:

The first one is :
<script>var adfly_id = 745729;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>


What we care about in this code is
var domains =
here it means that if a link contain one of these domains it will be redirected first to your adf.ly account before showing the real page.
you can add whatever you want of domains.
i think now you understand what i'm talking about here wink

The second code :
<script>var adfly_id = 745729;var adfly_advert = 'int';var exclude_domains = ['example.com', 'yoursite.com',];</script><script src="http://adf.ly/js/link-converter.js"></script>


Well this code is different from the first one why?

Here you can add domain that you want exclude to be redirected..for example if you exclude your domain let's say we exclude "dlestarter.com" then only links on dlestarter will be redirected but if we don't exclude it then dlestarter itself will be redirected that means when you hint "home,dle tutorials,free downloads ...ect" will be redirected to adf.ly that mean the hole site will be redirected before showing the real page crazy this is the extra earning from adf.ly

Second Part :

here we're gonna integrate this code to our DLE site

1) Copy one of two codes above

2) Open you {THEME}/main.tpl file

3) Paste the code on the top (if you paste it in other place it will not work)

4) Open you fullstory.tpl and paste the code on top

5) Do the same thing with shortstory.tpl

i know my English is bad but the most important here is to understand the tutorial thumbsup

That's it all the link will be redirected now and have fun with earning dance

Thanks to all DleStarter Team who help us to solve problems and understand how DLE works fellow

CommentsComments (20)

Keymaster December 31, 2011 (9:43 pm) 2 Comments

Keymaster
This is great but wont work if you use the leech code on your site as I do but this does work.
Registered: 23.08.2011   Group: V.I.P.   Share:  4 article(s)   50 comment(s)

algeriano January 1, 2012 (12:13 pm) 3 Comments

algeriano
Keymaster,
yeah actually you must use links without leech code fellow
Registered: 28.11.2011   Group: Members   Share:  1 article(s)   8 comment(s)

KingOfDCP January 2, 2012 (1:24 pm) 4 Comments

KingOfDCP
We don't need step 4 & 5
Registered: 20.11.2011   Group: Members   Share:  0 article   9 comment(s)

tbenmcp January 2, 2012 (10:32 pm) 5 Comments

tbenmcp
Quote: KingOfDCP
We don't need step 4 & 5

I was wondering the same thing because if you add the code to main.tpl then why bother add the same code to shortstory/fullstory.tpl again, right?
Registered: 2.03.2011   Group: DLE TEAM   Share:  20 article(s)   151 comment(s)

KingOfDCP January 3, 2012 (6:55 am) 6 Comments

KingOfDCP
Quote: tbenmcp
I was wondering the same thing because if you add the code to main.tpl then why bother add the same code to shortstory/fullstory.tpl again, right?


Yes.

In fact, this hack is not a "hack" really. It's just adding code like we add google analytics code. And it doesn't require to add it at top of the main. You can add it at the end of main file, before </body>.
Registered: 20.11.2011   Group: Members   Share:  0 article   9 comment(s)

algeriano January 3, 2012 (12:45 pm) 7 Comments

algeriano
KingOfDCP,
yeah you can add it before </body> but i tried to be more simple fellow
well this is a different javascript man..it will not work if you pass over step 4 and 5,that's why it didn't work for everyone
just try it and you'll see..you must add it in shortstory/fullstory.tpl even in addcomment.tpl..i tried it my self i didn't add the code in addcomment.tpl..so every link on my site (in comments) works without been redirected to adf.ly..
try it you'll see blind

best regard fellow
Registered: 28.11.2011   Group: Members   Share:  1 article(s)   8 comment(s)

tbenmcp January 3, 2012 (9:27 pm) 8 Comments

tbenmcp
algeriano, you maybe right that's why we can't get it to work...have you tried on shortstory.tpl and fullstory.tpl only without add to main.tpl? I haven't tested it but just curious...
Registered: 2.03.2011   Group: DLE TEAM   Share:  20 article(s)   151 comment(s)

KingOfDCP January 4, 2012 (6:19 am) 9 Comments

KingOfDCP
I already used this in 3-4 months. You should place it at bottom for better performance of website.

OT: Please disable answer & question in comment or disable re-capcha. One is enough
Registered: 20.11.2011   Group: Members   Share:  0 article   9 comment(s)

pakchess January 26, 2012 (10:39 pm) 11 Comments

pakchess
Is it works with DLE v9.5?
Registered: 17.12.2011   Group: Members   Share:  0 article   6 comment(s)

sawanbanna January 26, 2012 (10:48 pm) 12 Comments

sawanbanna
Quote: pakchess
Is it works with DLE v9.5?

Yes
Registered: 18.10.2011   Group: DLE TEAM   Share:  31 article(s)   409 comment(s)

rumy1200 February 29, 2012 (10:06 pm) 13 Comments

rumy1200
My Code not work on 9.5

www.getalldown.com
Registered: 17.02.2012   Group: Members   Share:  0 article   18 comment(s)

tbenmcp March 1, 2012 (2:34 am) 14 Comments

tbenmcp
based on what i have seen, sometimes it doesn't work correctly I don't know why, but I am sure there is the way and explanation
Registered: 2.03.2011   Group: DLE TEAM   Share:  20 article(s)   151 comment(s)

notx88 April 9, 2012 (8:49 am) 15 Comments

notx88
awesome, i will try love
Registered: 9.11.2011   Group: Members   Share:  0 article   4 comment(s)

Gozan April 26, 2012 (12:20 am) 16 Comments

Gozan
can i change adf.ly to goo.gl bokali
Registered: 18.08.2011   Group: V.I.P.   Share:  33 article(s)   132 comment(s)

spamhater April 26, 2012 (1:38 am) 17 Comments

spamhater
don't know if goo.gl provide api and script to convert the links like adf.ly...don't seem to find the option in goo.gl services...
Registered: 14.10.2011   Group: DLE TEAM   Share:  27 article(s)   386 comment(s)

Boucher August 6, 2012 (2:03 am) 18 Comments

Boucher
Thank you, very u$efull smile
Registered: 30.07.2012   Group: Members   Share:  0 article   7 comment(s)

Ledi99 June 2, 2013 (7:31 am) 19 Comments

Ledi99
why not work on my site :O www.simplydl.com :/
Registered: 15.04.2012   Group: Members   Share:  0 article   1 comment(s)

spamhater June 2, 2013 (3:40 pm) 20 Comments

spamhater
Quote: Ledi99
why not work on my site :O www.simplydl.com :/

cant check it because your site has internal error, can't even access to frontpage
Registered: 14.10.2011   Group: DLE TEAM   Share:  27 article(s)   386 comment(s)
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Member Login
     Don't save me!
Not yet member? Register | Forgot Password?