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
Amazon Associates Hack for VB3 Details »»
Amazon Associates Hack for VB3
Version: 1.01, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 12-05-2004 Last Update: 07-18-2005 Installs: 35
 
No support by the author.

This hack converts any US amazon link posted on your board to use your affilliate id and is based of some work Logician did for me in Vbulletin 2, but is an improved rewrite. The old version did not track well with Amazon because it did not strip out Amazon session ids.

Please note that you need to change my affilliate id to use yours.

Also note that the chunk of code you are looking for in edit.php may not be an exact match in your file. You are looking for the query that updates the post table with the edited post.

Regarding Update.zip Update.zip contains a new functions_amazon.php that I would like some people to try out before I add to the regular zip file. The new function handles Amazon's new link format, and I believe, works better than the original function. Please LET ME KNOW if you try it and it works for you.

-------------
This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you.

Show Your Support

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

Comments
  #62  
Old 04-22-2005, 04:13 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy,

Is this right? I posted this link.....
Code:
http://www.amazon.com/exec/obidos/tg/browse/-/468646/dealmeinnet-20//002-5061230-3600869
and it changed it to this...

Code:
http://www.amazon.com/exec/obidos/tg/browse/-/468646/dealmeinnet-20///ref=nosim/webmasterresou02
It loses the 002-5061230-3600869 and adds a extra /
Not sure but I also think the dealmeinnet-20 part is the persons ID from where I grabbed the link to post to my site..
Reply With Quote
  #63  
Old 04-22-2005, 10:52 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope. It's not. It needs to kill the dealmeinnet-20 part or you won't get credit. When you post a link to a product, it does kill any other referral links. But, it may have issues when you post a link to a general page.
Reply With Quote
  #64  
Old 06-10-2005, 10:11 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have good news and bad news.

First the good news. This hack will be trivial to port over to 3.5 as a plugin. It won't require any code edits on your part when I release it.

Now the bad news. Amazon has changed their affilliate link format again. The links to direct products are working still, but the rest is not. So, those of you who are using this hack are probably seeing a drop in revenue.

I'm working on getting it fixed, but parsing the urls has been less than fun. I'm not sure why Amazon keeps changing how they do their links. You would think they would leave well enough alone.

Amy
Reply With Quote
  #65  
Old 07-18-2005, 05:07 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ported to 3.5
https://vborg.vbsupport.ru/forumdisplay.php?f=166
Reply With Quote
  #66  
Old 07-19-2005, 02:13 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just added a new zip file called update.php. In it, there is a new version of functions_amazon.php. Please give it a try as it handles the new link formatting style that Amazon now employs. I am running this version of the file on my 3.5 board with no problems. If a few of you 3.0.x guys let me know that it works for you, I will replace the file in the original zip with the new one.
Reply With Quote
  #67  
Old 08-29-2005, 06:14 AM
biggazillakilla biggazillakilla is offline
 
Join Date: Mar 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the update, and here are the results.

Random affiliate link found on the web:

Code:
http://www.amazon.com/exec/obidos/tg/detail/-/0886852404/qid=1089755945/sr=8-1/ref=old_aff_id/102-3295743-7276134?v=glance&s=books
gets changed to this:

Code:
http://www.amazon.com/exec/obidos/ASIN/0886852404//ref=nosim/new_aff_id
which doesn't work. I'm guessing it's the double slashes. But I could be wrong. I did try the URL with only one of those slashes, and it takes me to the product page.

I'm going to look it over to see if I can find anything. But thanks Amy for your contribution. I'll probably head over to your forum to join.
Reply With Quote
  #68  
Old 08-29-2005, 06:23 AM
biggazillakilla biggazillakilla is offline
 
Join Date: Mar 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, now that link seems to work. Not sure why...

Let me do some playing around tomorrow with different links to see how it goes. It's getting a little late here.

Thanks again.
Reply With Quote
  #69  
Old 08-29-2005, 10:36 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The double slashes don't mess it up on my site. I haven't seen this version of the mod break, but it's not the heavy time for my users to be using it yet.

Amy
Reply With Quote
  #70  
Old 01-14-2006, 06:04 PM
lamspoot lamspoot is offline
 
Join Date: Nov 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy, this modification would be absolutely perfect for my site, but I'm having some trouble with it.

I followed your instructions and here's what happens:

Test 1 is where I just copied and pasted a link from amazon into a post.

Test 2 is where I used the Insert Hyperlink button in the post and typed in the text "this is using a hyperlink button in a post".

Can you give me any ideas about what I'll need to change? I'm using vBulletin 3.03.

Thanks for any help you can provide.
Mary
Reply With Quote
  #71  
Old 01-23-2006, 02:37 AM
zerokarma zerokarma is offline
 
Join Date: Oct 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So does this hack work still at all for V3.0.X?

and if so which ZIP do I need? the original one or the update one?
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 12:14 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.04852 seconds
  • Memory Usage 2,306KB
  • 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
  • (4)bbcode_code
  • (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