XF 2.2 Change avatar to username in birthday widget

Black Tiger

Active member
I would like to have the username displayed in the birthday widget (with age if age display is allowed by the user).
I've found a thread about this, but the template looks totally different now (lot smaller).
And i'm not into coding so I don't know what to do, I need some "find this and replace with that" kind of help with this. ;)
 

Black Tiger

Active member
I might have found it, I hope I did good.

I've changed the line which started with

Code:
<xf:avatar...etc>
to
Code:
<xf:username user="$user" rich="true" /><xf:if is="$user.Profile.birthday.age">({$user.Profile.birthday.age})</xf:if>

It seem to work so hopefully this is correct.

It would however be a lot nicer if this could be added to the members_online block in some way. So we got the online members and below that the birthdays.

Maybe somebody could help with that instead.
 
Last edited:
Top