On 20/07/07, Gaetan Lord <mediawiki(a)gaetanlord.ca> wrote:
function wfAmILogged_Render( &$parser ) {
$parser->disableCache();
global $wgUser;
if ($wgUser->isLoggedIn()) {
return "1";
} else {
return "";
}
You can avoid disabling the parser cache for this if you hook
User::getPageRenderingHash() and append login state information. There
should be an example of doing this in our Subversion repository.
Rob Church