By Alessandro on Thursday, 27 August 2015
Posted in General Issues
Replies 7
Likes 0
Views 1.6K
Votes 0
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
Hey Ale,

You will need to take a look at the file /components/com_komento/classes/profileVendors.php
·
Friday, 28 August 2015 01:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
thank you for info. I made a some attempts to integrate the code in the file that you suggested but I only got bad results .

Can you give me a hint on how to do ?

Regards,
Alessandro
·
Monday, 31 August 2015 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alessandro,

I am really sorry for the delay of this reply. I am sorry but it seems like you are using Komento free version and our support service are only available for Komento Pro and above. You can refer to the page here for more info, http://stackideas.com/komento/plans .

Thank you for your kind understanding.
·
Wednesday, 02 September 2015 16:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the information you have provided.

Before proceeding with the purchase of a professional plan I would like to know if you can help with the integration of the two components (at least for the part relating to the avatar), I would not want that after the purchase of a professional or unlimited plan will not however help me with this customization.

I look forward to hearing from you.

Thank you
Alessandro
·
Wednesday, 02 September 2015 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Alessandro,

If you purchase the Pro plan, we'll integrate it for you provided that:

1. The back end access is provided
2. The ftp access is provided
3. The instructions to obtain avatars for SLogin is provided correctly.
·
Thursday, 03 September 2015 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for info.

Regards,
Alessandro
·
Thursday, 03 September 2015 18:29
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Alessandro.
·
Thursday, 03 September 2015 19:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post