We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

stopping "new member joined" message on group newsfeed [Solution available] | Forum

admin
admin Nov 24 '16
How can i stop "new member joined" message on group newsfeed?

there is no such an option on Group plugin page!


please advice

thanks

The Forum post is edited by Aliya Nov 25 '16
ross Team
ross Nov 24 '16
Topic was moved from General Questions.
Aliya Team
Aliya Nov 25 '16
File: ow_plugins/groups/classes/event_handler.php
Function: public function onGroupUserJoin
Code responsible for action:

OW::getEventManager()->trigger(new OW_Event('feed.activity', array(
            'activityType' => 'groups-join',
            'activityId' => $userId,
            'entityId' => $group->id,
            'entityType' => GROUPS_BOL_Service::FEED_ENTITY_TYPE,
            'userId' => $userId,
            'pluginKey' => 'groups',
            'feedType' => 'groups',
            'feedId' => $group->id
        ), array(
            'groupId' => $group->id,
            'userId' => $userId,
            'groupUserId' => $groupUserId,

            'string' => array("key" => 'groups+user_join_activity_string'),
            'features' => array()
        )));
The Forum post is edited by Aliya Nov 25 '16
admin
admin Nov 28 '16
Thanks Aliya,

I commented out the whole section you mentioned above, however still shows "member joined group" message on group news feed.

please advice if i forget something.


Aliya Team
Aliya Nov 28 '16
will work only for newly registered users. already generated newfeed content will not be deleted. you will need to clear data manually.
Kevin
Kevin Dec 8 '16
Thanks for the tip!