How to extend moderation queue reason?

Brent W

Well-known member
I notice that when someone gets flagged by StopForumSpam or a user registers because they matched an banned users ip, it shows that in the moderation queue. I have two add-ons that send people to the moderation queue and I would like to add the reason the same way.

How can I extend this via my add-ons?


XenForo developer
Staff member
It needs to be done as part of the spam prevention system. As a base framework, lookg at XenForo_Model_SpamPrevention::_allowRegistration().