There is lots of progress in og_mailinglist for D 7.x. I'm really excited and very appreciative to @mahfiaz, @kyle_mathews, @marco and others who have shepherded this project, worked on patches etc.
og_mailinglist for D 7.x is currently in dev and there are problems to resolve. The purpose of this support ticket is to support people who need to use og_mailinglist in production now.
I'm going to list what I'm doing and invite others to share what they are doing. This support issue is not meant to circumvent bug reports in the issue queue at all. It's just to help those who need to go production now before longer-term solutions are committed.
Subscription problems:
- og_mailinglist ignores email preferences "digest" and "none"
- user/%user/og_mailinglist does not work
- when a group admin adds or removes a user to/from a group, that user will not be signed up to receive emails or unassigned
How I'm addressing subscription problems:
- Make sure the "Manage mailinglist subscriptions" permission at admin/people/permissions is not checked for any roles.
- Disable the og_mailinglist block sub-module. The only way that a person subscribes and will get email is by joining a group themselves. They must leave the group to stop receiving emails. No admin can administer another users subscriptions unless logged in to that person's account.
- Hack the footer code so that users don't click on broken links and so people can unsubscribe. It is spam to send out emails with broken unsusbcribe links. So no site should be in production with the current footer code. I've posted a pastebin where you can see the whole footer email function in context and there I've clearly documented what I've done. The short version is this (around line 286 in
og_mailinglist_common.inc
):
I grab the url of the relevant group page:$grouppage = url("node/" . $node->og_group_ref['und'][0]['target_id'], $absolute);
Then I add to the output of the footer a few lines below:. t('Manage group subscription: @link', array('@link' => $grouppage)) . '<br />';
It occurs to me this might not be sufficient if the content is posted to more than one group. On my site I limit postings to one group, so this will work.
I also comment out the output for the current links that are broken.
File attachments. For og_mailinglist file attachments to work in emails: in the associated field settings for the field you've established for og_mailinglist (at admin/config/group/mailinglist/content_types
) the "File Directory" field must be blank. In other words, files must be stored at the root of the "file system path" which is set at: admin/config/media/file-system
.
That's it for now. Please share you feedback, ideas, or whatever you are doing to be able to use og_mailinglist on a live site.
Shai Gluskin
Comments
Comment #0.0
Shai CreditAttribution: Shai commentedAdded to my instructions for fixing the footer: "I also comment out the output for the current links that are broken."
Comment #1
mahfiaz CreditAttribution: mahfiaz commentedA follow-up. I fixed some things so there should be two remaining problems, namely:
As for hacking footer code, one should note that it is a theme function. So to have custom footer for your site default theme "mytheme", you could copy function theme_og_mailinglist_mail_footer($variables) from og_mailinglist_common.inc to your mytheme.theme file and rename it to mytheme_og_mailinglist_mail_footer($variables).
Comment #2
schultetwin CreditAttribution: schultetwin commentedFor: "file attachments directory needs to be blank":
Comment #2.0
schultetwin CreditAttribution: schultetwin commentedAdded a reference to where I was putting the code I reference.