By Philippe on Thursday, 28 June 2018
Posted in Technical Issues
Replies 12
Likes 0
Views 562
Votes 0
Hello,

The user has the option to hide an item from his feed, by clicking Hide.
Only this masking is only valid for the user himself.
Other users and guests can see his hidden flows.

How can a masked flow element is hidden for everyone, including Guest ?
With a custom file maybe...

Thank you,
Philippe
Hi Philippe,

Currently it is not possible to achieve this. Hiding can be done on user's own stream items and on other stream items as well. If you change this behavior, it means that users will be able to hide other user's stream items.
·
Friday, 29 June 2018 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

Sorry I misspoke.
I meant that if a user decides to hide one of his stream items,
then this stream item would also be invisible by everyone, including the guest.
And not only for himself.

But of course a user could hide only his streams items.

Which file controls this ?

Philippe
·
Friday, 29 June 2018 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Philippe,

So basically you would like to achieve these 2 behaviors.
1. Hiding stream items will also hide them from other users, in addition to the owner.
2. Users can only hide their own stream items.

It is not possible to achieve these without modifying core files, which is not protected from future updates.
·
Friday, 29 June 2018 16:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes exactly.

Can I just know which files are affected and which functions ?
I will manage then (in any case I will try).

Thank you Raymond
·
Friday, 29 June 2018 16:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Philippe,

2. Can be achieved from template override of the file JoomlaFolder/components/com_easysocial/themes/wireframe/stream/default/item.php

1. You can look at the hide function at: JoomlaFolder/administrator/components/com_easysocial/models/stream.php
But unfortunately, all hidden items are stored to a db table which specifies the user to hide from. This means you would not be able to achieve this without performing a major customization.
·
Friday, 29 June 2018 17:13
·
0 Likes
·
0 Votes
·
0 Comments
·
It's too complex, I gave up.
Thanks anyway.

Philippe
·
Monday, 02 July 2018 17:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright Philippe. You're most welcome.

Regards.
·
Monday, 02 July 2018 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post