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.