I have looked through all 9 pages here and havent seen this question asked yet so here goes. I have 3 packages created. If is possible to have a page (lets call it index.php) and have sections of that page hiddent to different packages. Eg Navigations - If group 1 logged in they would see the navigation assigned to their group but will not see group 2 and 3. If group 2 logged in they would see the navigation assigned to their group but will not see group 1 and 3. And If group 3 logged in they would see the navigation assigned to their group but will not see group 1 and 2. I saw this asked when asking about the template files (Click Here) But I want it to work on non template pages. (PHP)
you may use something like that in your PHP PHP: <?phpsession_start(); ?>some html here common for all products....<?php if (in_array(3, $_SESSION['_amember_product_ids'])){ ?>HERE you insert html suitable for product#3 only<?php } ?>..................<?php if (in_array(2, $_SESSION['_amember_product_ids'])){ ?>HERE you insert html suitable for product#2 only<?php } ?>
This doesnt work for me, my $_SESSION is an empty array. I am using new_rewrite, is this a problem? Why is my $_SESSION empty? Thanks