Email Digests forcing?

Email Digests forcing?

ved Sean S -
Antal besvarelser: 10
Is there some way that I can have new users automatically recieve digests rather than individual emails? If it isn't built into moodle, is there a hack available for this?
Gennemsnitsbedømmelse: -
I svar til Sean S

Re: Email Digests forcing?

ved Sean S -
*bump*

Still looking for an answer to this.
I svar til Sean S

Re: Email Digests forcing?

ved Steve Hyndman -

If you open your "users" table in the database and change the default value of "maildigest" from "0" to "1", then when new users create an account the daily digests selection will be selected by default. This will not change anything for current users...only users who create accounts after you make this change.

Thanks to Przemyslaw for pointing these settings out to me. I have also changed the default value of "Forum auto-subscribe" so that students don't get subscribed to a forum when they post unless they choose to be subscribed first.

Steve

I svar til Steve Hyndman

Re: Email Digests forcing?

ved Sean S -
I looked in the database, but I couldn't find a users table.

I did find

mdl_user










mdl_user_admins










mdl_user_coursecreators










mdl_user_preferences










mdl_user_students










mdl_user_teachers

I svar til Sean S

Re: Email Digests forcing?

ved Helen Foster -
Billede af Core developers Billede af Documentation writers Billede af Moodle HQ Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Testers Billede af Translators
You need to select mdl-user then follow Steve's advice (as I've just done - thanks Steve! smile)
I svar til Helen Foster

Re: Email Digests forcing?

ved Przemyslaw Stencel -
Yes, and once you've changed the mdl_user table, you can edit the user/edit.html file. Find the following lines:

<tr valign=top>
    <td align=right><p><?php ("emailformat") ?>:</td>
    <td><?php
    unset($choices);
    $choices["0"] = get_string("textformat");
    $choices["1"] = get_string("htmlformat");
    choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
    </td>
</tr>

and comment them out. This will make it impossible for your users to change the setting later.
I svar til Helen Foster

Re: Email Digests forcing?

ved Sean S -
Thanks I got it taken care of now. Thanks a bunch.
I svar til Sean S

Re: Email Digests forcing?

ved Sean S -
Just used this again on a fresh installation and was thinking that this would be a really great feature to have a GUI...

Does anyone else agree? if so then I'll submit a request.
I svar til Sean S

Re: Email Digests forcing?

ved Sean S -
Hmmm... yet again I had to search the forums to find this. I really think this would be a great feature to add to the variables page.