Subscribe and Unsubscribe

First off, I want to shout out all the developers and contributors to NodeBB. This is a fantastic platform.

I'm currently setting it up on my own server with an integration into my App and it is going well.

  1. One piece of info I can't find documented anywhere is the flow if a user receives an email notification, and mistakenly clicks on unsubscribe (default email footer). How would the user be able to re-subscribe? Or is there some process the admin can do to re-subscribe the user?

  2. Secondly, in looking at the default html for an email notification there is an if statement: {{{ if showUnsubscribe }}} . Where do you set the "if" ? I can't find a setting anywhere?

Thanks in advance.

Cheers.

1 points · 4 comments · view on lemmy.world

4 Comments

jekyllandhyde@community.nodebb.org · 1 pts · 362d

Ok, so the unsubscribe is specific to the email type that was sent, to be reactivated in user settings? I was confused by: "Alternatively, unsubscribe from future emails like this, by clicking unsubscribe." - thinking it would unsubscribe to all future emails? Where do you set the condition for the footer.tpl to appear?

baris@community.nodebb.org · 1 pts · 362d

The user settings page allows a user to subscribe to different notifications.

The if statement is part of the template language and displays markup conditionaly, https://github.com/NodeBB/NodeBB/blob/master/src/views/emails/partials/footer.tpl#L6. This file is parsed and turned into html before being sent as an email.

baris@community.nodebb.org · 1 pts · 362d

The footer.tpl is included in all emails, but the showUnsubscribe flag is only true for notification and digest emails so it does't show up in others. You can search for showUnsubscribe: true in the codebase.

jekyllandhyde@community.nodebb.org · 1 pts · 362d

Ok, thanks for the help!