Modifing commons.js should do it. I don't know JavaScript or I would give you the exact code
On Wednesday, March 24, 2010, Makelesi Kora-Gonelevu <[email protected]> wrote: > 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 <[email protected]> wrote: > >> >> "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 >> > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
