I have a third-party chatroom script that I use on my BuddyPress site. What I would like to achieve is to replace the default chatroom Avatars with members actual BuddyPress Avatars instead…
var newMessage = “<img style=’vertical-align:middle; height:24px; padding-left:5px;’ src=’http://yoursite.com/members/image.php?id=”+mUID+”‘> “;
I’ve been told that I need to use bp_core_fetch_avatar() somewhere, but am clueless as how to achieve this.
Any help greatly appreciated.