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
  #32  
Old 01-26-2005, 05:28 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know. But, if I get time in the next day or so, I'll work on knocking other people's referrals out of other links as well.

Amy
Reply With Quote
  #33  
Old 02-04-2005, 03:00 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I recently visited a message board that had a "Shop with Amazon" drop down menu on the top of their forum (navigation bar area). When users click on this link, a small search box (similar to the “Search Forum” box) with an amazon logo and design appears, in where users would enter their query in the search-like box. For example, a member would type in a product name and it would automatically take them to the corresponding amazon.com page.

I was wondering how I would be able to install this feature onto my message board. Please try to be very thorough and detailed when describing the steps and the coding involved.
Reply With Quote
  #34  
Old 02-04-2005, 03:51 PM
cteselle cteselle is offline
 
Join Date: Jan 2002
Location: SoCal
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OrangeFlea
I recently visited a message board that had a "Shop with Amazon" drop down menu on the top of their forum (navigation bar area). When users click on this link, a small search box (similar to the ?Search Forum? box) with an amazon logo and design appears, in where users would enter their query in the search-like box. For example, a member would type in a product name and it would automatically take them to the corresponding amazon.com page.

I was wondering how I would be able to install this feature onto my message board. Please try to be very thorough and detailed when describing the steps and the coding involved.
This is almost a hack by itself, but here it goes:

In your navbar template, find:

Code:
		<tr>
			<td class="thead">$vbphrase[search_forums]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="search.php" method="post">
				<input type="hidden" name="do" value="process" />
				<input type="hidden" name="showposts" value="0" />
				<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
			</form>
			</td>
		</tr>
		<tr>
			<td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
		</tr>
After that add:
Code:
<!-- Amazon.com Search Start -->
		<tr>
			<td class="thead">Search Amazon.com!</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="http://www.amazon.com/exec/obidos/external-search">
				<input type="text" class="bginput" name="keyword" size="20" />$gobutton<br />
				<input type="hidden" name="mode" value="blended" /> 
            			<input type="hidden" name="tag" value="YOUR ASSOCIATE ID" /> 
			</form>
			</td>
		</tr>
		<tr>
           		<td style="background-color:#000;" height="40" align="center"><a href="http://www.amazon.com/exec/obidos/redirect-home/YOUR ASSOCIATE ID"><img src="http://g-images.amazon.com/images/G/01/associates/build-links/ap-search-logo-126x32.gif" height="36" border="0" width="126" /></a></td>
		</tr>
<!-- Amazon.com Search End -->
Don't forget to change "YOUR ASSOCIATE ID" with the correct info.
Reply With Quote
  #35  
Old 02-04-2005, 04:15 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cteselle, thank you so very much!

I was wondering, will it show the amazon.com graphics on the search box display? I want it to look somewhat professional and official.

EDIT: Also, will guests be able to view it?
Reply With Quote
  #36  
Old 02-04-2005, 04:21 PM
cteselle cteselle is offline
 
Join Date: Jan 2002
Location: SoCal
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OrangeFlea
Cteselle, thank you so very much!

I was wondering, will it show the amazon.com graphics on the search box display? I want it to look somewhat professional and official.

EDIT: Also, will guests be able to view it?
The amazon graphic will appear below the search box.

Guests will be able to see it, if you have search turned on for guests.
Reply With Quote
  #37  
Old 02-04-2005, 06:44 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another question.

This only creates another table for the pre-existing search box. I wanted to make a separate drop-down menu altogether on the navbar. Is it possible for you to provide me with the code that does this?
Reply With Quote
  #38  
Old 03-16-2005, 11:28 PM
gregwatson gregwatson is offline
 
Join Date: Jan 2005
Location: Iowa
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is there any way to get this to work with the GAL auto linker hack?

Greg

Installed
Reply With Quote
  #39  
Old 03-17-2005, 12:12 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's two separate things that you should be able to use together. This hack modifies links, not text. The other hack modifies text, not links.
Reply With Quote
  #40  
Old 03-17-2005, 12:30 AM
gregwatson gregwatson is offline
 
Join Date: Jan 2005
Location: Iowa
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
It's two separate things that you should be able to use together. This hack modifies links, not text. The other hack modifies text, not links.
It's probably just a matter of "sequence" ... right now this won't modify a link that is created by GAL ... I was trying to simply GAL ...

Greg
Reply With Quote
  #41  
Old 03-17-2005, 12:38 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry this may be kind of off topic, but how does the Amazon associates thing work? Do you place ads? Explain this to stupid old me.
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 11:06 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.04394 seconds
  • Memory Usage 2,311KB
  • 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
  • (2)bbcode_code
  • (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
  • (4)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