else if ($hookName == 'sidebar_visitor_panel_stats'){
$options = XenForo_Application::get('options');
if($options->dark_postrating_member_card){
$params = $template->getParams();
$params += $hookParams;
$params['user'] = $params['visitor'];
$content_totals = $template->create('dark_postrating_visitor_panel', $params);
// Hide Likes received if being shown as ratings
if($options->dark_postrating_like_show){
$likesReceived = (string)new XenForo_Phrase('likes');
$content = preg_replace('#(<dl.*?><dt>'.$likesReceived.':</dt>\s*<dd>.*?</dd></dl>)#', '', $content);
}
if($hookName == 'member_view_info_block')
$content .= $content_totals;
else {
$trophyPoints = (string)new XenForo_Phrase('points');
$content = preg_replace('#(<dl.*?><dt>'.$trophyPoints.')#', $content_totals . '$1', $content, 1);