2010-05-27, 12:39 PM
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
Alux
Got it done, if anyone else wants to know how, here's how
Any help?!
Thanks a lot
Alux
Got it done, if anyone else wants to know how, here's how
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);