ok i will try to put the code in my skin.php file instead.

On Thu, Mar 25, 2010 at 12:46 PM, Happy-melon <happy-me...@live.com> wrote:

>
> "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
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to