vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - redirect all external link to adfly earn money (https://vborg.vbsupport.ru/showthread.php?t=281096)

rajubd 04-03-2012 10:00 PM

redirect all external link to adfly earn money
 
1 Attachment(s)
redirect all external link to adfly earn money. Like if your external link looks like this http://www.mobilephonetalk.com it will convert it to http://adf.ly/1409766/http://www.mobilephonetalk.com . Register at adfly..
then past this code any place of your template prefer footer template
Code:

<script type="text/javascript">
onmousemove = function adfly() {
adfly_id = '1409766'; //replace with your ID
for (var i = 0; i < document.links.length; i++) {
 var hrefer = document.links[i].href;
 if(hrefer.match("adf.ly") || hrefer.match("mobilephonetalk.com")|| hrefer.match("symbiantalk.net")) {
 document.links[i].href = document.links[i].href;
 }else{document.links[i].href = 'http://adf.ly/' + adfly_id + '/' + document.links[i].href;}
}
}
</script>

edit red text with your won adfly id info
edit www.mobilephonetalk.com, http://www.symbiantalk.net link you don't want redirect like your won website address
according to there advertise they pay 4$ per thousand redirect..

Kraxell 04-04-2012 11:19 AM

Please use http://adf.ly for account-register!

The link from developer is a ref-link, which gives him a nice provision.

Brandon Sheley 04-04-2012 03:04 PM

Quote:

Originally Posted by Kraxell (Post 2316650)
Please use http://adf.ly for account-register!

The link from developer is a ref-link, which gives him a nice provision.

did you report the affiliate link??

personally I think this would annoy my members to death.. adfly will show a page redirect while going to the actual external link..

Kraxell 04-04-2012 05:12 PM

Quote:

did you report the affiliate link??
Where report?

faisaly.com 04-04-2012 08:08 PM

Where do we get the id number from adf.ly? also i get a wait 10 second page before the actual skip this adf.ly page....

Brandon Sheley 04-04-2012 08:20 PM

Quote:

Originally Posted by Kraxell (Post 2316762)
Where report?

click the report icon in the first post https://vborg.vbsupport.ru/images/cs...ons/report.gif

Paul M 04-04-2012 09:46 PM

Link removed. Do not post affiliate links.

rajubd 04-05-2012 08:20 PM

Sorry i donn't know that rules

v123shine 04-07-2012 09:03 AM

Thank you

faisaly.com 04-07-2012 07:22 PM

This works ok after actually figuring it out myself... almost everything was redirecting to adf.ly...

Basically any external links you do not want redirected you must add to this place in the code:

Example

|| hrefer.match("http://www.facebook.com/")
|| hrefer.match("http://www.facebook.com")
|| hrefer.match("YourSite")

Note: some image resizers you cannot use or every image will link to adf.ly


All times are GMT. The time now is 10:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01032 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete