no link to subscribe for discussion in notification eMail

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

no link to subscribe for discussion in notification eMail

nnako
Hi,

I want to be notified whenever a new subject (topic) is created in the main forum. So, I set the subscription for my user to "only new subjects" within the options for the main forum part. So, when someone creates a new subject within the main forum, I get a notification eMail. This works so far.

PROBLEM
But after reception of the notification eMail, I can't directly choose to be notified for all subsequent posts within this new subject. There is no respective clickable link within the notification eMail. So, I have to go into the forum and try to set my subscription manually, in order to be informed about further discussions regarding this new topic.

NOTE
The odd thing is, that when I create a new topic/message and select "send message to eMail" below the editor field, the recipient receives an eMail notification containing a clickable link to subscribe for the current discussion. So, the functionality seems to be working but somehow omitted when it is about handling "only topic" subscriptions.

Is there an easy way to install an eMail notification which holds a clickable link for a message-based subscription for the current topic, when the receiver is currently subscribed to "only topics"?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: no link to subscribe for discussion in notification eMail

nnako
Hi again,

please take 5 minutes and answer my question (see above).

My problem is that there seems to be no possibility to "continue" to follow a thread which was notified by eMail on the basis of "only new topics" just by clicking on an eMail link. There is a link for canceling the entire subuscription for the sub forum. But that I don't want. I want to continue the subscription on the basis of "each post" for the current topic. And I'd like to omit going into the Forum for doing so.

Is there a way for using NAML to extend the eMail notification link options?
Reply | Threaded
Open this post in threaded view
|

Re: no link to subscribe for discussion in notification eMail

Pedro
Please, edit both macros bellow. Let me know if you understood what I've done.
<override_macro name="instant_text" requires="subscription,node_page" unindent="true">
    <n.set_local_subscription.this_subscription/>
    <n.if.page_node.is_app>
        <then>
            <t><t.username.page_node.owner.name/> created a new subcategory</t>:
            <n.page_node.subject/>
        </then>
    </n.if.page_node.is_app>

    <n.page_node.text_email_message_with_signature />
    _______________________________________________
    <t>If you reply to this email, your message will be added to the discussion below</t>:
    <n.page_node.url/>
    <n.start_new_topic_line/>
    <n.unsubscribe_line format="text"/>
    To receive all replies by email, subscribe to this discussion: <a href="[n.root_node.base_url/][n.page_node.topic_node.subscribe_path/]"> here</a>.
</override_macro>

<override_macro name="instant_html" requires="subscription,node_page">
    <n.set_local_subscription.this_subscription/>
    <n.if.page_node.is_app>
        <then>
            <t><t.username.page_node.owner.name/> created a new subcategory</t>:
            <b><n.page_node.subject/></b><br/><br/>
        </then>
    </n.if.page_node.is_app>

    <n.page_node.html_email_message_with_signature/>
    <br/>
    <br/>
    <hr noshade="noshade" size="1" color="#cccccc" />
    <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
        <div style="font-weight:bold"><t>If you reply to this email, your message will be added to the discussion below</t>:</div>
        <a href="[n.page_node.url/]"><n.page_node.url/></a>
    </div>
    <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        <n.start_new_topic_line append="[br/]"/>
        <n.unsubscribe_line format="html"/><br/>
        <n.macro_viewer_email_link macro="instant_html"/>
    </div>
        To receive all replies by email, subscribe to this discussion: <a href="[n.root_node.base_url/][n.page_node.topic_node.subscribe_path/]"> here</a>.
</override_macro>

My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: no link to subscribe for discussion in notification eMail

nnako
Hi Pedro,

thanks for the code. Yes, I kind of get the idea. The links for subscription are working fine. Just the expression "<n.set_local_subscription.this_subscription/>" is not clear to me, as it makes no difference regarding the eMail output and it was not in my original code.

Here is my slightly modified macro code:
<override_macro name="instant_html" requires="subscription,node_page">
    <n.set_local_subscription.this_subscription/>
    <n.if.page_node.is_app>
        <then>
            <t><t.username.page_node.owner.name/> created a new subcategory</t>:
            <b><n.page_node.subject/></b><br/><br/>
        </then>
    </n.if.page_node.is_app>

    <n.page_node.html_email_message_with_signature/>
    <br/>
    <br/>
    <hr noshade="noshade" size="1" color="#cccccc" />
    <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
        <div style="font-weight:bold"><t>If you reply to this email, your message will be added to the discussion below</t>:</div>
        <a href="[n.page_node.url/]"><n.page_node.url/></a>
    </div>
    <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        <n.start_new_topic_line append="[br/]"/>
        <n.unsubscribe_line format="html"/><br/>
        To receive all subsequent posts by email, subscribe to this discussion by clicking <a href="[n.root_node.base_url/][n.page_node.topic_node.subscribe_path/]"> here</a>.<br/>
        <n.macro_viewer_email_link macro="instant_html"/>
    </div>
</override_macro>


I still see some problems. Maybe you could help me with one of those:

(1) the added text in the 4th last row starting with "To receive all subsequent..." is static and will so appear in EVERY notification eMail. Even for users which are already subscribed to the current sub forum. Is there a variable I could read out in order to see the status of subscriiption?

(2) when adding additional eMail recipients while posting a message in the forum, the notification footer (containing the new and the old subscription link) don't seem to be reasonable. Here, I added two eMail addresses of users who were not even registered with the forum:

The first "foreign" direct eMail recipient got TWO notification eMails with completely different footers (text of previous version):
[1]

[2]

The second "foreign" direct eMail recipient got only ONE notification eMail which was different to the other two:
[3]


Any ideas? For me, personally, problem (1) has a higher priority as it will be the standard usage.
Reply | Threaded
Open this post in threaded view
|

Re: how to handle subscriptions for eMail notifications

nnako
This post was updated on .
problem solved in principle.

further questions see:
http://support.nabble.com/unsibscribe-by-eMail-code-tt7590091.html