"Makelesi Kora-Gonelevu" <makele...@gmail.com> wrote in message news:8f623ff1003241613r4bb92efcnbb3c19cc015ee...@mail.gmail.com... > 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 Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l