AndyB
Well-known member
I would like to extend XenForo_ViewPublic_Helper_Message so that I may add my own code to the bbCodeWrapMessages function.
PHP:
public static function bbCodeWrapMessages(array &$messages, XenForo_BbCode_Parser $parser, array $options = array())
{
$options += array(
'showSignature' => XenForo_Visitor::getInstance()->get('content_show_signature'),
'states' => array()
);
foreach ($messages AS &$message)
{
$message['messageHtml'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($message, $parser, $options);
// I would like to add code here
}
}