Jump to content

Recommended Posts

For some reason my [bBCODE] isn't working, example blah.png shows the text blah.png could it be mccodes or maybe since im using a free host while I build the game?

Share this post


Link to post
Share on other sites

You need a bbcode parser for bbcode to work. Google "bbcode parser php" should bring up a number of ones

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

The folder extracts as JBBCode (capital J). Either update your require path, or rename the directory

 

$parser->parse(nl2br($r['example']));
echo $parser->getAsHTML();

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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...