Or:
Code:
if ($vbulletin->userinfo['usergroupid'] == 6)
{
$boofo_status = vB_Template::create('boofo_site_lifestatus');
$boofo_status->register('pagehits_counter', $pagehits_counter);
$boofo_status->register('pagehits_hourly', $pagehits_hourly);
$boofo_status->register('pagehits_daily', $pagehits_daily);
$boofo_status->register('pagehits_weekly', $pagehits_weekly);
$boofo_status->register('pagehits_monthly', $pagehits_monthly);
$boofo_status->register('pagehits_yearly', $pagehits_yearly);
$boofo_status->register('startdate', $startdate);
$template_hook['forumhome_wgo_pos3'] .= $boofo_status->render();
}
I rewrote it and added a setting for what users/usergroups can view it for my site. Since it is a total rewrite, I won't be releasing it here.