Hello,
I using chatroll on my website and i want to use cb avatar! Actually, the chetroll have support for Joomsocial, this the code used:
Code:
/**
* Import JomSocial libraries, if it is installed.
*/
if( file_exists(JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php') ) {
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
}
// JomSocial avatar support - For SSO Integration!
// See: http://www.jomsocial.com/docs/User_Object
if (class_exists('CFactory')) {
$jsUser =& CFactory::getUser();
$attr['upic'] = $jsUser->getAvatar();
// Set profile link to JomSocial profile page
$attr['ulink'] = CRoute::_(JURI::root() . 'index.php?option=com_community&view=profile&userid=' . $jsUser->id);
}
How i make a code to display the CB Avatar?
ThankYou!