Gossamer Forum
Home : Products : Links 2.0 : Customization :

Amazon.com mod not working

Quote Reply
Amazon.com mod not working
I have been trying for HOURS to get this mod to work, but it won't. The search always ends up blank, causing it to not show anything to search amazon with. Please help.
Quote Reply
Re: Amazon.com mod not working In reply to
What error are you getting? Email anaconda@anaconda.net if you have questions...Try posting this in CGI-Perl that's why you probably are not getting any replies...

elms
Quote Reply
Re: Amazon.com mod not working In reply to
The mod to do this for Links2 is just slightly different than for Links 1.1.

Since you didn't specify which you're using, I'll assume 1.1?

In site_html.pl
under sub site_html_search_results
place this code: (wherever you want the amazon results to show up)

<A href="http://www.amazon.com/exec/obidos/external-search?mode=books&keyword=@search_terms&tag=YOUR_AMAZON_ID" target="_blank">@search_terms</A>

The *only* difference is that you use @search_terms in Links2 instead of the query from Links1.1.
Make sure you put your reseller code where it says YOUR_AMAZON_ID.

You can modify the html around this however you want, I have mine in a nice little colored table with an amazon logo.

Raven
Quote Reply
Re: Amazon.com mod not working In reply to
Raven,

I might have misunderstood the original request. If you want searches displayed in your page not Amazon.com then what is needed is a separated cgi script like altavista.cgi, otherwise the code you displayed will work just fine...

elms