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

Customise responseNoPermission message?

RickM

Well-known member
#1
Hi all,

I've got an addon I'm writing and am using the $this->responseNoPermission(); function to display a no permissions message. Is it possible to customise the message at all? I know/assume you could edit the template, but I mean can it be customised for a specific section of the forum, just for example?

Cheers
 
R

ragtek

Guest
#2
You could use
PHP:
return $this->responseError('your text');
// or
 return $this->responseError(new XenForo_Phrase('phrasename');