You can set a blank logo, then use [[Mediawiki:Group-user.css]] to
overwrite the displayed logo.

On 18 January 2017 at 13:59, Jean Valjean <jeanvaljean2...@gmail.com> wrote:
> I have a super-secret wiki. Therefore, I want to set up my wiki so that
> when a user is logged in, the logo will display, but otherwise it'll be a
> blank logo. The following didn't work too well, apparently because the logo
> is already loaded before this hook runs:
>
> $wgHooks['BeforePageDisplay'][] = 'logodisplay';
> $wgLogo = '';
> function logodisplay( $foo, $bar ) {
>        global $wgLogo, $wgUser;
>                $wgLogo = "$wgResourceBasePath/logo.png";
>        }
> }
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to