Extension talk:AmazonPartnerLink/Archive 1

Latest comment: 12 years ago by Jasper Deng in topic dont waste your time

Changing for other Amazon sites.

This code is set up for the German Amazon site. For Amazon in other markets, the code must be modified, which is not too difficult to do.

What would be really interesting for international wikis would be to modify this code still more so that, based on the language selected by the reader (in preferences), the proper international Amazon site could be selected automatically. Of course, the wiki master would need to make associate arrangements with each of these sites )

Amazon has sites in France, Germany, Canada, Japan, England, and the U.S.

--C4duser 20:01, 20 September 2008 (UTC)Reply

Working for me - My two cents

I modified the searchlink code to my liking:

        # If the 1st Word was an ISBN and there was no title set 
		if($src[1] != "") {
			$output = "<a href='http://www.amazon.com/dp/$tmpisbn/?tag=$partner'>$src[1]</a>";
		} 
        # If the 1st Word was an ISBN and there was a title set http://www.amazon.com/dp/$tmpisbn/?tag=$partner
        else {
			$output = "<a href='http://www.amazon.com/dp/$tmpisbn/?tag=$partner'>ISBN: $src[0]</a>";
		}
	} 
 
    # If the 1st Word was not an ISBN, we use a Searchlink 
    else {
		$output = "<a title='Apoya la Venciclopedia. Cómpralo en Amazon.com' href='http://www.amazon.com/gp/search?ie=UTF8&keywords=$input&tag=$partner&index=blended&linkCode=ur2&camp=1789&creative=9325'><font color='#08A613'>$input</font></a> <img src='http://myweb.com/skins/monobook/external.png'>";
	}

This I can create links to the US Amazon while keeping whatever text I enclose in <amazon></amazon>. I also changed the color of Amazon links so readers can differentiate between internal links and amazon links and added a title reminding users to "support my web and buy it in Amazon.com". I also added the external link icon so it's more clear that you're leaving if you clik on it. Hope it helps. --Mark 03:54, 21 November 2009 (UTC)

dont waste your time

it does not work on 1.18+

And you did not try Project:Support desk first?Jasper Deng (talk) 03:34, 25 March 2012 (UTC)Reply
Return to "AmazonPartnerLink/Archive 1" page.