Jump to content

Manual talk:$wgDisableCounters

Add topic
From mediawiki.org
Latest comment: 6 years ago by 2001:16B8:1099:BE00:484A:73FC:F023:D7CC in topic $wgDisableCounters = false; not working on my wiki

Operator Question

[edit]

Why use "<>" instead of "==" or "===" when comparing user name?

<> is actually an alternative (and deprecated, as far as I know) syntax for !=. —Emufarmers(T|C) 21:02, 26 October 2008 (UTC)Reply

Hide but don't disable

[edit]

There should really be a way to hide the display of the counter without actually disabling the function of the counter. I want MW to count my views, I just don't want anyone to see them!

I think so too. Maybe in 1.16.0 ? Let's hope for it! --SmartK 09:31, 14 July 2010 (UTC)Reply
#viewcount { display: none; } Max Semenik 09:54, 14 July 2010 (UTC)Reply
Wow this was fast. Thank you Max Semenik. I'm sorry to ask but where do I edit this line? In the "skins" directory? And is there also the option to turn of the "This page was last modified on..."? Thanks --SmartK 11:30, 14 July 2010 (UTC) again...Reply
See Manual:CSS. You can learn the IDs or classes of other parts of interface with Firebug or something similar. Max Semenik 11:36, 14 July 2010 (UTC)Reply
Thanx. I just found the file: skins/MonoBook.php It's perfect. Thank you again! --SmartK 12:33, 14 July 2010 (UTC)Reply
Don't edit the distribution!!! Just create page called MediaWiki:Common.css and put that into it. Max Semenik 12:45, 14 July 2010 (UTC)Reply
Ah OK... and this will effect all the skins and especially all the users? --SmartK 13:30, 14 July 2010 (UTC)Reply
Yes, unless people override it with their personal rules. Max Semenik 13:36, 14 July 2010 (UTC)Reply
Damm. It is not working..... I changed the MediaWiki:Common.css and inserted these two lines:
#viewcount { display: none; }
#lastmod { display: none; }
But no effect. Any ideas? Good tip with Firebug by the way ;-) --SmartK 15:02, 14 July 2010 (UTC)Reply
Force-purge your browser's cache. Max Semenik 15:10, 14 July 2010 (UTC)Reply
Trust me... I thought about that... Also tried IE and FF. But no effect. :-( --SmartK 15:38, 14 July 2010 (UTC)Reply
I now found the answer here: http://www.mediawiki.org/wiki/Manual:Footer
The MediaWiki:Common.css did not work for me. --SmartK 09:26, 16 July 2010 (UTC)Reply
to disable the counter in CSS, use this value instead:
#footer-info-viewcount { display: none; }
and other like for last modified and copyright info respectively:
#footer-info-lastmod { display: none; }
#footer-info-copyright { display: none; }

[RESOLVED] Page count not showing up

[edit]

Greetings,

I commented out the page count setting and I tried setting it to false, but the page counter never displays.

Is there someplace else where it might be hiding?

I also don't see Special:PopularPages..

Thanks,

Wade —The preceding unsigned comment was added by Wade.courtney (talk • contribs) 19:05, 3 January 2014 (UTC)Reply

Where did you comment out the page count setting? It does not need any adjustment in principle if you want it to be active. Tim (SVG) 19:59, 3 January 2014 (UTC)Reply
I fixed the problem. I had it twice in my local settings and they were conflicting. —The preceding unsigned comment was added by Wade.courtney (talk • contribs) 22:35, 6 January 2014 (UTC)Reply
Thank you for your feedback. Marking it as resolved. Tim (SVG) 11:06, 8 January 2014 (UTC)Reply

$wgDisableCounters =true; not working in 1.24

[edit]

I've set $wgDisalbeCounters to true, but the counter is still showing up. This only happened after I created a new wiki with version 1.24 Christharp (talk) 00:01, 17 December 2014 (UTC)Reply

Will be fixed with MW 1.25 (where this feature was removed). --88.130.110.84 13:57, 13 March 2015 (UTC)Reply

$wgDisableCounters = false; not working on my wiki

[edit]

I commented out the page count setting and I tried setting it to false, but the page counter never displays.

Is there someplace else where it might be hiding?

The hitcounter got removed in MediaWiki 1.25, so if you are using this or a newer version, that might well be the reason for the missing hitcounter. --2001:16B8:1099:BE00:484A:73FC:F023:D7CC 22:40, 7 June 2018 (UTC)Reply