Hello, My Website carries 2 types of products: 1)Membership Subscriptions (price group: 1) -Free -1 yr -Lifetime 2) Registrations for Social Events (price group: -1) -Events available to everyone (free or paid members) -Events available only to paid members I would like to get some help in modifying members.html. When a user reaches hxxp://localhost/amember/member.php?price_group=-1 , I would like to have a members.html displayed with all of the segments hidden except the dropdown box which contains the -1 items. In other words I would like all of the following to be hidden: "Your subscriptions" "Newsletter Subscriptions" "Useful Links" "Payment History" I would like the "Add/Renew Subscription" text to read "Register for Events" Also I would like the "Membership Type" text to read "Events Available" The order button can stay as is. To put it into very simple code terms: IF pricegroup = -1 THEN hide the above mentionsed segments AND modify text headings in members.html ELSE use normal members.html Sorry for the long post, I just wanted to be as descriptive as possible. Thanks in advance!
Hello, You can do it a couple of ways the first way is to add something like the following throughout member.html. So the fields will be displayed unless the price_group is -1. PHP: {if $smarty.request.price_group != -1} ... {/if} Of you can just remove the fields from a duplicate version of member.html (for example member2.html), and modify member.php at the bottom to do something like the following: PHP: if ($vars['price_group'] == -1){ $t->display('member2.html'); } else { $t->display('member.html'); } I would probably opt for the second option if it was me. Jimmy
jimjwright, Thanks for the response. I think the second option is better too. I'm using the trial so my member.php is encrypted. I will try this code when I purchase the full version.