product link not displayed when using custom protection script

Discussion in 'aMember Pro v.4' started by gmtimothy, Aug 15, 2012.

  1. gmtimothy

    gmtimothy New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    Hello,

    I am using the custom php protection script in amember v4 below and explained here - http://www.amember.com/docs/Content/PHPScripts

    <?php include("aMember_Root_Dir/library/Am/Lite.php"); Am_Lite::getInstance()->checkAccess(array(1,3), 'My Protected Page Title'); .. any existing PHP code goes here ..&nbsp; ?>

    however how do I display the product link in the members page? I know that if you use the "Protect content" link in the amember admin you can get this to display, however I am avoiding using this method as I do not like the re-write function, as I use sessions to allow member access to various "protected" pages.

    I have decided to stay with amember v3.x until I can get this sorted out.

    Also on another note, does "My Protected Page Title" need to match that of the actual product name?

    Thanks for any help!!

Share This Page