By Altitudes on Monday, 24 August 2015
Posted in Technical Issues
Likes 0
Views 742
Votes 0
Hello

I am using JFBConnect to allow my visitors to register to ES. When they choose an ESAD(*) profile type, then the following activity appears in ES dashboard:
[username] updated his profile picture (provided the user has one in Facebook for example)

No stream item should be created for ESAD users, so this should no be...

Thanks

(*) Profile type set with option "Allow Community Access" to No

.Fixed in ES 1.4.9
Hello Altitudes,

Regarding your issue, I've added a fix on your dev site and now the streams from ESAD users will not longer displayed. Below is the file I've modified.

JOOMLA/administrator/components/com_easysocial/models/stream.php

The same fix will be added into next release of EasySocial as well
Hope this help and have a nice day!
Sam
·
Tuesday, 25 August 2015 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

This is not the fix that was expected. I am the one who asked (and paid for the ESAD feature, so I can tell you how this is supposed to work

Streams for ESAD users should be displayed. But new activities should not be recorded. Think of the following scenario:
1- A normal user uses ES, stream items are generated.
2- An administrator switches his profile to an ESAD profile type.
3- Existing stream items for the user should keep on being displayed, but any other activity (outside of ES, since he does not have access to ES, so e.g. in Kunena etc.) should not generate any new stream item.

This is how it worked so far. So regarding my issue, the problem is just that in this particular case (user registering through JFBConnect, and choosing an ESAD profile type), no stream item should be created when his picture is fetched from the social network (e.g. Facebook).

Can you please revert you changes and check this again?

Thanks!
·
Tuesday, 25 August 2015 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thanks for the heads up. I've reverted the previous changes and added another fix on your test site. Can you please try again? The fix will only affect new actions perform by ESAD users. Can you try again?

Hope this help.
Sam
·
Tuesday, 25 August 2015 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, it seems to be fine

I registered as an ESAD user with Facebook (JFBConnect) and nothing appeared in stream, then I switched the user to a normal profile type and the user had some activities in ES, then I switched him back to an ESAD profile, and the activities are still there for the other users.

In a word, perfect
·
Tuesday, 25 August 2015 20:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You are most welcome. Glad to hear your issue now resolved
The fix will be added into next release of EasySocial as well.

Have a nice day!
Sam
·
Wednesday, 26 August 2015 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

This issue is still occurring in ES 1.4.8, it looks like the fix was no added to your repository...

I don't have the code changes that were made by Sam, I hope you have them on your side!

Thank you
·
Wednesday, 23 March 2016 21:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

I am sorry for the delay of this reply.

Thanks for reporting this. Look like one of our developer has overwrite my previous fix thus the fix wasn't added into new release

I've re-add the same fix into our development server. I've also patched the same fix on your EasySocial. The fix will only affect new actions perform by ESAD users.

Can you give it a try again?

Thanks and please accept my apologise for the inconvenient that may have caused to you.

Hope this help and have a nice day!
Sam
·
Thursday, 24 March 2016 15:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

By the way, below is the file I've modified on your dev site.

JOOMLA/administrator/components/com_easysocial/includes/stream/stream.php

Hope this help
Sam
·
Thursday, 24 March 2016 15:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Not rendering stream items for ESAD users seems to have been coded in the apps so far, for example in file:
media\com_easysocial\apps\user\users\users.php
// check if actor is an ESAD user, if yes, do not render the stream.
if (! $actor->hasCommunityAccess()) {
$item->title = '';
return;
}

I don't know if your fix should be in stream.php as you did or in media\com_easysocial\apps\user\users\photos.php

Only you can tell
·
Friday, 25 March 2016 06:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitude,

Thanks for the heads up on this one. What i did was to re-apply the fix that I've patched on your site previously. I also did a checking and both places will need that checking

Hope this help and have a nice day!
Sam
·
Monday, 28 March 2016 17:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Fine, in all cases this is working good when I test on my dev site

I will wait next ES version to have the fix on my production site.

Thank you!
·
Monday, 28 March 2016 18:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

Thanks for the heads up on this one. Yup, the same fix will be added into next release of EasySocial
Have a nice day!
Sam
·
Monday, 28 March 2016 18:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post