Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Johnsen Design on October 18, 2009, 03:38:44 PM

Title: How to use SMF bbcode outside SMF?
Post by: Johnsen Design on October 18, 2009, 03:38:44 PM
Hey!
For a website I am making there are some "hidden" boards that only the admins can view, but they post posts in there that will be shown on the website for EVERYONE to see.
So I gotta collect the posts directly from the database.

But the body row has the bbcode, so how can I use the SMF bbcode script to display the body rows properly?

Any help would be much appreciated!


Best regards,
Peder Johnsen.
Title: Re: How to use SMF bbcode outside SMF?
Post by: Kays on October 18, 2009, 04:31:07 PM
HI, if you are including SSi.php then you can use the parse_bbc() function.
Title: Re: How to use SMF bbcode outside SMF?
Post by: Johnsen Design on October 18, 2009, 05:28:54 PM
Thanks a ton!