MyBB Community Forums

Full Version: How to add Last Post avatar on Index
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Thanks guyz I will trust you and give it a shot!

MikeInToshx

Awsome Wink
Guys I have found this tutorial but could anybody tell me what should I include in my template so that will return avatar?
http://forum.mybboard.de/thread-25245-po...#pid168936
Nothing. The avatar is included in that code and appended to {$user['profilelink']} in a way that breaks Google SEO support for profile links.

Of course that's for Who's Online, not last post..
Only add some query to online users, if you have that list on index you can see avatar of every user, but you can add some rules if Google SEO it's enabled xD.

Then you can put some code added and takes better results.

As Destroy says, you can broke the profilelink if you use this. But if you don't like your SEO, can use it xD, but id like to do with some plugin, it's more benefeit for users like me, i ever upgrade and use some templates, i don't want to do all code mods everytiime xD.

But if you wish you can do it with some new var called avatar and if no avatar you have to put some avatar, then you can go to your templates and add this var.
Man I need last poster avatar on index badly but I don't like using those plugins please could anybody suggest a core edit that will work similar to this one: http://community.mybb.com/thread-114472-...#pid869078

MikeInToshx

Did u give the plugin a try?..

What's so bad about using a plugin for it? I don't see any problems with it or notice any speed diff in loading the forum or anything.

U can still edit the code in the templates..
Yes I did and I only want the plugin to add avatars to index page not all over the board I mean I want to know where and what has been changed and the plugin is just to complex for me to figure that out sorry but it just me baby has nothing to do with the plugin!

Could anybody at least post a query to fetch so that I could create my own plugin please?

MikeInToshx

It doesn't do anything untill u put the code where u want it.

I wanted it only on the Index aswell so I activated the plugin, and added the code into forumbit_depth2_forum_lastpost only. It just has more options where u can put it aswell, but as long as u don't insert the code into your templates its all fine.

Anyway if u would change your mind, heres the pluginpage and informationpage:
Plugin: http://mods.mybb.com/view/first-last-post-avatar
Info: https://github.com/tommm/flpavatar

I quote:
"While this plugin generates the information it does not automatically create the image. It is up to you to decide how best to implement the avatar onto the page."

If u still didn't change your mind I won't bother u anymore Wink
You are not bothering me in any ways you are an awesome dude trying honestly to help me I really appreciate this if nobody will post a query here then I will have no chance but to use that plugin!

It makes seance now, I was checking the plugin and couldn't find any traces of it adding HTML to templates LOL
Pages: 1 2 3