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
  #22  
Old 05-20-2012, 04:08 AM
shanef shanef is offline
 
Join Date: Sep 2010
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the script to exclude certain groups such as members who have donated or premium members you dont want to hassel with adfly

Change the x, y, z to the usergroup id you want to exclude and replace the red with you forum address


<vb:if condition="is_member_of($bbuserinfo, x, y, z )">
// <script type="text/javascript">
onmousemove = function adfly() {
adfly_id = '1860328'; //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("http://www.YourAddressHere/forum")|| hrefer.match("http://www.YourAddressHere/")) {
document.links[i].href = document.links[i].href;
}else{document.links[i].href = 'http://adf.ly/' + adfly_id + '/' + document.links[i].href;}
}
}
</script>
Reply With Quote
  #23  
Old 06-06-2012, 02:25 PM
doileloi's Avatar
doileloi doileloi is offline
 
Join Date: Oct 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
|| hrefer.match("http://www.facebook.com/")
|| 
hrefer.match("http://www.facebook.com"
I we put this they won't redirect link ? like mediafire etc.
Reply With Quote
  #24  
Old 06-06-2012, 07:32 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes this one works to stop the redirect to thoee sites you choose... there is a newer code that works differently where you add the links only that you want to redirect.... but I wont share in this post because this post is from the developer and he may get upset....
Reply With Quote
  #25  
Old 06-07-2012, 10:47 AM
jamalmouad jamalmouad is offline
 
Join Date: May 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #26  
Old 09-11-2012, 05:58 PM
craigvm's Avatar
craigvm craigvm is offline
 
Join Date: Aug 2012
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rich View Post
If I were a member of a forum and I encountered this mod in use it would be the last time I used that site. new forum owners beware. This won't help grow your forum. It will help deter users.
totally agree m8 i`ve been looking into ways to bring some revenue in from my site but i`d never consider this it would annoy me if i was on a site with it
Reply With Quote
  #27  
Old 09-14-2012, 02:16 PM
Attila85 Attila85 is offline
 
Join Date: Oct 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you guys aware that he put the function into a "onmousemove" ?
Every single movement with the mouse and all the links of the ENTIRE page are checked and RE-defined.

Are you aware that the function match is used to compare strings against a regular expression?
Where is the regular expression here?
Isn't it correct to use string.indexof(substring) ?

I am wondering how is it possibile that this "mod" has been accepted.
Reply With Quote
  #28  
Old 09-15-2012, 07:18 AM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Link removed. Do not post affiliate links.

Link is still there Paul

Code:
http://adf.ly/1409766/http://www.mobilephonetalk.com
Reply With Quote
  #29  
Old 09-15-2012, 09:17 AM
Jncocontrol's Avatar
Jncocontrol Jncocontrol is offline
 
Join Date: Mar 2009
Location: St.louis
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rich View Post
It isn't about those who don't want the admin to get money. Its about quality. This mod doesn't do anything respective to the members. it is redirecting them, not by choice, so you can earn money. in my niche I dominate the search engines against most other sites in the same niche. I would never make my members deal with such nonsense.
This is just one mans opinon, take it with a pinch of salt.
I've this been using this mod to...some extent, Instead of banning spam botters, I've decided to kinda keep them around for better use, But I only use this mod for those who spam bots, I think i've but this to good use i think.
Reply With Quote
  #30  
Old 09-25-2012, 11:46 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have never tried this but many times members post links to other sites of the same topic which sometimes means losing members. If members are leaving my site to visit another I do not see what is wrong with earning a little but I would like some control with which links this happens too. In other words, I do not want advertiser links having this..also, how does this effect adsense?

Thanks,
Rich

I am thinking a better mod would be having my own sites header on top of the page so when users visit external links they are actually still on my site.. That seems like it would be more beneficial than this..just a thought though.
Reply With Quote
  #31  
Old 10-02-2012, 06:28 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working better then any advertisers for me. Users copy my forum post also copy my adf.ly advertising link. So i am getting revenue from others sites also.
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 05:14 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.05471 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete