WordPress.org

Ready to get started?Download WordPress

Forums

How to get Mingle profile avatar pic on CometChat avatar? (5 posts)

  1. somosguatemala
    Member
    Posted 2 years ago #

    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?

  2. somosguatemala
    Member
    Posted 2 years ago #

    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';
    }
  3. somosguatemala
    Member
    Posted 2 years ago #

    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?

  4. somosguatemala
    Member
    Posted 2 years ago #

    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

  5. Daniel Bracho
    Member
    Posted 2 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.