MyBB Community Forums

Full Version: Avatar on last post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to display a users avatar on the forum display catergory sections where it says
Last post by.....
So basically the avatar from the last user to post would display?

Either we could post the avatar by the last post section or allow another colum on page? Huh

The section of page i refer to is seen in the image
[attachment=19372]
This would require a plugin that fetches the avatar for display. If you post in the plugins group I'm sure someone would help you with this relatively simple plugin. I would if I had the time, but I don't. Sorry Smile
Thanks for that Smile
Wasnt sure how it could be done and if it could be done as a template edit as such.
Ive posted it in the plugin request section.

Thanks for your thoughts
Heres what you can use to call a users avatar :
<img src="{$mybb->user['avatar']}" height="40" width="40" >

So maybe adding a new colum in forumdisplay somewhere might work.
<img src="{$mybb->user['avatar']}" height="40" width="40" >

That wouldn't work. It would display your avatar.
Hmm, I didn't even consider calling the $mybb var directly in the template like that. Good call Janota. Elegant solution.
(2010-08-15, 08:45 PM)N.Malcolm Wrote: [ -> ]<img src="{$mybb->user['avatar']}" height="40" width="40" >

That wouldn't work. It would display your avatar.

Yes, that would, which is why I didn't think of it. Crud, and here I was congratulating Janota on a nice idea. It still IS a nice idea, however it still needs the plugin to work.

<img src="{$poster['avatar']}" height="40" width="40" >
added into the appropriate place in forumdisplay_thread template then just needs a plugin to load that variable.

And then the plugin simply
i want this plugin too.. anyone?