Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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']))) . " 

 

Posted
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

  • 2 years later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...