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?

+3


source to share


3 answers


While the uninstall counter was removed in MediaWiki 1.25, Extension: HitCounters is now available to replace core functionality, thanks to Mark A. Hershberger.



+2


source


Viewcount has been removed in MediaWiki 1.25. See the $ wgDisableCounters documentation for details and alternatives .



+1


source


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

0


source







All Articles