Amazon parser

Amazon parser [Paid] 4.0

No permission to buy ($35.00)

AndyB

Well-known member
AndyB submitted a new resource:

Amazon parser - Adds Amazon affiliate ID to links in messages.

Premium upgrade:

For $25.00 USD this add-on along with the entire collection may be downloaded for up to one year. Please see the colletion in the Resources area at this URL:

https://www.xf2addons.com/

Description:

Adds Amazon affiliate ID to links in messages.

The Amazon parser add-on is used to convert Amazon links immediately after a message is saved. The converted links will include your Amazon affiliate ID.

(Example of Options page)...

Read more about this resource...
 
Looks like this is only looking for "&tag={id}" and ignores "?tag={id}" (meaning that it assumes that {id} will always be one of several URL params instead of possibly being the only param).

The end result is that "www.amazon.com/author/ikennedy" got turned into "www.amazon.com/author/ikennedy&tag=aliensoup-20" which is actually an invalid URL and results in a 404 error when Amazon tries to redirect the URL. Entering the URL as "www.amazon.com/author/ikennedy?tag=aliensoup-20" in the post results in the URL being saved as "www.amazon.com/author/ikennedy?tag=aliensoup-20&tag=aliensoup-20".

Ideally "?tag={id}" checked if present so that "&tag={id}" doesn't get appended and if there are no parameters at all in the URL then "?tag={id}" should be added instead of "&tag={id}".
 
Hi Andy, could you please add .nl in the parser? We have Amazon in the Netherlands now :)
 
Back
Top Bottom