MyBB Community Forums

Full Version: What's the code snippet to display someone's avatar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I figured out that:

{$mybb->user['avatar']}

displays my avatar when I put it in img tags... But how do I display the users' avatar? I'm trying to put avatars on the forum index in the last posts column.
I think this would be more of a plugin kind of thing, because you would have to get the userid of the poster, and then get the avatar url from the users table.
The code you're using will not work on last post area. You'll need this plugin: http://yaldaram.com/showthread.php?tid=1836
(2011-08-10, 07:50 AM)Yaldaram Wrote: [ -> ]The code you're using will not work on last post area. You'll need this plugin: http://yaldaram.com/showthread.php?tid=1836

Yeah, I'll probably just end up subscribing to your forum. Sleepy