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)

shanef 05-20-2012 04:08 AM

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>

doileloi 06-06-2012 02:25 PM

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.

faisaly.com 06-06-2012 07:32 PM

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

jamalmouad 06-07-2012 10:47 AM

Thank you

craigvm 09-11-2012 05:58 PM

Quote:

Originally Posted by Rich (Post 2318482)
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

Attila85 09-14-2012 02:16 PM

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.

zascok 09-15-2012 07:18 AM

Quote:

Originally Posted by Paul M (Post 2316823)
Link removed. Do not post affiliate links.


Link is still there Paul

Code:

http://adf.ly/1409766/http://www.mobilephonetalk.com

Jncocontrol 09-15-2012 09:17 AM

Quote:

Originally Posted by Rich (Post 2329380)
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.

RichieBoy67 09-25-2012 11:46 AM

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.

rajubd 10-02-2012 06:28 PM

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.


All times are GMT. The time now is 05:55 AM.

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.01097 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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