By Mist on Thursday, 19 February 2015
Posted in General Issues
Replies 15
Likes 0
Views 762
Votes 0
The way the stream filtering works by default, it's great for most majority of user cases. but sometimes we need to achieve a little different "filtering" algorithm.

Currently the stream filters are segregated in such way that we have.

1. Filter "all stuff" (show all items from all "apps") by "Everyone" , "Followers" or "Me & My Friends"
2. Filter only stuff from a specific app. And here, the "blog" app will filter only my items (unless it's a bug)

So, there is no currently way, as far as i can see ... to have a "combined" filtering scenario.

Basically we should be able to filter EACH app based on the "Everyone/Followers/Me&My Friends" scenarios.

Another thing i need is the posibillity to "custom combine" the filters

1. Define the "who" filter (Everyone,Followers, Me & My friends)
2. Define the "what" filter (what apps to include / exclude from the results)

This will allow to create such awesome custom filtering capability. We can set-up the filters in our own way.
For example

1. Filter 1 - Show all Blog items for "Followers"
2. Filter 2 - Show all Activity for "Followers" (display only "komento" items, "profile update" and so on)

Another way to summarize this is ...

* create filters based on this algorithm

Filter items for {app array here: app1,app2,app3 or ... "all apps"} posted by {Everyone, or Followers, or Me & My Friends}


You get the point ...

So, is there any way to achieve this "custom combined" filtering ? Any way to do it within templates override ? (maybe you guys have some hidden magic within EasySocial api that allows this)

Thanks !
I noticed inside EasySocial Documentation that the ES API does have some methods for retrieving streams in a custom manner.
http://docs.easysocial.io/developers/stream/retrieving_streams

- Stream can be retrieved for a "context" (certain app, or "all" ... i am not sure if it allows multiple apps)
- Stream can be retrieved for an "actor type" (friends,followers etc)
- "Context" + "Actor Type" are part of the "options" array, so they can be "combined" to achieve a customized stream retrieval.

This is so cool ... now, i only have to figure out how to create those "custom" filters in the template override.

Basically in my case scenario, what i need is:

1. Stream filter to retrieve "blog" items for Followers
2. Stream filter to retrieve "blog" items for Everyone
3. Stream filter to retrieve "combined" items such as: komento, following item, profile change item
·
Thursday, 19 February 2015 07:24
·
0 Likes
·
0 Votes
·
0 Comments
·
So, long story short, inside the template file dashboard/default.php, i have these 2 stream filters

Filter "everything" for "followers"

 <li class="text-center <?php echo $filter == 'following' ? 'active' : '';?>" data-dashboardSidebar-menu data-dashboardFeeds-item data-type="following" data-id="" data-url="<?php echo FRoute::dashboard( array( 'type' => 'following' ) );?>" data-title="<?php echo $this->html( 'string.escape' , $this->my->getName() ) . ' - ' . JText::_( 'COM_EASYSOCIAL_DASHBOARD_FEED_FOLLLOW' ); ?>">
<a href="/following">Following News</a>
</li>


Filter "everything" for "everyone"

<li class="text-center <?php echo $filter == 'everyone' ? 'active' : '';?>" data-dashboardSidebar-menu data-dashboardFeeds-item data-type="everyone" data-id="" data-url="<?php echo FRoute::dashboard( array( 'type' => 'everyone' ) );?>" data-title="<?php echo $this->html( 'string.escape' , $this->my->getName() ) . ' - ' . JText::_( 'COM_EASYSOCIAL_DASHBOARD_FEED_DASHBOARD_EVERYONE' , true ); ?>">
<a href="/everyone">All news</a>
</li>


I have a feeling that we can play around with that "data-type" , "data-id" , "data-url" to achieve a more customized stream retrieval.

Can you guys post some working examples, if possible, to showcase how to do it ?
I am pretty sure this can be usefull for a lot of people.

Thanks !
·
Thursday, 19 February 2015 07:59
·
0 Likes
·
0 Votes
·
0 Comments
·
subscribe++
·
Friday, 20 February 2015 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Following as well.
·
Friday, 20 February 2015 14:22
·
0 Likes
·
0 Votes
·
0 Comments
·
+1
·
Friday, 20 February 2015 17:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I am really sorry for the delay of this reply as it is actually a public day off for us here. Currently this isn't possible but it would be a good idea though to have combined filters. Maybe with our new stream layout for 1.4, we could achieve this but we'll see
·
Friday, 20 February 2015 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for replying Mark.
Yes, if this feature can make into 1.4 release it will be so awesome. I think this it's a must have, as quick as possible.

The stream stay at the CORE of every social app.
So, an EasySocial feature that will allow to create "custom combined filters" for the stream it's mandatory.

1. Allow us to choose the "who" (actor type: everyone/followers/me & my friend)
2. Allow us to define the "what" (context type: what stream item to show / wich app/apps to include)
3. Allow us to save this "combination" as a custom filter.

By having this, the posibilities of filtering the stream are ENDLESS !!!
·
Friday, 20 February 2015 23:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

Unfortunately not everyone really prioritize on the stream of EasySocial based on the feed backs that we have gathered. It looks like there are a lot of users who wants Videos / Pages more than anything else and this is why we are going to prioritize on Videos first.
·
Friday, 20 February 2015 23:22
·
0 Likes
·
0 Votes
·
0 Comments
·
I do love the idea of custom filters, but I tend to agree with Mark's statement. Most people I know have Videos and Pages as the top priorities for the next ES release, myself included.

Still, I hope filters are toward the top of the list. Mist, if you have added this to the Voices area, provide a link and I'll upvote the idea.
·
Saturday, 21 February 2015 00:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Justin
·
Saturday, 21 February 2015 00:11
·
0 Likes
·
0 Votes
·
0 Comments
·
i came a cross a social network where it utilizes custom profile type and app filters. They allow much more deeper filtration

filter (teacher) profile type (photos) updates
filter (student) profile type (photos) updates
Filter(student) profile type (#math) posts
!!! wow

so Like Mist has explained
1. Allow us to choose the "who" (actor type: profile type1, profile type2)
2. Allow us to define the "what" (context type: what stream item to show/#hashtags / which app/apps to include)

this way if am a student, i will just go to (Students) profile type check their trending #hashtags/photos/videos/blogs


If you are planning to create a niche social network for couple of profile types then you would need those features
Mark the question will be how hard is to achieve the following features if we are willing to customize the code. would it be a long bunch of changes. I'm not interested in filtering hashtags within profile types.




Regards,
·
Monday, 09 March 2015 21:07
·
0 Likes
·
0 Votes
·
0 Comments
·
muhanad wrote:

i came a cross a social network where it utilizes custom profile type and app filters. They allow much more deeper filtration



@muhanad care to share that site URL so we can see what you are talking about?
·
Tuesday, 10 March 2015 09:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Guys,

Thanks for the heads up.
·
Tuesday, 10 March 2015 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Justin Sturgis wrote:

muhanad wrote:

i came a cross a social network where it utilizes custom profile type and app filters. They allow much more deeper filtration



@muhanad care to share that site URL so we can see what you are talking about?


Hi Justin,

Check campussociety.com they have broken down the profile types according by different universities, when you click on campus, you only see what your profile type members have been doing(your university is the profile type). when you click on "Country" you are viewing what profile types in the same country are doing.

the nice thing about them is that you can filter apps/hashtags within a profile type.

Regards,
·
Wednesday, 11 March 2015 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Muhanad,

Thanks for sharing. I believe they will find useful information on your replies
·
Saturday, 14 March 2015 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post