Page 1 of 1
Hi basicaly im unsure how to doit but on my site http://www.
Posted: Fri Mar 17, 2006 4:59 pm
by Lethal Daku
Hi basicaly im unsure how to doit but on my site
http://www.myprofilepic.com
it has login box on the main page and when u sign in it still shows the login box
i was wondering how i would hide the login box for logged in users
Posted: Fri Mar 17, 2006 5:18 pm
by timvw
All you woud need is an if-else statement... and a function or variable to check if the user is logged in...
Code: Select all
<?php
if (user_logged_in()) {
// do nothing
} else {
// show login box
?>
some html for login box
<?php
}
?>
Posted: Fri Mar 17, 2006 5:20 pm
by Lethal Daku
removed
Posted: Fri Mar 17, 2006 5:33 pm
by timvw
And which part of my post didn't you understand?
Posted: Fri Mar 17, 2006 5:34 pm
by Lethal Daku
non as im not a coder,jus lookin for abit of gudiance for that 1 thing
Posted: Sat Mar 18, 2006 3:50 pm
by Lethal Daku
removed...
Posted: Sat Mar 18, 2006 3:52 pm
by Lethal Daku
dunt look any diff but guy who did it sent it n said its diff

Posted: Sat Mar 18, 2006 3:53 pm
by John Cartwright
Lethal Daku wrote:dunt look any diff but guy who did it sent it n said its diff

What?

Posted: Sat Mar 18, 2006 3:57 pm
by Lethal Daku
removed
Posted: Sat Mar 18, 2006 6:16 pm
by mickd
Pseudocode?
Code: Select all
<?php
if (user=logged in) {
// do nothing
} else
show login.php
?>
That isn't actual code...
Posted: Sun Mar 19, 2006 6:11 am
by Lethal Daku
if got no exp in this thats why i fort it wud be better to ask so