SethClydesdale / forumactif-edge

A free modern and responsive forum theme for Forumotion forums.
https://sethclydesdale.github.io/forumactif-edge/
GNU General Public License v3.0
10 stars 17 forks source link

Allow newsletters "Popular contents" is missing from profile preferences #43

Closed SethClydesdale closed 6 years ago

SethClydesdale commented 6 years ago

This option allows the administrator to send the forum's most popular contents every 15 days. Unfortunately it's missing from the profile preferences page, disallowing members from un/subscribing from this newsletter.

To add it in we just need to add this snippet to the profile_add_body

<!-- BEGIN display_newsletter_auto -->
<dl>
    <dt><label>{L_NEWSLETTER_AUTO_ACCEPT} :</label></dt>
    <dd>
        <label><input type="radio" name="newsletter_auto" value="1" {NEWSLETTER_AUTO_YES} />{L_YES}</label>
        <label><input type="radio" name="newsletter_auto" value="0" {NEWSLETTER_AUTO_NO} />{L_NO}</label>
        <br /><span class="italic">{L_NEWSLETTER_AUTO_ACCEPT_EXPLAIN}</span>
    </dd>
</dl>
<!-- END display_newsletter_auto -->

It should go right after the portion for {L_NEWSLETTER_ACCEPT}.

NOTE: When adding this via the 1.2.10 update file, do make sure to check for the existence of this in the founder's template before injecting it. We want to refrain from duplicating modifications that the founder has already made.

SethClydesdale commented 6 years ago

This issue has been fixed and will be sent online soon.