Jump to content

Need help making this work please


propmaster

Recommended Posts

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

<?
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"); 
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.