Hello,
I have a Navigation menu and I am using the Techtuts user system (I know, I know its ****! but Im going to improve it, its just a baseline...).
How do I hide the Admin part of my Menu in my Navigation?
Thanks
Tom

Hello,
I have a Navigation menu and I am using the Techtuts user system (I know, I know its ****! but Im going to improve it, its just a baseline...).
How do I hide the Admin part of my Menu in my Navigation?
Thanks
Tom
if the user-level is admin then display the link.
don't know the code for techtuts system so can't post sorry.
Change variables and it will workPHP Code:if($usergroup = "admin"){
print("Admin bit");
}
Last edited by Luckyrare; 05-12-2006 at 06:39 PM.
You're using the wrong operator, it should be "==" rather than "=" to compare stuff.
kinda quit.
It actually uses 'level', the ID is the member number if you like. Use
PHP Code:<?
ob_start();
include("config.php");
if ($logged[username]) { echo ("Members Stuff"); }
if ($logged[level] == "5") { echo ("Admin stuff"); }
?>
Last edited by San$; 05-12-2006 at 08:00 PM.
Oh yes, it is Level.
San, I like your code as it has members and admins. This will be used in my 1st DJ Panel (being made to help me learn PHP). I could also use your code to make it have an integrated news system so i could have news reporters that are non DJ.
Thanks for that San![]()
Want to hide these adverts? Register an account for free!