iTunes Affiliate Pro
[resolved] Doesn't work with small icon option (4 posts)

  1. DeezNotes
    Posted 3 years ago #

    When using the iTunes Link Maker http://itunes.apple.com/linkmaker/ I cannot get it to transform URLs when using the "small button" HTML with Link option. The text only option works fine.

    For example...

    this works:
    <a href="https://itunes.apple.com/us/album/taxman/id401136641?i=401136642&uo=4" target="itunes_store">Taxman - Revolver</a>

    this does not work:
    <a href="https://itunes.apple.com/us/album/taxman/id401136641?i=401136642&uo=4" target="itunes_store"><img src="http://r.mzstatic.com/images/web/linkmaker/badge_itunes-sm.gif" alt="Taxman - Revolver" style="border: 0;"/></a>


  2. DeezNotes
    Posted 3 years ago #

    I figured out the cause of my issue. It's not related to the text or small icon option.

    The plugin is "tuned" for apps. I am using this solely based on music, so I had to change the source URL in the code.

    I made (2) changes on line 91 in the file itunes-affiliate-pro/itunes-affiliate-pro.php

    preg_match_all("/<a href=\"https:\/\/itunes.apple.com\/us\/album\/(.*?)\".*?>(.*?)<\/a>/i", $text, $matches);

    Maybe in the future, the plugin can be coded for various types of iTunes objects?

  3. Jorge A. Gonzalez
    Plugin Author

    Posted 3 years ago #

    Let me see what I can do about this.

  4. Jorge A. Gonzalez
    Plugin Author

    Posted 3 years ago #

    Version 1.3 deals with this issue and now works for all iTunes objects.

    @DeezNotes - Can you let me know if this is working properly on your site?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic