Thanks for the info, being a total newbie there are so many things I don't know yet.
Yes, it works when I switch off the cache using $wgCacheEpoch="20091118200000";
The next thing I'd like to figure out will be a bit tougher though: I'd like the replacement to be done before the file goes into the cache and only logged in users should see "live" pages, all others see cached ones. It'll probably require automatically updating all kinds of other pages when a new page is created, but that's the kind of stuff I love to write. I just miss a detailed API documentation, but I guess eventually I'll find out most things I need through trial and error.
Thanks for your help,
Sean
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rowan Collins Sent: Donnerstag, 26. Januar 2006 16:04 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Question about Links
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] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l