"Makelesi Kora-Gonelevu" <[email protected]> wrote in message news:[email protected]... > Hi sorry here it is: > > <!-- No [view source] tab for anonymous users --> > <?php global $wgUser; if( $wgUser->isAnon() ) { ?> > <style> > #ca-viewsource { display: none !important; } > </style> > <?php } ?> > But nothing happens. I can still see the [view source] tab even when im an > anonymous user.
Common.css is a stylesheet; it's parsed as CSS; and only CSS. Quite rightly so, because allowing users to invoke arbitrary PHP code from a wiki page would be... problematic... (understatement of the day). You need to implement this with pure CSS and/or JS. --HM _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
