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

Parse BbCode for display on another page

Discussion in 'XenForo Development Discussions' started by Onimua, Feb 1, 2011.

  1. Onimua

    Onimua Well-Known Member

    I'm pulling the first post from threads within a particular forum and displaying them on a page in my add-on. That works great.

    However, I've found that it didn't display correctly (mainly missing line breaks), but figured out I can use the following (and it is working):

    PHP:
    XenForo_Template_Helper_Core::helperBodyText($message);
    What I can't figure out is how to get the BBcode within the message to be parsed as well. I see a method for helperBbCode right under the helperBodyText, but can't see to get the working right. Any pointers?
     
  2. ragtek

    ragtek Guest

  3. Onimua

    Onimua Well-Known Member

Share This Page