Notifications - All friends checked by default

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\">&nbsp;</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\">&nbsp;</td>";

}

?>

Thanks for taking a look