Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Annoy the free iPod spammers with referral ID replacement Details »»
Annoy the free iPod spammers with referral ID replacement
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-30-2005 Last Update: Never Installs: 13
 
No support by the author.

[Annoy the free iPod spammers with referral ID replacement]

Information
  • [high]vBulletin Version:[/high] 3.0.6

  • [high]Author:[/high] Dean Clatworthy

  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.

  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.

  • [high]Credits:[/high] I would like to thank the following people who contributed to the making of this modification.
    • ManagerJosh - his idead

What does this modification do?
Getting annoyed by those pesky free iPod spammers? You're not the only one. Get a free iPod in the process by replacing their ID with yours

Installation

1/

Find in includes/functions_showthread.php:

PHP Code:
// hide edit button if they can't use it 
Above it add:

PHP Code:
$refid['freeipods'] = 0;
$post['message'] = preg_replace('/www\.freeiPods\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeiPods.com/default.aspx?referer=' $refid['freeipods'], $post['message']);
$post['signature'] = preg_replace('/www\.freeiPods\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeiPods.com/default.aspx?referer=' $refid['freeipods'], $post['signature']); 
Be sure to change the value of $refid['freeipods'] to your referralid otherwise this won't work!

Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Show Your Support

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

Comments
  #32  
Old 02-06-2005, 01:30 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not working for me here is my code http://www.freeiPods.com/?r=14713038
and here is what i added
Code:
$refid['freeipods'] = 14713038; 
          $post['message'] = preg_replace('/www\.freeiPods\.com\/default\.aspx\?referer=([0-9]+)/', 'www.freeiPods.com/default.aspx?referer=' . $refid['freeipods'], $post['message']);
i guess i messed up?
Reply With Quote
  #33  
Old 02-06-2005, 10:58 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, since when did they have so many different url formats I'll work on it now
Reply With Quote
  #34  
Old 02-06-2005, 03:09 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok updated the first post with the fix
Reply With Quote
  #35  
Old 02-08-2005, 01:58 PM
EcpHosting's Avatar
EcpHosting EcpHosting is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I have an interesting question...

The unique question involves 3 things you should know in advance:

1) We just launched a site in favor of this: myfreeipodguide.com

2) We need referral links showing in the header, however these links are not static... they are dynamic as they change depending on who referred who to our site. For example, if Bob refers you to our site, then all the links in the header will be Bob's.

3) We are currently using vbAdvanced Portal (in which the entire guide works from the Forum Style)

The Question: Is this set to only work in posts and sigs (this is where we only want it to work, as we do not allow referral links in our boards) or do you think it could override our system? I'm not asking if our system is compatable, I'm just asking where the limitations are for this hack (if it also looks outside of posts and sigs).

A side question: If the above is limited to only those areas, is it possible to expand this for all the other links as well (freeipodshuffle.com, freeminimac.com, notebooks4free.com, etc...)?

Your kind valuable input would be appreciated.
Reply With Quote
  #36  
Old 02-08-2005, 03:54 PM
EcpHosting's Avatar
EcpHosting EcpHosting is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EcpHosting
...

The Question: Is this set to only work in posts and sigs (this is where we only want it to work, as we do not allow referral links in our boards) or do you think it could override our system? I'm not asking if our system is compatable, I'm just asking where the limitations are for this hack (if it also looks outside of posts and sigs).

A side question: If the above is limited to only those areas, is it possible to expand this for all the other links as well (freeipodshuffle.com, freeminimac.com, notebooks4free.com, etc...)?

Your kind valuable input would be appreciated.
Ok, I answered my own questions... it all seems to be working very well without any problems. I have added all the gratis links, as well as all the offer centric links, PLUS all the links to our sites (all being nullified) and all is working beautifully even for links already posted.

If you would like to add the ULTIMATE nullification to your boards (nullifing 17 known links, including the free ipods site), you can use the following code:

includes/functions_showthread.php

Find:
PHP Code:
// hide edit button if they can't use it 
Above that add:
PHP Code:
// nullify links on boards

// gratis links

$refid['freedesktoppc'] = 0
$post['message'] = preg_replace('/www\.freeDesktopPc\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeDesktopPc.com'$post['message']); 

$refid['freeflatscreens'] = 0
$post['message'] = preg_replace('/www\.freeFlatScreens\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeFlatScreens.com'$post['message']); 

$refid['freegamingsystems'] = 0
$post['message'] = preg_replace('/www\.freeGamingSystems\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeGamingSystems.com'$post['message']); 

$refid['freeipodshuffle'] = 0
$post['message'] = preg_replace('/www\.freeiPodShuffle\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeiPodShuffle.com'$post['message']); 

$refid['freeipods'] = 0
$post['message'] = preg_replace('/www\.freeiPods\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeiPods.com'$post['message']); 

$refid['freephotoipods'] = 0
$post['message'] = preg_replace('/www\.freePhotoiPods\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freePhotoiPods.com'$post['message']); 

$refid['freeminimacs'] = 0
$post['message'] = preg_replace('/www\.freeMiniMacs\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.freeMiniMacs.com'$post['message']); 

// offer centric links

$refid['cameras4free'] = 0
$post['message'] = preg_replace('/www\.cameras4free\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.cameras4free.com'$post['message']); 

$refid['notebooks4free'] = 0
$post['message'] = preg_replace('/www\.notebooks4free\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.notebooks4free.com'$post['message']); 

$refid['mp3players4free'] = 0
$post['message'] = preg_replace('/www\.mp3players4free\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.mp3players4free.com'$post['message']); 

$refid['ipodshuffles4free'] = 0
$post['message'] = preg_replace('/www\.ipodshuffles4free\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.ipodshuffles4free.com'$post['message']); 

$refid['macminis4free'] = 0
$post['message'] = preg_replace('/www\.macminis4free\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.macminis4free.com'$post['message']); 

$refid['pvps4free'] = 0
$post['message'] = preg_replace('/www\.pvps4free\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.pvps4free.com'$post['message']); 

// myfreeipodguide links

$refid['myfreeipodguide'] = 0
$post['message'] = preg_replace('/www\.myfreeipodguide\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.myfreeipodguide.com'$post['message']); 

$refid['howigotmyipod'] = 0
$post['message'] = preg_replace('/www\.howigotmyipod\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.howigotmyipod.com'$post['message']); 

$refid['myipodguide'] = 0
$post['message'] = preg_replace('/www\.myipodguide\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i''www.myipodguide.com'$post['message']); 
This will nullify ALL links from both Gratis and Offer Centric.
Reply With Quote
  #37  
Old 02-10-2005, 08:13 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok here is my referall link http://www.freeiPods.com/?r=14713038
could some one show me how the codes would look? I want to do it to my signs as well as my posts.
thank you
Reply With Quote
  #38  
Old 02-10-2005, 11:00 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a user that posts a simple site to his personal site. I would like for it to be changed to something I want. How can this be done?

its like www.dot.msn.com/community

or something do I need to do anything special to it?
Reply With Quote
  #39  
Old 02-11-2005, 01:00 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by juanph
Nice idea, but didn't work fo rme either....He has it linked to an image in his sig...is this the reason??

EDIT:: DUH!!! I just added this underneath the original code and noe it changes it in the signature also.

Code:
$post['signature'] = preg_replace('/www\.freeiPods\.com\/default\.aspx\?referer=([0-9]+)/', 'www.freeiPods.com/default.aspx?referer=' . $refid['freeipods'], $post['signature']);



Thanks.....
that didnt work for me but this did

Code:
$post['signature'] = preg_replace('/www\.freeiPods\.com\/(?:default\.aspx)?\?(r|referer)=([0-9]+)/i', 'www.freeiPods.com/default.aspx?referer=' . $refid['freeipods'], $post['signature']);
Reply With Quote
  #40  
Old 02-11-2005, 01:56 AM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Give me the URL and i'll write the replacement for it
Are you saying replacements could work for any affiliate program? Canyou do this instead of the long hack by amyhkhar for amazon and ebay?
Reply With Quote
  #41  
Old 02-12-2005, 11:44 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no one line I could write which would work for every site. Amazon uses a completely different URL to freeipods.com for example. Btw ECPhosting, all those lines can be combined into one, and it is of no benefit to anyone who wants to put their own ID in there. However, you have a nice list of sites in there so I'll write a regexp for all gratis sites tonight The main idea of this is not to censor them, as you can do this with replacement, but to replace their ID with yours.

Cheers,
- Dean
Reply With Quote
Reply


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 10:51 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.07604 seconds
  • Memory Usage 2,356KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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