KyleH112 Posted June 2, 2016 Posted June 2, 2016 For some reason my [bBCODE] isn't working, example shows the text could it be mccodes or maybe since im using a free host while I build the game? Quote
KyleH112 Posted June 3, 2016 Author Posted June 3, 2016 Have you got a bbcode parser ? Nope, what do you recommend? Quote
Coly010 Posted June 3, 2016 Posted June 3, 2016 You need a bbcode parser for bbcode to work. Google "bbcode parser php" should bring up a number of ones Quote
sniko Posted June 3, 2016 Posted June 3, 2016 i thought v2.05b had a parser :S It does, but it's quite broken/insecure. Quote
NonStopCoding Posted June 3, 2016 Posted June 3, 2016 It does, but it's quite broken/insecure. ah ok never really used it being honest Quote
Samurai Legend Posted June 4, 2016 Posted June 4, 2016 I recommend jBBCode! It is easy to install and really secure! If you need help with installing it, I am willing to help. Quote
KyleH112 Posted June 5, 2016 Author Posted June 5, 2016 Thanks guys I'll check it out when I'm off work Quote
KyleH112 Posted June 5, 2016 Author Posted June 5, 2016 So I downloaded jBBCode, uploaded everything to my server. And I added require_once "jBBCode/Parser.php"; to the top of my inventory.php file to test it out and im getting this error. [h=1]Game Name - Critical Error[/h] A critical error has occurred, and this page cannot be displayed. Please try again later. Â when I remove require_once "jBBCode/Parser.php"; the page loads fine. Quote
TheMasterGeneral Posted June 5, 2016 Posted June 5, 2016 Use the error handler? By the seems of it, either the parser has an error in it, or you're not requiring the correct file. (Incorrect/typoed name) Quote
Samurai Legend Posted June 6, 2016 Posted June 6, 2016 Put this on top of the page - require_once('jBBCode/Parser.php'); $parser = new jBBCode\Parser; $parser->loadDefaultCodes(); When wrapping it with the code - " . nl2br($parser->getAsHTML($parser->parse($r['example']))) . " Quote
Magictallguy Posted June 6, 2016 Posted June 6, 2016 The folder extracts as JBBCode (capital J). Either update your require path, or rename the directory $parser->parse(nl2br($r['example'])); echo $parser->getAsHTML(); Quote
KyleH112 Posted June 6, 2016 Author Posted June 6, 2016 The folder extracts as JBBCode (capital J). Either update your require path, or rename the directory $parser->parse(nl2br($r['example'])); echo $parser->getAsHTML(); Thanks, that was the problem the directory was named JBBCode NOT jBBCode Quote
Magictallguy Posted June 4, 2019 Posted June 4, 2019 On 5/26/2019 at 2:40 PM, SHAD said: Would you still recommend this? I'm still using it ? 1 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.