I'm using MediaWiki, wanna to show view count on foot.
My env:
MediaWiki 1.25.1
PHP 5.4.41
MySQL 5.5.43
Readed offical manual https://www.mediawiki.org/wiki/Manual:Footer but i dont know how to do.
It's say:
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink';
function lfTOSLink( $sk, &$tpl ) {
$tpl->set( 'termsofservice', $sk->footerLink( 'termsofservice', 'termsofservicepage' ) );
$tpl->data['footerlinks']['places'][] = 'termsofservice';
return true;
}
how to change code of lfTOSLink to turn on viewcount?
While the hit counter was removed in MediaWiki 1.25, Extension:HitCounters is now available to replace the core functionality, thanks to Mark A. Hershberger.