UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Slogin Avatar integration

Alessandro · ·
8:39 PM Thursday, 27 August 2015
None
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
The replies under this section are restricted to logged in users or users with an active subscription with us