XF 2.1 REST API and bbcode

Karelke

Well-known member
We are currently investigating if the XenForo REST API would be a good alternative to show comments in our CMS. We made a proof of concept and it turns out that posting and displaying comments in our articles is a piece of cake with this API. However, all messages are displayed in RAW format and apparently there's no MySQL table that holds the parsed markup. I was also searching for a column, something like message_parsed in xf_post, but there is no such thing.

How should we handle bbcode outside the forum? In the end, we want something like https://www.techpowerup.com/263355/...xecution-attack-for-intel-processors#comments
 
The BB code is parsed at run-time, so you'd need to do something similar in your app if you want to display posts using the REST API. You could build an add-on instead and use the framework directly, which is comparatively more full-featured.
 
Back
Top Bottom