MyBB Community Forums

Full Version: myBB RC2 - Avatar in header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This simple code change in the header_welcomeblock_member template will place yor user avatar in the welcome box next to the PM icon. Placement will be of your choice.


To place the avatar to the left of the PM indicator icon:

Search for:
<td class="trow2" align="center"><img src="$theme[imgdir]/$pmicon" alt="!"></td>

Add above:
<td class="trow2" align="center"><img src="$mybbuser[avatar]"></td>

Click Update Template.


To place the avatar to the Right of the PM indicator icon:

Search for:
<td class="trow2" align="center"><img src="$theme[imgdir]/$pmicon" alt="!"></td>

Add below:
<td class="trow2" align="center"><img src="$mybbuser[avatar]"></td>

Click Update Template.

This is a sample of what it will look like with the avatar to the left of the PM icon:
If you can't see the attachment then you can find it here:
Avatar in header preview.

nice Big Grin

Indeed, thanks for this. Smile
Neat!