protwecting content in joomla

Discussion in 'Setting-up protection' started by lazor, Jun 4, 2007.

  1. lazor

    lazor New Member

    Joined:
    May 22, 2007
    Messages:
    4
    We just installed aMember and I am trying to figure out how to protect content, since in Joomla content items are dished up through one file only, index.php. I can't move files into different folders and I cannot protect files within Joomla. - when I had our presale question they said it was possible to do. But how.....

    http://mydomain.com/index.php?option=com_wrapper&Itemid=50
    will take me to a very different content than
    http://mydomain.com/index.php?option=com_eventing&Itemid=62

    How can I protect different content items?

    For instance we have 3 membership levels.
    Free
    Silver
    Gold

    Free can access the home page - which is set to public
    Silver can access home page and content item #1 CANNOT access #2
    Gold can access home page and content items #1 and #2
    etc...

    Can someone please help?:(
  2. dynamicm

    dynamicm New Member

    Joined:
    Feb 24, 2007
    Messages:
    36
    PLEASE NOTE THIS IS EXAMPLE HOW IT WORK.

    The feild call array are your Product number's you setup in aMember for example , array(2) so any who sign for this Product #2 can see that page only.

    <?
    $_product_id = array(2);
    include"/home/username/public_html/amember/plugins/protect/php_include/check.inc.php";
    ?>




    For example your membership

    For instance we have 3 membership levels.
    Free let say this is Product #1 can only see Product #1
    <?
    $_product_id = array(1);
    include"/home/username/public_html/amember/plugins/protect/php_include/check.inc.php";
    ?>



    Silver " " Product #2 can only see Product #2
    <?
    $_product_id = array(2);
    include"/home/username/public_html/amember/plugins/protect/php_include/check.inc.php";
    ?>


    Gold " " Product #3
    array 1 and 3 can see Product #1 and Product #3 but can not access array 2 Product #2

    <?
    $_product_id = array(1,3);
    include"/home/username/public_html/amember/plugins/protect/php_include/check.inc.php";
    ?>





    pages must be name php and not htm
    page name Product1.php and so on
    code at the very top before <HTML><HEAD>


    <?
    $_product_id = array(1,2,3);
    include"/home/username/public_html/amember/plugins/protect/php_include/check.inc.php";
    ?>
    <HTML><HEAD>

Share This Page