Display logged username on other page than profile page.

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
  $u = new User();
  echo $u->getUserName();

tomekm replied on at Permalink Reply
Yes! This is what I need, thank you ;)