Store
Community Documentation

v3 Knowledgebase

Plugin to Remove Profile and Friends Updates From Feed

Per these threads,

http://www.phpfox.com/forum/customizing-phpfox-79/how-can-i-disable-profile-updates-in-the-main-feed/view_315622/
http://www.phpfox.com/forum/customizing-phpfox-79/how-to-stop-now-friends-with-in-news-feed/view_311360/

If you want to remove the "Is Friends With" status updates from the feed, make a plugin (this one is provided by Fern):

AdminCP >> Extensions >> Create New Plugin

Fill it in as follows:

1. Profiles: **does not work for v3.7.5 build 3 and up
Quote:

Product: Core or phpfox
Module: friend
Title: No friends with feed
Hook: feed.service_feed_get_userprofile
Active: Yes
PHP Code:
PHP:
$aCond[] = " AND feed.type_id != 'friend'"



2. Main feed:
Quote:

Product: Core or phpfox
Module: friend
Title: No friends main feed
Hook: friend.component_service_callback_getactivityfeed__1.
Active: Yes
PHP Code:
PHP:
if (!defined('PHPFOX_IS_USER_PROFILE'))
{
    
$aReturn false;



Now to also remove Profile Updates (user x updated their profile information) from the feed:

AdminCP >> Extensions >> Create New Plugin

Fill it in as follows:

Quote:

Product: Core or phpfox
Module: custom
Title: No profile updates main feed
Hook: custom.component_service_callback_getactivityfeed__1.
Active: Yes
PHP Code:
PHP:
if (!defined('PHPFOX_IS_USER_PROFILE'))
{
    
$aReturn false;