MyBB Community Forums

Full Version: Using MyCodes on my homepage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So my I got MyBBIntegrator to work and all that, but now I have another problem - how do I parse text with MyCode? I want to be able to use all the MyCode tags I do on the forum in my news posts etc - I am coding the system myself, just need to know how to parse it with MyCodes using MyBB's built-in parser.

Any help?!

Thanks a lot Big Grin
Alux
Got it done, if anyone else wants to know how, here's how Toungue
require_once(MYBB_ROOT.'inc/class_parser.php');

$parse = new postParser;
$opt = array(
	'allow_smilies' => 1,
	'allow_mycode' => 1
);

echo $parse->parse_message(':), do you see the emoticon? if yes, you did it right.', $opt);