On 26/01/06, Sean Floyd seanizer@gmx.net wrote:
Yes, but so far it doesn't work. I don't know, maybe I'm doing something wrong. Here is my exact code (from the end of LocalSettings.php):
Well, it looks sane enough - maybe you're just not seeing the result because you're seeing a cached page (not just browser cache, but the internal parser cache). Try testing it using an edit preview (which will never be cached) rather than just viewing the page.
If this *is* the problem, you'll need to look into disabling or working around the parser cache (I think there's a LocalSettings variable to turn it right off, or if you want to be really clever you could "teach it" to distinguish logged-in/logged-out views).
It doesn't replace anything, in fact I have no idea if it is ever called.
Well, you can find out if it's being called by adding a line like wfDebug( "hideeditlinks called" ); and setting $wgDebugLogFile in LocalSettings.php to somewhere writable. Obviously, you can output whatever debug info you like, e.g. to see if the regex is correct.
Happy Hacking! -- Rowan Collins BSc [IMSoP]