MyBB Community Forums
Avatar on last post - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: Avatar on last post (/thread-76173.html)



Avatar on last post - dannydee - 2010-08-15

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
   


RE: Avatar on last post - Dylan M. - 2010-08-15

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


RE: Avatar on last post - dannydee - 2010-08-15

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


RE: Avatar on last post - Janota - 2010-08-15

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.


RE: Avatar on last post - Nathan Malcolm - 2010-08-15

<img src="{$mybb->user['avatar']}" height="40" width="40" >

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


RE: Avatar on last post - Dylan M. - 2010-08-15

Hmm, I didn't even consider calling the $mybb var directly in the template like that. Good call Janota. Elegant solution.


RE: Avatar on last post - Dylan M. - 2010-08-15

(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


RE: Avatar on last post - thalhah - 2011-01-28

i want this plugin too.. anyone?