Hi,
i have installed SLogin extension to allows users to login to Joomla using social network account like as Facebook, Google, etc..
Now i need to integrate Slogin and Komento to display in Komento comment the Slogin avatar.
IThe code that retrieves the Slogin Avatr is:
$profileLink = $avatar = '';
if(JPluginHelper::isEnabled('slogin_integration', 'profile') && $user->id > 0){
require_once JPATH_BASE.'/plugins/slogin_integration/profile/helper.php';
$profile = plgProfileHelper::getProfile($user->id);
$avatar = isset($profile->avatar) ? $profile->avatar : '';
$profileLink = isset($profile->social_profile_link) ? $profile->social_profile_link : '';
}
else if(JPluginHelper::isEnabled('slogin_integration', 'slogin_avatar') && $user->id > 0){
require_once JPATH_BASE.'/plugins/slogin_integration/slogin_avatar/helper.php';
$path = Slogin_avatarHelper::getavatar($user->id);
if(!empty($path['photo_src'])){
$avatar = $path['photo_src'];
if(JString::strpos($avatar, '/') !== 0)
$avatar = '/'.$avatar;
}
$profileLink = isset($path['profile']) ? $path['profile'] : '';
}
Can anyone suggest how to integrate it with Komento and which files change ?
Thank you in advance
Ale