Floren
Well-known member
Hi guys,
I'm trying to modify the XenForo_BbCode_Parser:arse event.
Logic:
I used a load_class_bb_code event listener, but the text is not var_dumped.
Obviously, if I edit the code in XenForo_BbCode_Parser:arse, it will work as expected.
Thank you for your help.
I'm trying to modify the XenForo_BbCode_Parser:arse event.
Logic:
Code:
class Addon_CodeEvent
{
public static function extendParser($class, array &$extend)
{
switch ($class)
{
case 'XenForo_BbCode_Parser':
{
$extend[] = 'Addon_BbCode_Parser';
break;
}
// more cases here ...
}
}
}
class Addon_BbCode_Parser extends XFCP_Addon_BbCode_Parser
{
public function parse($text)
{
var_dump($text);
exit;
}
}
I used a load_class_bb_code event listener, but the text is not var_dumped.
Obviously, if I edit the code in XenForo_BbCode_Parser:arse, it will work as expected.
Thank you for your help.