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

Customise responseNoPermission message?

Discussion in 'XenForo Development Discussions' started by RickM, Feb 2, 2011.

  1. RickM

    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
     
  2. ragtek

    ragtek Guest

    You could use
    PHP:
    return $this->responseError('your text');
    // or
     
    return $this->responseError(new XenForo_Phrase('phrasename');
     
    RickM likes this.
  3. RickM

    RickM Well-Known Member

    That should do it :) Cheers ragtek - much appreciated!
     

Share This Page