Re: Anonymous User only can subscribe to individual mail (versus digest)?
Posted by Coleen_Astalos on
URL: https://support.nabble.com/Anonymous-User-only-can-subscribe-to-individual-mail-versus-digest-tp7587388p7587502.html
I looked at this for a while and couldn't find a way to give them the option to subscribe via digest or Individual mail. Since the macro's are shared with the invitation to join the mailing list and the subscribe_by_code macro sets the subscription_type=INSTANT. Other than duplicating a number of macros and separating out the anonymous subscription request on the web.
So I decided in my situation I could instead just to tell them they needed to login to subscribe. So I updated the anonymouns_subscription_form macro to this:
<override_macro name="anonymous_subscription_form">
<div style="margin:1em 0">
<t>Please <n.login_link.>log in</n.login_link.> first to subscribe via email</t>
<script type="text/javascript">
if (Nabble.isEmbedded) {
var $l = $('#login-link');
$l.attr('href', $l.attr('href') + '&nextUrl=/');
}
</script> </div>
</override_macro>
It seems to work.