how to add more option on (forumurl/account/alert-preferences)

i want to add my options on /account/alert-preferences page ..and want to access these value in related controller for alert preference ...
how can i edit these options or add my options
Last edited:
i want to add new options at the and of alert preference template ....and want to store its values to the database table where other option of pereferences page are store.
please reply...

Chris D

XenForo developer
Staff member
You would add some template code like this to the account_alert_preferences template:

<h3 class="sectionHeader">{xen:phrase xengallery_media}</h3>
<dl class="ctrlUnit">
    <dt>{xen:phrase receive_alert_when_someone}...</dt>
            <li><input type="hidden" name="alertSet[xengallery_media_like]" value="1" />
                <label><input type="checkbox" value="1" name="alert[xengallery_media_like]" {xen:checked "!{$alertOptOuts.xengallery_media_like}"} /> {xen:phrase xengallery_likes_your_media}</label>
                <p class="hint">{xen:phrase xengallery_someone_likes_your_media}</p>
In this particular example: "xengallery_media_like" is the content type_action of the alert.

You then need a bit of code like this to send the alert, and it's wrapped around a conditional that evaluates the settings on the user's alert page:

                if (!$userModel->isUserIgnored($contentUser, $likeUserId)
                    && XenForo_Model_Alert::userReceivesAlert($contentUser, $contentType, 'like')
i want to add options for thread or resource related post alerts...i want to alert user when author of thread reply to user post only.......which controller and model use for there any action for resource or thread related alerts...