fishb6nes
Member
I'm attempting to instantiate a XenForo parser on an external page using the following code as suggested in this thread.
However it just prints out 'No access'. Am I missing something?
Code:
require_once('community/library/XenForo/Application.php');
require_once('community/library/XenForo/BbCode/Formatter/Base.php');
require_once('community/library/XenForo/BbCode/Parser.php');
$parser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('XenForo_BbCode_Formatter_BbCode_AutoLink', false));
// To then parse the $message retrieved from the database as follow
$message = $parser->render($message);