Skip to Content Skip to Menu

Integrating CB Avatar & Chatroll?

10 years 5 months ago - 10 years 5 months ago #245800 by FabioZumbi12
Integrating CB Avatar & Chatroll? was created by FabioZumbi12
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!
Last edit: 10 years 5 months ago by FabioZumbi12.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 5 months ago #245831 by nant
Replied by nant on topic Integrating CB Avatar & Chatroll?
I would ask the module developer to make changes to support Community Builder also.

The CB url looks like:

index.php?option=com_comprofiler&task=userprofile&user=XXXI&temid=YYY

where XXX is the user id and YYY is the item id of your Joomla menu for your profiles.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum