![]() |
Integrating BBcode parsing in a hackish mod
THIS HAS OVER 17 VIEWS AND ZERO REPLIES. DO NOT READ IF YOU'RE NOT REPLYING!
-------------------- Hi. I've been writing a VERY crude addon to my forum which is basically a PHP/AJAX chat system. It's not deeply integrated with vB, and is using its own tables while being a templated PHP file. However, I've been trying to make it so that users can enter BBcode and have it parsed in the chat, ex: PHP Code:
I've been using this tutorial for the BBCode parsing. However, a *LOT* of funky stuff happens. Here's how the chat itself works, in a nutshell. AJAX refreshes chat every XX seconds, PHP file returns latest XX messages pulled from DB, executing bbcode_parse on each of them before returning. If user sends message, PHP file inserts message into DB. The chat itself works fine, the problem is that the bbcode_parse will horribly mutilate the message. Example: PHP Code:
PHP Code:
Is there some bbcode_parsed_decode or something I'm missing here? Any help would be greatly appreciated! |
All times are GMT. The time now is 12:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|