MyBB Community Forums

Full Version: Parser will not parse MyCode of thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
$parser = new postParser;
			$parser_options = array(
				"allow_html" => "0",
				"allow_mycode" => "1",
				"allow_smilies" => "1",
				"allow_imgcode" => "1",
				"filter_badwords" => "1"
			);
	
			$message = $parser->parse_message($post['message'],$parser_options);
			
			//$message = $post['message'];

			eval("\$threadhead = \"".$message."\";");

This code only outputs the post when it is not parsed. Why?

Note I am using the MyBB 1.4 parser

Edit: This was reposted, yes, for this section would be more appropriate.
First it needs the function's file, paste the following code above the script;
require_once MYBB_ROOT."inc/class_parser.php";
I have done that. If I didn't, the script would crash, but it has not.
Any help here? I would really like to get this working.