Affiliate Links Not Working in Latest Update

Discussion in 'Troubleshooting' started by aseba, Jul 1, 2016.

  1. aseba

    aseba New Member

    Joined:
    Jun 9, 2010
    Messages:
    9
    Hi there, we upgraded the other day but the affiliate links no longer work. They produce an error that says:

    (function(){
    var data = "<a href=\"http:\/\/www.elitewriterslab.com\/amember\/aff\/go\/aplc?i=17\" rel=\"nofollow\">DFYT - Blog Planning and Content Building Templates<\/a>";
    document.write(data);
    })();

    There is also an issue with the file protections not working properly. It won't let you select a product. It just defaults to product 0. I'm not urgently concerned about that, but am hoping for a quick solution for the affiliate links.

    Any ideas?

    Alice
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello Alice,

    It is not affiliate link itself but code to place on webpage. Complete code should looks like
    Code:
    <script type="text/javascript" src="http://localhost/amember/b/777148337048/000004"></script>
    This code automatically update links/banner on affiliate site in event of you change its settings in your aMember admin interface.

    Direct affiliate link for my example above is
    http://localhost/amember/aff/go/000004?i=4

    In affiliate section you should see both option 'Affiliate Link' and 'Code to place on web page'.

    Regarding issue with protection please contact us in helpdpesk - we will troubleshoot it.

    Best Regards.

Share This Page