Hi
I see
this topic
and i have same problem
I need to limit activity stream just for friends
When you are selecting activity stream filter by "all" you can see all activity from all users in jomsocial
I want each user only see their friend's activity
Or if i can disable only 'filter by all' it's so helpful for me!
Cheers.
Hi, Saeed.
Wow, topic you linked get lost somehow... but solution I provided there works 100%.
Changing this setting as I provided should set main activity stream with filter "Me and friends".
Did you checked it?
Hi, Saeed.
Of course you will see all users activity - because you set filter to all. So it shows all.
It does what it should be...
I presume that you want to forbid users to change filter and stay only with "Friends and me". Is that right?
Hi,
No i don't want to forbid them to change filters,
But i will be so glad if i can turn filter by all of or maybe forbid users to filter activity by all!
i don't have any problem with other filters but i don't want this filter in my social network( Filter by All )
Hi, Saeed.
Ok, then use my little hack:
Copy this file: ROOT/components/com_community/templates/default/frontpage.index.php
to:
ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them)
Edit file and look for "COM_COMMUNITY_FILTERBAR_ALL".
It will be in line 90-91.
Then just delete whole:
<li data-filter="all" class="<?php echo ($filter == 'all') ? 'active' : ''; ?>" data-url="<?php echo CRoute::_('index.php?option=com_community&view=frontpage&filter=all');?>" ><i class="joms-icon-star"></i> <?php echo JText::_("COM_COMMUNITY_FILTERBAR_ALL"); ?></li>