vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Annoy the free iPod spammers with referral ID replacement (https://vborg.vbsupport.ru/showthread.php?t=75494)

Dean C 01-30-2005 10:00 PM

Annoy the free iPod spammers with referral ID replacement
 
[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.

nexialys 01-31-2005 03:39 PM

coming from Dean C, i'm questionning his affection to the Mac world.. lol

this "hack" is not a single way related to vBulletin, and btw, i think Dean will have to learn why there is a Replacement system in the board... ;)

ManagerJosh 01-31-2005 03:47 PM

Quote:

Originally Posted by nexialys
coming from Dean C, i'm questionning his affection to the Mac world.. lol

this "hack" is not a single way related to vBulletin, and btw, i think Dean will have to learn why there is a Replacement system in the board... ;)

http://www.vbulletin.com/forum/showthread.php?t=128426

*clicks install*

Dean C 01-31-2005 03:56 PM

Quote:

Originally Posted by nexialys
coming from Dean C, i'm questionning his affection to the Mac world.. lol

this "hack" is not a single way related to vBulletin, and btw, i think Dean will have to learn why there is a Replacement system in the board... ;)

The replacement system does not support parameters last time I checked :smoke:

nexialys 01-31-2005 04:05 PM

hum... yeah... maybe it's time to edit it, add some regex to it...

yoyoyoyo 01-31-2005 04:29 PM

very cool! and this could also be very easily adapted to other services that use referral ID's, such as amazon, etc.! nice one!

Dean C 01-31-2005 04:34 PM

Give me the URL and i'll write the replacement for it :)

ManagerJosh 01-31-2005 06:11 PM

Quote:

Originally Posted by Dean C
Give me the URL and i'll write the replacement for it :)

Hey Dean..does this work if they omit the "www" ?

Dean C 01-31-2005 07:06 PM

Nope - fixed :D Also it's now case-insensitive. Gotta love these regexp's

Link14716 01-31-2005 08:39 PM

Make spammers work for you, eh Dean? ;)


All times are GMT. The time now is 01:56 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.01397 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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