By iman zaker on Friday, 07 August 2015
Replies 7
Likes 0
Views 883
Votes 0
Hi,
how to show special streams in stream module like streams of a group or a task using mod_easysocial_stream? it shows all streams so this module is unusable
I cloned mod_easysocial_stream and in mod_easysocial_stream.php met this code
$stream->getPublicStream( $total );
but don't know what to do??
Hey Iman,

I am not entirely sure what you mean by "special" stream but unfortunately you can't just modify the module's file. You need to modify the file in /administrator/components/com_easysocial/includes/stream/stream.php in the method @getPublicStream.

I am really sorry but unfortunately this is beyond the scope of our support and we would not be able to further assist you on these customizations.

Thank you for understanding.
·
Saturday, 08 August 2015 02:47
·
0 Likes
·
0 Votes
·
0 Comments
·
which code line or function filters streams ? for example streams of a special group

·
Thursday, 13 August 2015 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Iman,

You can take a look at /administrator/components/com_easysocial/models/stream.php at method @getStreamData if you want to modify the behavior of the stream data.

for example streams of a special group

I'm not really understand what do you mean by special group streams. Currently easysocial can only fetch single stream based on stream id by using the following method,
$stream = FD::stream();
$streamId = '1';
$stream->getItem( $streamId );


However it is just an example and the output is not as perfect as easysocial stream.
·
Thursday, 13 August 2015 19:56
·
0 Likes
·
0 Votes
·
0 Comments
·
----> I'm not really understand what do you mean by special group streams.

I want to show posts of a ES group in stream module
·
Monday, 17 August 2015 12:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Iman,

Ah I see. You can try to use the following method to retrieve stream from group.
$stream = FD::stream();
$streamId = false; // to retrieve all streams
$groupId = 2; // your group id
$streamType = 'group' // only retrieve stream inside cluster group
$stream->getItem($streamId, $groupId, $streamType);


Hope these help.
·
Monday, 17 August 2015 18:35
·
0 Likes
·
0 Votes
·
0 Comments
·
subject is : How to show streams of one group or one user , in "EasySocial Stream" module.
I want to show a number of latest posts of one group in module .
But your code shows only one post of a group .
·
Wednesday, 19 August 2015 12:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Iman,

What I show is just an example and you can freely modified it according to your needs. If you want to retrieve all streams inside specific group you need to consider a lot of things especially with the privacy of the groups. You can refer from the following files on how we generate streams for group, /components/com_easysocial/views/groups/view.html.php starting from line 756 until 847.
·
Thursday, 20 August 2015 12:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post