Extension:Amazon-Linker

From MediaWiki.org

Jump to: navigation, search

           

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
Amazon-Linker

Release status: beta

Description Easily create Amazon.com product links by just entering their ASIN or ISBN
Author(s)  Kolomona Myer (HapaTalk)
Last Version  0.6b
MediaWiki  1.9.3, 1.10.0, and 1.13.3
License GPLv3 and CC-BY-SA
Download Google Code
readme.txt - Included in download
Example  {{#ASIN:B001EUBSL0}} Produces:

[1] Adobe Photoshop CS4

check usage (experimental)

Contents

[edit] NOTICE

This extension currently doesn't work due to Amazon's Product Advertising API Authentication policy change. Product Advertising API

I am current rewriting this extension and I should have a working version in a week or so. The good news is that I the new version I'm working on will be much easier to use. (hopefully) --Hapa 05:34, 25 August 2009 (UTC)

[edit] 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.


[edit] 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

[edit] See It In Action

You can see this in action on my wiki http://www.opentutorial.com/Make_fire_text_using_photoshop#Amazon.27s_Related_Products


[edit] 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 Adobe Photoshop CS4

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

[edit] Customizable Templates

The extension also provides for customizable output via a rudimentary templating system. Allowing for greater flexibility.

The templates can pull the following variables from Amazon.

  • %alink%
    • This is the link to the product which includes your associates tag.
  • %ASIN%
    • This is Amazon.com's unique product number for the item.
  • %name%
    • The name of the product.
  • %Manufacturer%
    • The manufacturer of the product
  • %Price%
    • Amazon's current price for the item.


[edit] Download instructions

Get the code from Google Code Here


[edit] 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


[edit] Configuration parameters

Read the readme.txt file


[edit] 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 ****************** -->