• 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

Onimua

Well-known member
#1
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?