Jaxel
Well-known member
Self explanatory... a template that is called in through a hook does not have access to $visitor.
I have tried to bypass this issue with the following:
However, I then get the following error:
Even though I can create an instance for visitor, it then can't be passed into the <xen:avatar> helper.
I have tried to bypass this issue with the following:
Code:
$rsvpsModel = new EWRatendo_Model_RSVPs;
$params['visitor'] = XenForo_Visitor::getInstance();
$params['rsvps'] = $rsvpsModel->getRSVPsByEvent($params['event']);
$contents .= $template->create('EWRatendo_EventsView', $params)->render();
However, I then get the following error:
Argument 1 passed to XenForo_Template_Helper_Core::avatarHtml() must be an array, object given, called in /home/eightway/public_html/library/XenForo/Template/Abstract.php(243) : eval()'d code on line 126 and defined in /home/eightway/public_html/library/XenForo/Template/Helper/Core.php, line 1403
Argument 1 passed to XenForo_Template_Helper_Core::getUserHref() must be an array, object given, called in /home/eightway/public_html/library/XenForo/Template/Helper/Core.php on line 1431 and defined in /home/eightway/public_html/library/XenForo/Template/Helper/Core.php, line 1264
Even though I can create an instance for visitor, it then can't be passed into the <xen:avatar> helper.