By Brian Turcsanyi on Wednesday, 03 May 2017
Posted in General
Replies 3
Likes 0
Views 398
Votes 0
Hello: We are using easysocial and easyprofile (not your product). Easyprofile has a profile/avatar photo that is part of the joomla profile. Can we have easysocial dispaly the profile photo from the joomla profile instead of from easysocial? Please let me know. thanks
Hi Brian Turcsanyi,

Regarding your inquiry, unfortunately it is not possible currently.
·
Wednesday, 03 May 2017 11:45
·
0 Likes
·
0 Votes
·
0 Comments
·
ok--- how about another idea. We did some digging and determined how you store the avatar photos and create the links to them. 4 of them... square, small, etc. We had an idea to write code to take the avatar photo from joomla and put it into the folder structure that you are using with easysocial. also... rewrite the links. this would be a workaround... and not perfect but might work.

Question: where you can help us. Is there a way to run a part of your code to take the avatar photo and convert it into the 4 formats you store? this will be similar to me taking my photo and your code storing 4 versions of it?

any help would be appreciated?

thanks
·
Wednesday, 03 May 2017 21:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Brian,

Hm, not entirely sure why would you want to do this but I suppose you could take a look at the method createAvatarFromFile in the file /components/com_easysocial/controllers/photos.php . Rather than using the $_FILES['tmp_name'], you could supply it with your own path (temporary folder or the source folder)
·
Wednesday, 03 May 2017 21:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post