I am posting this as a placeholder in case others are also interested.

In my testing I am finding that I'd like to be able to change the default email settings for subscribers - right now it defaults to "mail" which means that when you install ogm it automatically sets it so that all members of all groups will start getting mail when new content or comments are posted. New members that join groups are also added automatically and start receiving mail. This is tricky for installing OGM on a live site since you want to stage it, test, and then start allowing access to OGM to all users.

It would be useful to have a feature on the admin page to change the default setting that new group members get, and an option to mass change the setting for all members immediately from one setting to another (eg mail to nomail). For now this would be on a sitewide basis, but when the settings by group become available this would be available on a per group basis as well.

Cheers,

Tobias

Comments

kyle_mathews’s picture

Good idea. This would again be an easy patch for someone to make...

Also, I'm planning on adding a new group sign-up workflow that let's people choose which type of email subscription they'd like on joining the group.

tobias’s picture

Thanks, Kyle -

In the meantime, I have hacked the code to set the default subscription type on my site to "no email" - let me know if there is any danger to this.

On line 126 of og_mailinglist_api.inc I changed 'email' to 'no email':

/*
 * @param int $gid Group id.
 * @param array $uids array of User IDs to add group subscriptions.
 */
function og_mailinglist_save_group_subscriptions($gid, $uids) {
  foreach ($uids as $uid) {
    db_query("INSERT INTO {og_mailinglist_subscription}
             VALUES (%d, %d, 'no email')", $gid, $uid);
  }
}
kyle_mathews’s picture

Eh, just wrote the code myself as it was a pretty easy change. http://github.com/KyleAMathews/og_mailinglist/commit/91804c414161424044f...

kyle_mathews’s picture

Status: Active » Fixed

And setting this to fixed.

tobias’s picture

now that is lovely. thank you! :)

Suggest minor cosmetic change to the helper text from:

Choose the default group email subscription for users joining a group. "Email" means the user will receive an email for each new post. "No email" means the user will recieve no emails except for threads they participate in. "Digest" is the same as "no email" except the user will also receive digest emails.

to something like:

Choose the subscription type a user is given by default when joining a group. "Email" means the user will receive an email for each new post. "No email" means the user receives no email except for discussion threads they participate in. "Digest" is the same as "no email" except the user will also receive digest emails. (Users can change this later at http://yoursite.com/og_mailinglist/subscriptions)

Also, the title should be Default group email subscription type not Default group email subscription type. (note extra period in yours which causes a funny .: in the presentation).

Cheers,

Tobias

kyle_mathews’s picture

Made the changes you suggested except since as I mentioned above, that soon users will have the option to choose their subscription type on joining a group, I removed the "is given" part of the message.

http://github.com/KyleAMathews/og_mailinglist/commit/b0a4d1bef61efca11ed...

tobias’s picture

ok - thanks for this feature. It may seem small to you, but I really appreciate it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.