Posted on Tuesday 19th February 200 at 08:03 PM | |
Crown Newbie |
I want to edit the member system so that when an admin logs in theres a differnt header showed, and when a basic member they will hav a differnt header. Is there away i could do this ? |
Posted on Tuesday 19th February 200 at 10:47 PM | |
zackcez Newbie |
Try: Code if ($logged[userlevel] == 4 || $logged[userlevel] == 6) { Admin Header Here } elseif ($logged[userlevel] == 2) { Normal Member Header here } I think thats rite... |
Posted on Wednesday 20th February 2 at 07:50 PM | |
Crown Newbie |
Hmm i duno if you understand what i mean, I have a file called header.php and adminheader.php ... i want to display one of them one for admin and one for members which when an admin logs in he will get the adminheader.php .. if this makes any scences |
Posted on Wednesday 20th February 2 at 11:37 PM | |
zackcez Newbie |
Code if ($logged[userlevel] == 4 || $logged[userlevel] == 6) { include("adminheader.php"); } elseif ($logged[userlevel] == 2) { include("header.php"); } fairly simple... |
Posted on Thursday 21st February 20 at 06:06 PM | |
new2old Junior Member |
Zack your learning ;) |
Posted on Thursday 21st February 20 at 10:19 PM | |
Crown Newbie |
That will wprl ? |
Posted on Thursday 21st February 20 at 10:38 PM | |
DanielXP Senior Member |
Yup |
Posted on Thursday 21st February 20 at 10:42 PM | |
Crown Newbie |
I get this Parse error: syntax error, unexpected '}' in D:\wamp\www\UserSystem\index.php on line 22 heres my code http://pastesite.com/197 |
Posted on Thursday 21st February 20 at 10:52 PM | |
DanielXP Senior Member |
Line 19 Code }else Its not closing on any thing. Im not sure what your doing on there, but if you delete that it might work. |
Posted on Friday 22nd February 2008 at 03:32 PM | |
Crown Newbie |
if i remove that it will let me login but then it will take me to the login screen again :S |