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)

twoseven 03-17-2005 01:58 AM

you get paid to sell amazon products(if they go through your referal)

JustAskJulie 04-13-2005 06:54 AM

This is cool. I want to look at it and see what it would take to convert it for other affiliate programs.

venomx 04-15-2005 07:57 AM

Amy,

I found out that Amazon has a RSS feed. Since i run the RSS Bot hack I thought about using it and this hack by you. Will this hack change the links they use in the RSS feed? Heres one link

http://www.amazon.com/exec/obidos/ASIN/B0007VZVG0/ref=nosimRss/webservices-20?dev-t=amznRss

amykhar 04-15-2005 10:47 AM

It depends on two things:
1. How the bot hack forms the message. You may have to tweak it a bit to make it parse the amazon urls before saving the message.
2. If the RSS feed is set up to already use your affiliate ID, the hack won't change the links again. (which is a good thing)

venomx 04-15-2005 10:56 AM

Not sure how it does it but it doesnt give them UCash points so I am guessing it just adds te posts right to the database. :(

The RSS feed doesnt use the aff id.. :(

amykhar 04-15-2005 11:24 AM

ok. Then it will be easy to do.
In the rss bot hack, find the line where it puts the message in the database. Then, above that line, copy the code that I used in functions_newpost.php.

Explicitly:
Code:

require_once('./includes/functions_amazon.php');
$post['message'] = process_amazon_links($post['message']);

You might have to change the message variable to match whatever the hack called it. It's April 15 (tax day) and I am busy finializing tax returns for procrastinating clients. So, I can't help you dig through the RSS hack today.

Norbert 04-16-2005 04:31 PM

Thx for this great hack... will work with the german sites.

Greetings from Vienna,
Norbert

venomx 04-16-2005 07:54 PM

I took a look but am scared to test because I just know Ill screw it up hehe

SEO Report 04-17-2005 10:15 PM

Does this hack affects existing posts/links?

Thanks,
-k

amykhar 04-17-2005 11:03 PM

No. It does not. With VB2 it did, but the way links are show has changed in VB3.


All times are GMT. The time now is 11:12 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.01724 seconds
  • Memory Usage 1,727KB
  • 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
  • (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