How could I get the total monthly pageviews statistic to appear on my forum summary page? It appears on the control panel page, per below. Could that segment be moved just below my copywrite info at the page bottom of the forum summary (or next to the total members statistic.)
Still working with 6.7.2 but have upgraded though not installed 6.7.3. Much, much thanks!
from cp2_home.pl:
my $pageview_string;
my $total_hits;
if($monthly_hits > 0) { # old hit counter format
if(($cache_hits > 0) && ($dynamic_hits > 0)) {
$total_hits = $cache_hits + $dynamic_hits;
my $perc_dynamic = sprintf("%2.3f", $dynamic_hits / $total_hits);
my $perc_cache = 100 * sprintf("%.4f", $cache_hits / $total_hits);
$pageview_string = <$vars_wordlets_cp2{home_pageviews} ($GotTime{mon}/$GotTime{JSYear}): $total_hits
$vars_wordlets_cp2{home_pageviews_cached}: $perc_cache%
THEEND
} else {
$total_hits = $cache_hits + $dynamic_hits + $monthly_hits;
$pageview_string = <$vars_wordlets_cp2{home_pageviews} ($GotTime{mon}/$GotTime{JSYear}): $total_hits
THEEND
} # end if
} else { # new hit counter format
if(($cache_hits > 0) && ($dynamic_hits > 0)) {
$total_hits = $cache_hits + $dynamic_hits;
my $perc_dynamic = sprintf("%2.3f", $dynamic_hits / $total_hits);
my $perc_cache = 100 * sprintf("%.4f", $cache_hits / $total_hits);
$pageview_string = <$vars_wordlets_cp2{home_pageviews} ($GotTime{mon}/$GotTime{JSYear}): $total_hits
$vars_wordlets_cp2{home_pageviews_cached}: $perc_cache%
THEEND
} else {
$total_hits = $cache_hits + $dynamic_hits + $monthly_hits;
$pageview_string = <$vars_wordlets_cp2{home_pageviews} ($GotTime{mon}/$GotTime{JSYear}): $total_hits
THEEND
} # end if
} # end if