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

How do I make a custom error

Wuebit

Well-known member
#5
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.
 

Brogan

XenForo moderator
Staff member
#9
Code:
public function something(array $thing, &$errorPhraseKey = '')
{
.
.
.
$errorPhraseKey = 'error_phrase';
}