1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add alert preferences to add-on

Discussion in 'XenForo Development Discussions' started by Dadparvar, Jul 12, 2016.

  1. Dadparvar

    Dadparvar Well-Known Member


    I created a template with this code:
    <h3 class="sectionHeader">{xen:phrase dad_newsticker_navtab}</h3>
    <dl class="ctrlUnit">
        <dt>{xen:phrase dad_newsticker_preferences_explain}...</dt>
                <li><input type="hidden" name="alertSet[newsticker_want_see]" value="1" />
                    <label><input type="checkbox" value="1" name="alert[newsticker_want_see]" {xen:checked "!{$alertOptOuts.newsticker_want_see}"} /> {xen:phrase dad_newsticker_want_see_tickers}</label>
                    <p class="hint">{xen:phrase dad_newsticker_want_see_tickers_explain}</p>
    And I'm showing it using TM in alert preferences page.

    Can someone tell me how to check it now? I want show/hide something based on each user's choice. If he checked, then see it, and if un-checked, not see it.


    @Chris D @Brogan

Share This Page