Posted by
GregChapman on
Jun 22, 2015; 3:29pm
URL: https://support.nabble.com/Forcing-Subscriber-on-Digest-tp7595086p7595215.html
Thanks Hugo,
I have now received the necessary permission to ask you to set all subscribers to:
http://aivuk-forum.33396.n7.nabble.com/AIVuk-List-f2.htmlto receive the Daily Digest. Can you proceed with this please.
Your code to add the subscription format works well enough for my purposes.
If you are thinking of adding the feature to the standard product, then you might want to know that I removed the word "subscription" from the line:
<th class="medium-border-color"><t>Subscription Type</t></th>
I also wondered if it was imperative that the values "INSTANT" and "DAILY_DIGEST" are in upper case. On my phone, even in landscape orientation, the "Unsubscribe" button is lost off the edge of the screen, so I thought of changing these to "Instant" and "Digest" in an effort to reduce the width of the table - perhaps also changing them to "Email" and "Digest" wherever those values are found.
I also want to ensure that all future members are forced to adopt the Digest format. For the sake of others who might be following this topic, to achieve this I have edited the following macros, though if you can suggest better ways of doing it, or anything I might have overlooked, let me know:
load_field_values
where I replaced the reference to INSTANT with DAILY_DIGEST in order to make the digest format the default option for the subscription format.
app_subscription_controls
I wrapped the three <div>s that contain the detail for the Subscription Format section of the form in a <div style="display:none"> tag. This means users don't see the option to change to individual emails and together with the change above are forced to accept a digest. I also editing the wording for the relevant subscription types to become:
Receive a digest containing every message posted in
and
Receive a digest containing new topics only.
To stop users seeing the check box "Alert me by email when someone posts to this thread" to request topic based subscriptions I edited:
message_control
where I commented out the line:
<n.comment.><n.new_post_extra_fields/> </n.comment.>
edit_post_form
where I commented out the line:
<n.comment.><n.edit_post_extra_fields/> </n.comment.>
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.