Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
redirect all external link to adfly earn money Details »»
redirect all external link to adfly earn money
Version: 1.00, by rajubd rajubd is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.11 Rating:
Released: 04-03-2012 Last Update: Never Installs: 12
Template Edits
 
No support by the author.

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..

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-04-2012, 11:19 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

The link from developer is a ref-link, which gives him a nice provision.
Reply With Quote
  #3  
Old 04-04-2012, 03:04 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kraxell View Post
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..
Reply With Quote
  #4  
Old 04-04-2012, 05:12 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
did you report the affiliate link??
Where report?
Reply With Quote
  #5  
Old 04-04-2012, 08:08 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #6  
Old 04-04-2012, 08:20 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kraxell View Post
Where report?
click the report icon in the first post
Reply With Quote
  #7  
Old 04-04-2012, 09:46 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Link removed. Do not post affiliate links.
Reply With Quote
Благодарность от:
Kraxell
  #8  
Old 04-05-2012, 08:20 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry i donn't know that rules
Reply With Quote
  #9  
Old 04-07-2012, 09:03 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #10  
Old 04-07-2012, 07:22 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06301 seconds
  • Memory Usage 2,305KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete