2015-10-15, 12:49 PM
Hi, I am trying to make a Website where in the Homepage it displays the Messages from the News Board in the Forums which I achieved but now I am having problems with the bbcode parser. Since in the homepage this is what is being displayed:
![[Image: 7YFkead.png]](https://camo.mybb.com/3b82929eed0e1b4075dba4b4f6edd44b97ac5ead/687474703a2f2f692e696d6775722e636f6d2f3759466b6561642e706e67)
Since my Forum is installed in the /forum/ Directory I tried doing this:
And then to display, I tried this:
But once I did it, this is the Error I get:
Notice: Trying to get property of non-object in C:\xampp\htdocs\website\forum\inc\class_parser.php on line 103
I hope you can help me.
Since my Forum is installed in the /forum/ Directory I tried doing this:
require_once 'forum/inc/class_parser.php'; // requires the MyBBIntegrator class
$parser_options = array(
"allow_html" => $forum['allowhtml'],
"allow_mycode" => $forum['allowmycode'],
"allow_smilies" => $forum['allowsmilies'],
"allow_imgcode" => $forum['allowimgcode'],
"allow_videocode" => $forum['allowvideocode'],
"filter_badwords" => 1
);
$parser = new postParser;
And then to display, I tried this:
$message = '[b]Hello, how are you?[/b]';
$parser->parse_message($message, $parser_options);
But once I did it, this is the Error I get:
Notice: Trying to get property of non-object in C:\xampp\htdocs\website\forum\inc\class_parser.php on line 103
I hope you can help me.