Display logged username on other page than profile page.

Permalink
How can I display logged users username on home page e.g. "Hello username". I don't want to use "user-info" add on. I know little php and mysql, can someone give me any advice how to do this?

View Replies: View Best Answer
pvernaglia replied on at Permalink Best Answer Reply
pvernaglia
<?php
  $u = new User();
  echo $u->getUserName();
?>


http://www.weblicating.com/c5/cheat-sheet/...
tomekm replied on at Permalink Reply
Yes! This is what I need, thank you ;)