Vegard Hansen
Friday 24 October 2003 12:34:04 am
Hi, i want to show some user information after the user has logged in. Like Welcome UsersName. Log out.
Anyone has the code for this?
Adolfo Barragán
Friday 24 October 2003 2:58:54 am
I do it so:
{section show=eq($current_user.contentobject_id,$anonymous_user_id)} <a href={"user/login/"|ezurl}>Login</a> | <a href={"user/register"|ezurl}>Register</a> {section-else} <a ref={"user/logout/"|ezurl}>Logout ({$current_user.contentobject.name|wash})</a> {/section}
RegardsAdolfo Barragán
Friday 24 October 2003 5:18:49 am
Thanks alot!
That helps me for a lot of work.. :)