The main trouble with the code suggested by luis is that {$user_id} is NOT generated each time the notification is sent. {$k} could be used as user id (as this operation continues in FOREACH statement until ends). In new release, we had an idea to introduce this link officially, but for fastest execution, it would add user ID to the END of the template. So the only condition having this link will be - you MUST have it at the END of the notification message, with no symbols after it and no breakes. In another case, each time we send a notification to user, we need to load up each template separately, which is not really good & fast.
So, we cut this idea off, and the only text for unsubsribe link will be offered, which will say "you need to go here and do that and that for unsubscribing". Remember also, that user needs to be LOGGED IN for doing an unsubscribe operation. I don't think many users will be logged in when clicking this link, so they need to log in first, then to do an unsubscribe.
Finally, I am remembering now, why we have not introduced this option earlier! Welcome to miniBB! :) |