Created
August 29, 2016 02:32
-
-
Save anonymous/e91030fb6d2f93b0f6aacc5fc3bdf0b8 to your computer and use it in GitHub Desktop.
Parsing BB Code to HTML in custom PHP pages in MyBB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once MYBB_ROOT."/inc/class_parser.php"; | |
$parser = new postParser(); </code> | |
$parser_options = array( | |
'allow_html' => 'no', | |
'allow_mycode' => 'yes', | |
'allow_smilies' => 'yes', | |
'allow_imgcode' => 'yes', | |
'filter_badwords' => 'yes', | |
'nl2br' => 'yes' | |
); | |
$message = $parser->parse_message($message, $parser_options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment