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)

amykhar 01-26-2005 05:28 PM

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

OrangeFlea 02-04-2005 03:00 PM

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.

cteselle 02-04-2005 03:51 PM

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.

OrangeFlea 02-04-2005 04:15 PM

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?

cteselle 02-04-2005 04:21 PM

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.

OrangeFlea 02-04-2005 06:44 PM

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?

gregwatson 03-16-2005 11:28 PM

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

Greg

Installed

amykhar 03-17-2005 12:12 AM

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.

gregwatson 03-17-2005 12:30 AM

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

Adrian Schneider 03-17-2005 12:38 AM

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. :)


All times are GMT. The time now is 11:11 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.01175 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_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