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"); ?> Link to comment https://forums.phpfreaks.com/topic/221599-need-help-making-this-work-please/ 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"); ?> Link to comment https://forums.phpfreaks.com/topic/221599-need-help-making-this-work-please/#findComment-1147096 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!!! Link to comment https://forums.phpfreaks.com/topic/221599-need-help-making-this-work-please/#findComment-1147167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.