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

rajubd 04-08-2012 02:24 AM

Quote:

Originally Posted by faisaly.com (Post 2317818)
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

Love this mod better then my direct advertisers.. Also most people will copy your link with adfly redirect so you will know where your content copyed in adfly cp..

gsmlover4u 04-09-2012 06:39 PM

will work with vbseo ?

Rich 04-09-2012 10:26 PM

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.

rajubd 04-10-2012 09:41 AM

Quote:

Originally Posted by gsmlover4u (Post 2318417)
will work with vbseo ?

Yes it should work

rajubd 04-10-2012 09:44 AM

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.

It depends on your forum content.
If your forum have good content your members will return back

faisaly.com 04-11-2012 01:26 AM

Let your users know that your adf.ly links are what helps pay for the hosting of the site...

rajubd 04-14-2012 06:43 PM

Quote:

Originally Posted by faisaly.com (Post 2318927)
Let your users know that your adf.ly links are what helps pay for the hosting of the site...

I don't like those who don't want admin get some $$$$

Rich 05-14-2012 06:57 PM

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.

davidg 05-14-2012 09:57 PM

adf.ly are like google adsense they ban users for nothing

rajubd 05-19-2012 05:19 AM

Quote:

Originally Posted by davidg (Post 2329424)
adf.ly are like google adsense they ban users for nothing

Working good for me

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.

cawnpore 12-01-2012 07:34 PM

Can anyone think how can I use this mod to redirect all users to one of my page on vbulletin from where they must click on manually on hyperlinks to proceed?
example I want all users to be redirected to mysite.com/yourstuck.html page.

rajubd 12-13-2012 06:37 PM

Quote:

Originally Posted by cawnpore (Post 2387411)
Can anyone think how can I use this mod to redirect all users to one of my page on vbulletin from where they must click on manually on hyperlinks to proceed?
example I want all users to be redirected to mysite.com/yourstuck.html page.

Use this
https://vborg.vbsupport.ru/showthread.php?t=241754

cawnpore 12-14-2012 01:31 AM

Quote:

Originally Posted by rajubd (Post 2390541)

Thanks will try for sure.

cawnpore 12-29-2012 12:01 AM

does anyone know how we can use similar mod for linkbucks.com?

mohammad6006 06-23-2013 08:18 PM

how can disable change javascript:// to adf.ly/javascript://


All times are GMT. The time now is 02:20 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.01543 seconds
  • Memory Usage 1,815KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete