[SolidMean] Amazon and eBay Parser

Unmaintained [SolidMean] Amazon and eBay Parser 1.2.7

No permission to download
Compatible XF 1.x versions
  1. 1.3
  2. 1.4
  3. 1.5
License
http://creativecommons.org/licenses/by-nc-sa/4.0/
Visible branding
No

If this addon is useful to you, please consider donating any amount.​

DESCRIPTION
The Amazon/Ebay Parser Addon will change URL's directing users to Amazon or eBay to include an administrator's Amazon affiliate ID and eBay campaign ID, respectively. It will attempt to remove any existing affiliate tags, and will only change the URL of the anchor tag, it will not change the anchor tag's text that appears on the page.

Multiple Amazon and eBay affiliate country programs are supported. Make sure to enter the appropriate affiliate id(s) in the correct program(s) you've joined in the options.

This add-on doesn't add any queries, doesn't create a new bbcode, and doesn't change the database contents of posts, signatures, or conversations. It only changes links displayed/rendered on the page. It will also work with the XenForo Link Proxy feature.

SolidMeanAmazonParser1.webp


There is no branding, and no call-back/call-home code. As such, there are no guarantees in the usefulness of this addon.

USAGE
1) Upload the "library" folder to your xenforo root folder on your server.

2) Install the add-on with the included addon-SolidMean_AmazonParser.xml file via the XenForo admin interface.

3) Visit the options and look for the "Amazon/Ebay Parser" option, and click on it.

4) Enter your Amazon Affiliate ID's and eBay Campaign ID's in the appropriate text boxes provided. Leaving the boxes blank essentially disables the add-on.

SolidMeanAmazonParserOptions1.webp

SolidMeanAmazonParserOptions2.webp

PERFORMANCE & MEMORY
Performance isn't terribly affected, I did some non technical timings of parsing an extreme number of links:

Stock Xenforo 1.4.1 install, debug on, link proxy on, no other addons, and 1000 Amazon links in a message.
With Add-on: Timing: 4.7224 seconds Memory: 9.915 MB DB Queries: 10
Without Add-on: Timing: 4.0406 seconds Memory: 9.748 MB DB Queries: 10

This add-on uses the SimpleXML PHP function, which requires the libxml PHP extension, but it is enabled by default, so there shouldn't be many installations missing this.

More information, including License information, is included in the readme file.

Thanks goes to @Azhria Lilu for the idea, @Daniel Hood for the information on how this should work, and @Jeremy for his his BbCode Formatting information thread.

DEMO
Azhria Lilu's Reader's Society web site uses this addon. This is an example thread that shows it in action.
http://www.readersociety.com/threads/plague-pit-by-mark-ronson.284/
Related resources
Paid version of the more universal URL Parser:
[SolidMean] Comprehensive URL Parser
Author
SneakyDave
Downloads
251
Views
2,587
First release
Last update

Ratings

5.00 star(s) 3 ratings

More resources from SneakyDave

Latest updates

  1. Forgot to include the xml file.

    This has the correct xml file.
  2. 2015-09-01 Bug fix

    Fix a bug rewriting rover.ebay.com URL's that have percent-encoded content. Discovered by...
  3. Support for ebay's 'pages' subdomain.

    Now supports URL's such as http://pages.ebay.com

Latest reviews

Works like a charm! Automatically parses Amazon or eBay links and adds in affiliate code. I've set this up to work by pulling RSS into a node, then this add-on makes them affiliate coded offers. Great, and very easy to use.
S
SneakyDave
Thanks for the positive review, Matt!
A doddle to install, and because we have bargain forums where people post links to bargains they find, we started earning money on the Amazon affiliates programme right away. The recent update replaces the affiliate tag added by our members with our own so those people sneakily trying to earn revenue (which is against our rules) are foiled and we earn it instead. Good job, Dave.
S
SneakyDave
Thanks for the positive review Stuart, and the suggestions.
I have absolutely no need for this add-on, but I have downloaded it and I have enjoyed reading the code. My favourite part of the code is the Installer. 5 / 5 for being a total bloody genius. Well done :-)
S
SneakyDave
Thanks for the review Chris. Let me know if you see any obvious errors.
Top Bottom