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

Stop alerts from ignored members

TeflonDon

Well-known member
#1
Here's the current code, alerts from ignored members still come through. What should I add to stop that?

Code:
if (XenForo_Model_Alert::userReceivesAlert(array('user_id' => $this->get('receiver_user_id')), 'reputation', 'post'))
        {
            XenForo_Model_Alert::alert($this->get('receiver_user_id'),
                $this->get('giver_user_id'),
                $this->get('giver_username'),
                'reputation',
                $this->get('post_id'),
                'post', array('points' => $this->get('points'),
                'comment' => $this->get('comment'))
            );
        }
Thanks
 

Brogan

XenForo moderator
Staff member
#2
I presume that's from an add-on?

In which case, the add-on author is the best person to help with that.
 

TeflonDon

Well-known member
#3
I presume that's from an add-on?

In which case, the add-on author is the best person to help with that.
I've had terrible experiences with this particular author so I was hoping to learn how to do this myself. Perhaps someone could just point me to an example of the core code achieving this request or is this thread in the wrong forum?