By Fagault Eric on Wednesday, 25 January 2017
Posted in General
Replies 4
Likes 0
Views 134
Votes 0
Hello,
I would have liked to make a change to the notification in the activity stream when two members are friends.
I would like to add the member's profile photo.
Can you tell me where (what file) I can do this?

In the idea of ​​the attached image.

thank you very much



Best regards.

Eric
Hello,
I would have liked to make a change to the notification in the activity stream when two members are friends.
I would like to add the member's profile photo.
Can you tell me where (what file) I can do this?

Avatar + cover photo

thank you very much


Best regards.

Eric
·
Wednesday, 25 January 2017 20:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Eric,

That requirement is a bit complicated to be done and customization is beyond our support scope. However, I'll help you on which file you might want to start. You can look in this file: ../media/com_easysocial/apps/user/friends/friends.php , function onPrepareStream .

You will see this codes:

$item->display = SOCIAL_STREAM_DISPLAY_MINI;
$item->title = parent::display('streams/friends.title');


This codes only display a mini stream item. You can change the SOCIAL_STREAM_DISPLAY_MINI to SOCIAL_STREAM_DISPLAY_FULL . And add this extra line of code:


$item->preview = parent::display('streams/friends.preview');


You need to create a new file friends.preview.php in /media/com_easysocial/apps/user/friends/themes/default/streams/

Hope this helps.
·
Thursday, 26 January 2017 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
I do a test on this file:
"/media/com_easysocial/apps/user/friends/themes/default/streams/friends.title.php"
I added (to test) a simple "echo" and this appears well in the notification in the thread when a friend request is accepted.

Now I have to try to call the avatar picture and cover.

What do you think ?

Best regards.

Eric
·
Thursday, 26 January 2017 17:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Eric,

To get the user avatar and cover, you must first load the Easysocial user:

$esUser = ES::user($id); // $id is the user id

// Avatar
$user->getAvatar();

// Cover
$user->getCover();


I'm sorry but I can only help you until here since this is beyond our support scope. Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.
·
Thursday, 26 January 2017 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post