• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Log In/Log Out Problem (Log In/Log Out Problem)
Log In/Log Out Problem
Demon000
Posts: 5
Reputation: 0

Message # 1 | 8:58 AM
I'm trying to make a log in/log out button, but it doesn't show up on the page.
http://bitpedia.do.am/
Code
<li class='#'><?if($USER_LOGGED_IN$)?><a href = $LOGOUT_LINK$>$USERNAME$</a><?else?><a href = $LOGIN_LINK$>Log In</a><?endif?></li>
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 11:47 AM
Demon000,

Code
<li class='#'><?if($USER_LOGGED_IN$)?><a href="$LOGOUT_LINK$">$USERNAME$</a><?else?><a href="$LOGIN_LINK$">Log In</a><?endif?></li>


But I hope you understand that if a user clicks on his username after he logs in, he will be logged out. I don't think that's a good idea smile

Better use
Code
<a href="$LOGOUT_LINK$">Log out</a>
and
Code
<a href="$PERSONAL_PAGE_LINK$">$USERNAME$</a>

I'm not active on the forum anymore. Please contact other forum staff.
Demon000
Posts: 5
Reputation: 0

Message # 3 | 12:06 PM
Thanks, I got it. I'd rather make a dropdown when you hover on Username.
uCoz Community » For Webmasters » Design Customization » Log In/Log Out Problem (Log In/Log Out Problem)
  • Page 1 of 1
  • 1
Search: