OpenTutorial:Amazon-Linker

From OpenTutorial
Jump to navigation Jump to search

This extension provides an easy way to insert Amazon.com product links into your wiki pages making it simple to monetize your wikis

Inspiration

Inspiration for this extension was the ISBN feature that MediaWiki has. I wanted to use it to monetize my Wiki so I made a hack to the parser.php

While this worked it became a pain to maintain as I had to rehack the parser.php file every time I upgraded my wiki.

So I made this extension.

Please leave me feedback on my talk page User_talk:Hapa

Enjoy.


What can this extension do?

This extension provides an easy way to insert Amazon.com product links into your wiki pages making it simple to monetize your wikis

See It In Action

The following ASINs are generated by this extension

  • {{#ASIN:B000MU82WG}}
  • {{#ASIN:B0009FIS3M}}
  • {{#ASIN:B00022PTRU}}


All that was entered onto this wiki page was the following


* {{#ASIN:B000MU82WG}}
* {{#ASIN:B0009FIS3M}}
* {{#ASIN:B00022PTRU}}


Usage

{{#ASIN:B001EUBSL0}}

Where "B001EUBSL0" can be any Amazon.com product number

This will automatically lookup the ASIN using Amazon Web Services (AWS) and return the following to your wiki page:

{{#ASIN:B001EUBSL0}}

The link generated will include your own Amazon.com Associates ID number allowing you to get credit if a user purchases the product, or any other product on Amazon.com


Download instructions

Get the code from Google Code Here


Installation

Unzip the contents of the zip file to a directory titled "Amazon-Linker" in your extenstions directory

Read the readme.txt file contained in the zip file for instructions on how to install this extension


Configuration parameters

Read the readme.txt file


Amazon.com Infoboxes

If you would like to have the Amazon.com infoboxes like the ones seen on http://www.opentutorial.com/Make_fire_text_using_photoshop#Amazon.27s_Related_Products

Place the following code at the end of your skin php file just before the </body> tag:

<!-- *************************  BEGIN AMAZON ENHANCED LINK SCRIPT ****************** -->

<script type="text/javascript" src="http://www.assoc-amazon.com/s/link-enhancer?tag=tsickist-20&o=1">
</script>
<noscript>
    <img src="http://www.assoc-amazon.com/s/noscript?tag=tsickist-20" alt="" />
<!-- *************************  END AMAZON ENHANCED LINK SCRIPT ****************** -->


External Links