• I am using CometChat on my site and its not reading the mingle avatar what do i need to do to get it to get the users avatars? I saw that one of the users that is logged in with his yahoo email had a Gravatar image for his mingle image. Only that avatar image is visible in the chat everyone else has the default image. What do i have to do so all the users avatars are visible in the chat?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter somosguatemala

    (@somosguatemala)

    This is what my integration.php looks like the functions what do i need to change? so the avatars appear as the mingle avatars? http://pastebin.com/Eis8i3Gd

    I think it has to do something with this?

    function getAvatar($data) {
    
            $data = explode('|',$data);
            $id = $data[0];
    
            return 'http://www.gravatar.com/avatar/'.md5($data[1]).'?d=wavatar&s=80';
    }
    Thread Starter somosguatemala

    (@somosguatemala)

    it has to be this

    function getAvatar($data) {
    
            $data = explode('|',$data);
            $id = $data[0];
    
            return 'http://www.gravatar.com/avatar/'.md5($data[1]).'?d=wavatar&s=80';
    }

    becuase when i erased it no image showed up what should i change it to so that the avatar and not gravatar is visible?

    Thread Starter somosguatemala

    (@somosguatemala)

    anyone? i tried

    function getAvatar($data) {
    
    	$data = explode('|',$data);
    	$id = $data[0];
    
    	return 'http://www.somosguatemala.com/wp-content/uploads/mingle/avatars/'  ; 
    
    }

    but dont know how to get specific users avatar for mingle

    I used this code in a WP + BuddyPress website but you can get the idea and change paths accordingly. Hope it helps.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get Mingle profile avatar pic on CometChat avatar?’ is closed to new replies.