1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Amazon Parser All 3.0

Adds Amazon affiliate number to links in messages.

  1. AndyB
    Compatible XF Versions:
    • 1.2
    • 1.3
    • 1.4
    • 1.5

    The Amazon Parser All add-on will update existing Amazon links to links which include your Amazon affiliate ID number. This add-on will go through every post on your forum and update Amazon links.

    After updates are completed, you will want to use the Amazon Parser All add-on once every few months to verify all Amazon links are properly converted on your forum.
    (Example of Options page)


    (Example of Amazon Parser All page)


    (Example of Group Permissions)


    • Different affiliate IDs can be added for each country
    • Adds affiliate ID to Amazon product links. Amazon Product Link will have /dp/ or /gp/ in the URL.
    • Requires exec() execution
    1. Download amazonparserall_v3.0.zip and unzip it.
    2. Upload the Andy folder to your server. The correct location will be library/Andy.
    3. From your Admin Control Panel, go to the "Install Add-on" page.
    4. Upload the addon-AmazonParserAll_v3.0.xml file.
    5. Click the Install Add-on button.
    Operation Step 1:

    Enter your Amazon partner ID into the correct field in the Options page and Save.

    Operation Step 2:

    Go to your forum list and add "amazonparserall" to the end of the URL in your browser. For example:
    Full Friendly URLs
    non-Full Friendly URLs
    Operation Step 3:

    Click the "Update posts" link.

    At this point you will get a confirmation message.

    Click the back button on your browser. At this point it will appear as if nothing has happened, that is because you're looking at a cached page.

    Reload the page. You will now see the next post number which contains an unconverted Amazon link.

    Once you have verified the add-on is working correctly, you can change the Limit in the Options page to a higher number like 500. Reload the page. Now you will see 500 posts ready to be converted. You can once again click the "Update posts" link and 500 posts will be converted. You can make the limit number as high as you want.


    If for any reason the same post number continues to show, this means the add-on was not able to convert the link. There can be several reasons for example:
    1. There is no affiliate number entered into the Options page for that country.
    2. The URL is not proper.
    Operation Step 4 (option):

    Once the Amazon links have been all converted you might like to verify there are no Amazon tags with other affiliate numbers. To do this you will need to run this SQL in phpMyAdmin:

    SELECT post_id
    FROM xf_post
    WHERE (message LIKE '%/dp/%' OR message LIKE '%/gp/%')
    AND message LIKE '%amazon.%'
    AND message LIKE "%?tag=%"
    ORDER BY post_id ASC
    Change AFFILIATE-ID to your affiliate ID. If the query returns results, you will want to go to each post_id and edit/save the post in order to update the Amazon links to replace the existing affiliate IDs with your affiliate IDs.

    Questions and Answers:

    Q: Once I have converted all the older Amazon links can I uninstall this add-on?
    A: I suggest running this add-on once every few months to verify all Amazon links have been converted.​

    Sending a donation:

    If you like this add-on, please consider sending a small donation.


    Thank you.
    woody and BamaStangGuy like this.

Recent Updates

  1. See description
  2. See description
  3. See description

Recent Reviews

  1. apsmith21
    Version: 1.6
    Great add-on by a great developer, can't recommend enough! Exactly as advertised.
  2. pjkenned
    Version: 1.0
    Working great in XF 1.3