Hippy |
03-30-2012 10:36 AM |
Quote:
Originally Posted by olalaaa
(Post 2314971)
Is there a way to make it only viewable for admins?
|
add
Code:
if ($vbulletin->userinfo['usergroupid'] == 6)
{
======================================
Life Status Count Number Format
forumhome_complete plugin here
between the brackets
======================================
}
If I remember correctly ife Status Count Number Format plugin
Code:
if ($vbulletin->userinfo['usergroupid'] == 6)
{
if ($vbulletin->options['site_lifestatus_enable'] AND THIS_SCRIPT == 'index')
{
$pagehits_counter = $vbulletin->boofocounter;
$starttime = (TIMENOW - strtotime($vbulletin->options['site_lifestatus_startupdate']));
$starthour = $starttime / 3600;
$pagehits_hourly = vb_number_format($pagehits_counter / $starthour, 2);
$startday = $starttime / 86400;
$pagehits_daily = vb_number_format($pagehits_counter / $startday, 2);
$startweek = $starttime / 604800;
$pagehits_weekly = vb_number_format($pagehits_counter / $startweek, 2);
$startmonth = $starttime / 2628000;
$pagehits_monthly = vb_number_format($pagehits_counter / $startmonth, 2);
$startyear = $starttime / 31536000;
$pagehits_yearly = vb_number_format($pagehits_counter / $startyear, 2);
$pagehits_counter = vb_number_format($pagehits_counter);
if ($vbulletin->options['site_lifestatus_setlocale'])
{
setlocale(LC_TIME, $vbulletin->options['site_lifestatus_setlocale']);
}
else
{
setlocale(LC_TIME, 'en_US.utf8');
}
if ($vbulletin->options['site_lifestatus_datedisplay'])
{
$startdate = strftime($vbulletin->options['site_lifestatus_datedisplay'], strtotime($vbulletin->options['site_lifestatus_startupdate']));
}
else
{
$startdate = strftime('%A, %B %e, %Y at %l:%M %P', strtotime($vbulletin->options['site_lifestatus_startupdate']));
}
setlocale(LC_TIME, '');
$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();
}
}
*warning I have not had my morning coffee
cause I'm thinking maybe the template needs the condition...
anyway the condition is correct ,, just got to add it to the right code ,,
|