Customise responseNoPermission message?

RickM

Well-known member
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
 
You could use
PHP:
return $this->responseError('your text');
// or
 return $this->responseError(new XenForo_Phrase('phrasename');
 
Top Bottom