KyleH112 Posted June 2, 2016 Share 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 Link to comment Share on other sites More sharing options...
Coly010 Posted June 3, 2016 Share Posted June 3, 2016 Have you got a bbcode parser ? Quote Link to comment Share on other sites More sharing options...
KyleH112 Posted June 3, 2016 Author Share Posted June 3, 2016 Have you got a bbcode parser ? Nope, what do you recommend? Quote Link to comment Share on other sites More sharing options...
Coly010 Posted June 3, 2016 Share 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 Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 3, 2016 Share Posted June 3, 2016 i thought v2.05b had a parser :S Quote Link to comment Share on other sites More sharing options...
sniko Posted June 3, 2016 Share Posted June 3, 2016 i thought v2.05b had a parser :S It does, but it's quite broken/insecure. Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 3, 2016 Share Posted June 3, 2016 It does, but it's quite broken/insecure. ah ok never really used it being honest Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted June 4, 2016 Share Posted June 4, 2016 Check out jBBCode Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted June 4, 2016 Share 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 Link to comment Share on other sites More sharing options...
KyleH112 Posted June 5, 2016 Author Share Posted June 5, 2016 Thanks guys I'll check it out when I'm off work Quote Link to comment Share on other sites More sharing options...
KyleH112 Posted June 5, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted June 5, 2016 Share 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 Link to comment Share on other sites More sharing options...
Samurai Legend Posted June 6, 2016 Share 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 Link to comment Share on other sites More sharing options...
Magictallguy Posted June 6, 2016 Share 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 Link to comment Share on other sites More sharing options...
KyleH112 Posted June 6, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
SHAD Posted May 26, 2019 Share Posted May 26, 2019 Would you still recommend this? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted June 4, 2019 Share 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 Link to comment Share on other sites More sharing options...
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.