Thanks Biron. I made my extension, and it works apart from the fact that the
text inside isn't parsed into wiki format. I've experimented with $wgOut but
haven't been able to figure it out, can you/anyone advise?
Many thanks.
My code:
function renderLoggedIn( $input )
{
global $wgUser;
if ( 0 != $wgUser->getID() ) {
$output = $input; // User is logged in.
return $output;
} else {
$output = ""; // User is not logged in.
return $output;
}
}
-----Original Message-----
From: wikitech-l-bounces(a)wikimedia.org
[mailto:wikitech-l-bounces@wikimedia.org] On Behalf Of Brion Vibber
Sent: 03 January 2005 02:42
To: Wikimedia developers
Subject: Re: [Wikitech-l] Question: logged-in tag?
On Jan 2, 2005, at 6:29 PM, Robert Jones wrote:
I wonder if you could help. Is there a tag tat
will display
the text
contained within only if the user is logged in?
No.
If not, can anyone suggest a way to do this.
http://meta.wikimedia.org/wiki/Write_your_own_MediaWiki_extension
-- brion vibber (brion @
pobox.com)