UPDATES PayPlans 5.0.8 Released! Joomla 5.x and PHP 8.x compatible 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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

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