Email Digests forcing?

Email Digests forcing?

door Sean S -
Aantal antwoorden: 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?
Gemiddelde van de beoordelingen:  -
Als antwoord op Sean S

Re: Email Digests forcing?

door Sean S -
*bump*

Still looking for an answer to this.
Gemiddelde van de beoordelingen:  -
Als antwoord op Sean S

Re: Email Digests forcing?

door 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

Gemiddelde van de beoordelingen:  -
Als antwoord op Steve Hyndman

Re: Email Digests forcing?

door 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

Gemiddelde van de beoordelingen:  -
Als antwoord op Sean S

Re: Email Digests forcing?

door Helen Foster -
Foto van Core developers Foto van Documentation writers Foto van Moodle HQ Foto van Particularly helpful Moodlers Foto van Plugin developers Foto van Testers Foto van Translators
You need to select mdl-user then follow Steve's advice (as I've just done - thanks Steve! smile)
Gemiddelde van de beoordelingen:  -
Als antwoord op Helen Foster

Re: Email Digests forcing?

door 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.
Gemiddelde van de beoordelingen:  -
Als antwoord op Helen Foster

Re: Email Digests forcing?

door Sean S -
Thanks I got it taken care of now. Thanks a bunch.
Gemiddelde van de beoordelingen:  -
Als antwoord op Sean S

Re: Email Digests forcing?

door 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.
Gemiddelde van de beoordelingen:  -
Als antwoord op Sean S

Re: Email Digests forcing?

door 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.
Gemiddelde van de beoordelingen:  -