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)
-   -   Amazon Associates Hack for VB3 (https://vborg.vbsupport.ru/showthread.php?t=72560)

amykhar 12-19-2004 11:06 PM

I have updated the code so it now works in private messages as well. In addition, I tweaked things so you only have to change the affilliate id in one place, and have made the code a bit easier to install.

If you have the old version installed, you will need to remove the changes you made in functions_newpost.php and editpost.php.

limey 01-05-2005 06:37 PM

getting double //ref=nosim with latest code. Not that it matters really I think it still tracks ok.

Great hack!

RichieBoy67 01-05-2005 10:04 PM

I am sure this will sound stupid...

I am trying to edit the functions_amazon.php file and I am very confused as to where my associates ID goes.... It asks for it in a few places... I don't want to mess up...

help please..

amykhar 01-05-2005 10:56 PM

Quote:

Originally Posted by RichieBoy67
I am sure this will sound stupid...

I am trying to edit the functions_amazon.php file and I am very confused as to where my associates ID goes.... It asks for it in a few places... I don't want to mess up...

help please..

Code:

// enter your associate id here

$associate_id = "your_id";

You only need to change it in one spot. The rest use the variable. Change it right where it says your_id.

amykhar 01-05-2005 10:57 PM

Quote:

Originally Posted by limey
getting double //ref=nosim with latest code. Not that it matters really I think it still tracks ok.

Great hack!

Yes, it still tracks :)

RichieBoy67 01-05-2005 11:02 PM

Cool, That is exactly what I did but I wanted to be sure....

Thanks :)

amykhar 01-05-2005 11:07 PM

Don't hold me to this one, gang, cause I haven't tested it. But I THINK you can make this work for international Amazon sites simply by changing the .com to the extension you desire whereever it occurs in the Amazon functions file. (Please don't try to do this if you can't code. Wait until somebody with experience tests it first)

For example, if you use the Canadian Amazon, you would change .com to .ca everywhere it occurs.

If you use more than one Amazon because you are a multicultural site, you would just have to repleat the code blocks - once for each country. AGAIN DON'T TRY THIS IF YOU AREN'T A CODER. LET SOMEBODY ELSE PAVE THE WAY.

I'm not going to support the internationalization aspect because I don't use it. Try it at your own risk.

Slave 01-08-2005 10:48 AM

Just looking at this .. and a question comes to mind ..

What's the point/need for the "/ref=nosim/"?

(This is for co.uk Amazon btw .. not .com)

limey 01-08-2005 12:28 PM

Quote:

Originally Posted by Slave
Just looking at this .. and a question comes to mind ..

What's the point/need for the "/ref=nosim/"?

(This is for co.uk Amazon btw .. not .com)

ref=nosim means that when you goto amazon's product/item page there are NO similar items on that page. Just the item in question.

Cheers.

cteselle 01-26-2005 05:10 PM

Thanks for putting this together!

It's great that it deletes other associate id's from the direct links, however if someone links to the main page using:

http://www.amazon.com/exec/obidos/redirect-home/someid-20

the link turns into:

http://www.amazon.com/exec/obidos/redirect-home/someid-20/ref=nosim/myid-20

Who gets the credit then?


All times are GMT. The time now is 07:18 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.01236 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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