End Result - New users email notifications are default to on.
Couldnt find anything out there on this.
I tried to modify some code before I came running here and I was actually able to get it to check the box. But it wont check friends as they are added. You have to toggle the box.
/notifications...collections.php line 28-40 original
<?php
$i = 0;
global $NOTIFICATION_HANDLERS;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
if ($i > 0) {
echo "<td class=\"spacercolumn\"> </td>";
}
?>
Same code but my copy and paste hackjob (I was just happy I didnt crash elgg). I basically copied code from the personal.php
<?php
$i = 0;
global $NOTIFICATION_HANDLERS;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
if ($notification_settings = get_user_notification_settings($vars['user']->guid)) {
if ($notification_settings->$method) {
$collectionschecked[$method] = 'checked="checked"';
} else {
$collectionschecked[$method] = '';
}
}
if ($i > 0) {
echo "<td class=\"spacercolumn\"> </td>";
}
?>
Thanks for taking a look
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.