LPH
Well-known member
Here is the code:
The code returns
What am I doing wrong to not get the number of members, etc returned?
PHP:
$dependencies = new XenForo_Dependencies_Public();
$dependencies->preLoadData();
XenForo_Template_Public::setStyleId(1);
XenForo_Template_Public::setLanguageId(1);
$params = $dependencies->getEffectiveContainerParams(array(), new Zend_Controller_Request_Http());
$template =$dependencies->createTemplateObject('sidebar_online_users', $params);
echo $template->render();
The code returns
Code:
Members Online Now
Total: 0 (members: 0, guests: 0, robots: 0)
What am I doing wrong to not get the number of members, etc returned?