Is there a hack or plugin available to have each user's notification setting turned on by default when they join a group?
I found this plugin but it is not quite what I need, and it's developed for 1.2, I'm running 1.5.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Sean P@seanpr4554
Sean P - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Cash@costelloc
Cash - 0 likes
- Sean P@seanpr4554
Sean P - 0 likes
- Sean P@seanpr4554
Sean P - 0 likes
- harcha24@harcha24
harcha24 - 0 likes
- alfalive@alfalive
alfalive - 0 likes
- kkelley@kkelley
kkelley - 0 likes
You must log in to post replies.I'm looking for the same thing. I'm suprised nobody else is asking for this as it is pretty key to having a dynamic discussion in a social network.
views/default/notifications/subscriptions/groupsform.php is where you want to make your code change for this..
You can write a plugin to catch the 'join','group' event which includes the user and group entities and then call add_entity_relationship($user->guid,'notify'.$method,$group); (see groupsave.php in notifications actions)
awesome, thanks for your help Dhrup and Cash!
I opted for the simple solution. For anyone interested, I added the bolded code in groups/action/join.php:
if ($group->join($user))
{
add_entity_relationship($user->guid,'notify'.'email',$group->guid);
Any one willing to help for this. I need email notifications to be turned on site wide. especially everytime the user gets a message. I want this to be the default. : )
@Sean P
does it realy work? Simply one line...
Cool I will test it ot.
You are also going to have to add this to addtogroup.php. This is the routine that gets called when a group is private and the owner approves a membership request.