php - MediaWiki footer viewcount -


i'm using mediawiki, wanna 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 dont know how 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 change code of lftoslink turn on viewcount?

while hit counter removed in mediawiki 1.25, extension:hitcounters available replace core functionality, mark a. hershberger.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -