Xenforo 2.1 hide certain alert preferences?

dark_night

Well-known member
Registered
Joined
Jul 28, 2020
Messages
149
Points
53

Reputation:

hey everyone again. i am wondering if it is possible within xenforo to edit what alert types show in account preferences? (/account/preferences) there seems to be quite a few alert types from addons that don't really need to be shown on that page. for example, Tickets addon by NF has some alert preferences that i want disabled by default and hidden. this also goes for some other addons such as dbtech shop and more. what would be the best way of doing this? couldnt seem to find any answers
 
Last edited:

dark_night

Well-known member
Registered
Joined
Jul 28, 2020
Messages
149
Points
53

Reputation:

anyone figured this out? couldnt find it in template modifications, templates or phrases :/
 

Soft4Win

Developer
Staff member
Moderator
Collaborate
Registered
Joined
Apr 27, 2019
Messages
370
Points
103

Reputation:

Go to that Addons Folder and look for Alert Folder inside it, As for DBTech Shop open Item.php inside the Alert Folder and comment the getOptOutActions

Just comment it and it will not display in the preferences page afterwards. Similarly for other addons aswell look into the Alert Folder and comment that function.

PHP:
/**
public function getOptOutActions()
    {
        return [
            'insert',
            'mention',
            'reaction',
            'gift'
        ];
    }
*/
 
Top