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

throw new XenForo_Exception

Discussion in 'XenForo Development Discussions' started by AndyB, Dec 26, 2015.

  1. AndyB

    AndyB Well-Known Member

    Hello,

    In an add-on I'm creating, I'm using the following PHP code:

    PHP:
    if (!$match)
    {    
        throw new 
    XenForo_Exception(new XenForo_Phrase('seller_please_upgrade_your_account'), true);
    }
    This produces the following message:

    pic001.jpg

    What I would like to do is change the "XenForo - Error" to some thing else, is this possible?

    Thank you.
     
  2. Jake B.

    Jake B. Well-Known Member

    Render a custom template is the only way I'm aware of
     
  3. AndyB

    AndyB Well-Known Member

    A perfect solution. Thank you, Jake.
     

Share This Page