
Jan at Bytesmiths
Nov 20, 2009, 8:52 AM
Post #6 of 6
(889 views)
Permalink
|
On 19 Nov 09, at 16:50, Jan Steinman wrote: > On 19 Nov 09, at 13:34, mediawiki-l-request [at] lists wrote: > >> From: Platonides <Platonides [at] gmail> >> >> Jan Steinman wrote: >>>> From: "K. Peachey" <p858snake [at] yahoo> >>>> >>>> On Thu, Nov 19, 2009 at 11:00 AM, Jan Steinman <Jan [at] bytesmiths> >>>> wrote: >>>> Are you using any sort of cahceing, because that would just plain >>>> break it? >>> >>> No caching that I'm aware of beyond what MW does. >>> >>> >>> :::: The Earth isn't a pizza. You can't dial up and have one >>> delivered! -- Alf :::: >>> :::: Jan Steinman <http://www.EcoReality.org> :::: >> >> $wgUser->isLoggedIn() / $wgUser->getId() >> >> Default mediawiki caching will give you problems. You need to disable >> page caching on at least the pages which use your tag, by using >> $parser->disableCache() >> http://www.mediawiki.org/wiki/Extensions_FAQ#Recent_versions > > > Thanks, Platonides. > > I do understand how to get the user from within PHP; I was hoping to > get it from within wikitext. > > I suppose I could write an extension that does nothing but answer > the current user and their ID... Thanks again, and I found a perfect place to put this stuff so I don't have to cobble up an extension from scratch. http://www.mediawiki.org/wiki/Extension:Variables This extension is pretty cool. It will basically let you define new "magic words" as needed from anything that is available in the PHP environment. http://www.mediawiki.org/wiki/Help:Magic_words :::: Having the last word is the final refuge for those who never had a good point in the first place. :::: :::: Jan Steinman http://www.VeggieVanGogh.com :::: _______________________________________________ MediaWiki-l mailing list MediaWiki-l [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
|