How do I make a custom error


Formerly Wuebit
So I made this addon that makes a user check a box before he can edit the thread title. (demonstration here)

If a user doesn't check the box and clicks create thread they will get this:

But I want them to get this:

Any suggestions? :)
Would you really want to force people to tick this box everytime they made a post? I know if I was a member on a forum with this it would discourage me posting.


XenForo moderator
Staff member
public function something(array $thing, &$errorPhraseKey = '')
$errorPhraseKey = 'error_phrase';