XF 1.2 Inserting User Avatar in the Header does not work

What I need to achieve:
When the user is logged in, I want his/her avatar + summary info shown in the side bar to appear in the top right corner of the header.

What I did:
I pasted this in the header template:

What I got:
Nothing. There was no change to the header. However, I tried adding the same couple of lines to other templates and it worked as expected, i.e. the user avatar+summary appear wherever the code is pasted.

I would appreciate it if someone can help me understand why is that, and if there is a better way to do what I am trying to do.

Thank you in advance

P.S. I am new to this thing. Please feel free to state the obvious!
Added only the code above to the "header" template, as shown in the snapshot:

Please tell me I did something silly and it is easy to fix :)

Many thanks for your response!


XenForo moderator
Staff member
Perhaps it might be easier if you explain what it is you are trying to do.

Why are you trying to add a sidebar to the header?

Lukas W.

Formerly katsulynx
He wants to move or copy the first block of the sidebar, containing avatar, post count, likes and tropy points to the header.