nmaster64 Posted January 27, 2005 Share Posted January 27, 2005 If this is newbish, sorry, PHP just isn't my thing. Ok, I've got OScommerce and I've added columns to the 'customers' database for membership levels, most notably 'customers_group_id', which identifies their group. For instance, if 'customers_group_id' for a specific customer is 1, they are a bronze member, if 2, a silver, 3, a gold, and there are a couple more. 0 is default. I've set up another box in the right column for Member Links. I've got EVERYTHING set up except for one thing, member_links.php in the 'box' folder. This is what I need to do. Using the standard right-side box layout for OScommerce (2.2), I need the PHP code to do the following: A.) If the user isn't logged in, or 'customers_group_id' = 0, then this box is invisible. B.) If the logged in user's 'customers_group_id' field = 1, then display the box, containing a set of links (to a standard html pages). C.) If the logged in user's 'customers_group_id" field = 2, then they get a different set containing more links. D.) If the logged in user's 'customers_group_id" field = 3, then they will get another set with even more links. D.) If the logged in user's 'customers_group_id" field = 4, then they get a totally different link set. If ANYONE could help me even a little bit, I would REALLY appreciate it. Thanks. Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.