Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 495
0 Users 6 Guests Online
Forum Index » PHP + MySQL » Member system blehh...
Posted on Tuesday 19th February 200 at 08:03 PM
Crown
templates/default/images/noavatar.png's Avatar
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
templates/default/images/noavatar.png's Avatar
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
templates/default/images/noavatar.png's Avatar
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
templates/default/images/noavatar.png's Avatar
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
templates/default/images/noavatar.png's Avatar
Junior Member
Zack your learning ;)
Posted on Thursday 21st February 20 at 10:19 PM
Crown
templates/default/images/noavatar.png's Avatar
Newbie
That will wprl ?
Posted on Thursday 21st February 20 at 10:38 PM
DanielXP
avatars/1.png's Avatar
Senior Member
Yup
Posted on Thursday 21st February 20 at 10:42 PM
Crown
templates/default/images/noavatar.png's Avatar
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
avatars/1.png's Avatar
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
templates/default/images/noavatar.png's Avatar
Newbie
if i remove that it will let me login but then it will take me to the login screen again :S