MyBB Community Forums

Full Version: Group Icon usege out of forum posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i am trying to use as an alternative to using a user avatar across the site use the users grope image as their avatar to be but I have no idea where to go to get it to call as an alternative to
{$useravatar['image']}
 can someone help it really got me stumped
Bump_
Hi, it highly depends on where you want to replace the avatar in. Assuming you want to change it for the current user then it is probably located in the header template set. If this is the case you will need to hook to global_intermediate (before$header is eval'd) or global_end (after $header is eval'd), user and group data for the current user is already available at that point.

If you want to do it for posts you will need to hook to the post bit. And so on for every place where you want to do the replacement.