Daniel Hood
Well-known member
I have two addons, both created by me:
One listens to "load_class_bb_code" with this code:
In PHCTags_BbCode_Formatter_Base I have
and then my other addon is trying to call:
It's
that results in this error
Any ideas what I did wrong? I assume I extended a wrong class or something? Let me know if I didn't give enough code.
One listens to "load_class_bb_code" with this code:
PHP:
if ($class == 'XenForo_BbCode_Formatter_Base')
{
$extend[] = 'PHCTags_BbCode_Formatter_Base';
}
In PHCTags_BbCode_Formatter_Base I have
PHP:
class PHCTags_BbCode_Formatter_Base extends XFCP_PHCTags_BbCode_Formatter_Base
and then my other addon is trying to call:
PHP:
$bbCodeParser = XenForo_BbCode_Formatter_Base::create('Base');
XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($hookParams['threads'], $bbCodeParser);
It's
PHP:
XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages(
that results in this error
Fatal error: Call to undefined method PHCTags_BbCode_Formatter_Base::render() in /home/phphelpc/public_html/library/XenForo/BbCode/TextWrapper.php on line 117
Any ideas what I did wrong? I assume I extended a wrong class or something? Let me know if I didn't give enough code.