Another convert from wp-united here. It was wigging out the style of the forum header and other things too, glad to see it go!
I second this feature though, there should be a switch in the options panel for opting to phpbb avatars instead of gravatar.
About how to do it, WP-United is a pretty heavy mod. It modifies a good number of core files in phpbb, and then writes WP’s “index.php” as “blog.php” after you point it to the WP install location in the phpBB ACP. It takes over wordpress functions from phpbb, so how they do it will likely be irrelevant.
You can add a hook to re-route the avatar get function though, like this:
add_filter(‘get_avatar’, array($this,’site_get_avatar’), 10, 5);
function site_get_avatar($avatar, $id_or_email, $size, $default, $alt){
//$avatar format includes the tag <img>
$imgpath = “https://website.com/image/myownimage.jpg”;
$my_avatar = “<img src='”.$path.”‘ alt='”.$alt.”‘ height='”.$size.”‘ width='”.$size.”‘ />”;
return $my_avatar;
}
Those 5 paramaters are:
1 – $avatar: the avatar given by WordPress with the tag . This is not the path of the default image.
2 – $id_or_email: this is the email or id of the user
3 – $size: size of the image
4 – $default: this should be the default image provided by WordPress or the path given by us when we used get_avatar (third parameter as shown previously)
5 – $alt: this is the alt value given in your img tag.
Hope this helps! Here’s more info about it – https://www.sanisoft.com/blog/2010/01/04/wordpress-the-get_avatar-hook/