propmaster Posted December 14, 2010 Share Posted December 14, 2010 I am working with some code where if it is the admin logged in (member 1000) it will load one members menu and if anyone else logs in they get a different menu. The way I have it right now, anyone logged in it is correct but when the admin is logged in it loads both menus. I need to make it load this "OR" that menu. Thanks in advance! Tim <? include("themes/".$setts['default_theme']."/includes/side_nav/inc_side_nav_members_menu_tree.php"); ?> <? if ($_SESSION['memberid']== 1000) { ?> <? include("themes/".$setts['default_theme']."/includes/side_nav/inc_side_nav_members_menu_tree2.php"); ?> Quote Link to comment Share on other sites More sharing options...
sasa Posted December 14, 2010 Share Posted December 14, 2010 <? if ($_SESSION['memberid']!= 1000) include("themes/".$setts['default_theme']."/includes/side_nav/inc_side_nav_members_menu_tree.php"); ?> <? if ($_SESSION['memberid']== 1000) { ?> <? include("themes/".$setts['default_theme']."/includes/side_nav/inc_side_nav_members_menu_tree2.php"); ?> Quote Link to comment Share on other sites More sharing options...
propmaster Posted December 14, 2010 Author Share Posted December 14, 2010 That fixed it!! I would have never figured that out. Many thanks SASA!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.