Login information
-
On my website http://www.klifix.eu I like to add the username in my header.
I currently use this code:
[code]<?php global $userdata; get_currentuserinfo();
echo('Ingelogd als: ' . $userdata->user_login . "\n");
?>[/code]This only shows the username when logged in. But when not logged it showes nothing. I’d like to add the function to show the name ‘guest’ when a user is not logged in.
Anybody knows how to do this?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Login information’ is closed to new replies.