[pmwiki-users] Amazon Associates Links

Dave Cooke david at ellendee.co.uk
Wed Dec 5 09:31:05 CST 2007


Steve Glover <steve <at> fell-services.net> writes:

> 
> On Tue, 2007-12-04 at 20:25 -0500, David Bengtson wrote:
> > Thanks for the suggestion, but I need the Javascript and link to
> > Amazon so I can get a referral fee. It seems I'll have to tweak
> > config.php. 
> 
> Are you sure?
> 
> We've just been including the Amazon Associate code in the links, thus:
> 
> http://quality.fell-services.net/bs.php
> 
> Cheers
> 
> Steve
> 
Hi All

Steve: If you want to get anything back from Amazon you have to add your 
personal code for the site
Dave: I've created markup for each code in config.php:
Markup('amazonad', 'directives',
  '/\\(:amazonad:\\)/', 
  Keep("<div><script charset='utf-8' type='text/javascript' 
src='http://ws.amazon.com/widgets/q?
ServiceVersion=20070822&MarketPlace=US&ID=V20070822/US/fantandscie03-
20/8002/c31ce460-37f0-4476-b611-4e51cf5f0cf2'> </script> <noscript><a 
href='http://ws.amazon.com/widgets/q?
ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%
2Ffantandscie03-20%2F8002%2Fc31ce460-37f0-4476-b611-
4e51cf5f0cf2&Operation=NoScript'>Amazon.com 
Widgets</a></noscript></div>") );

then on the page place (:amazonad:)

I don't think there's another way!

Dave C






More information about the pmwiki-users mailing list