Viewing the MediaWiki Footer List
I am using MediaWiki, I want to show the number of views at night.
My env:
MediaWiki 1.25.1
PHP 5.4.41
MySQL 5.5.43
Considered to be the official guide https://www.mediawiki.org/wiki/Manual:Footer , but I don't know how.
He says:
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink';
function lfTOSLink( $sk, &$tpl ) {
$tpl->set( 'termsofservice', $sk->footerLink( 'termsofservice', 'termsofservicepage' ) );
$tpl->data['footerlinks']['places'][] = 'termsofservice';
return true;
}
how to change lfTOSLink code to enable view?
source to share
While the uninstall counter was removed in MediaWiki 1.25, Extension: HitCounters is now available to replace core functionality, thanks to Mark A. Hershberger.
source to share
Viewcount has been removed in MediaWiki 1.25. See the $ wgDisableCounters documentation for details and alternatives .
source to share
I am degrading version to 1.21.1
The page footer counter is working fine.
Reinstall new instance 1.21.1
Use Maintenance Scripts : DumpBackup , ImportDump , ImportImages
Overcoming data migration in 1.21.1 from 1.25.1
source to share