On 22/08/05, Sandeep A.S sanippy@gmail.com wrote:
Hi How to remove article,discussion,edit,history tabs for anonymous users ? Also special pages link also to be removed for anonymous users. These tabs/links should come only if the user is logged in ? please let me know which file I need to edit for this ? I am using the skin monobook.
The file you need to edit is - fairly logically - "skins/MonoBook.php"; you can use the function "$wgUser->isLoggedIn()" to check whether the page is being viewed by a logged in user or not (make sure you have a "global $wgUser;" line earlier in the same scope - e.g. the same function - to "import" the global object).
Note, of course, that removing the links won't remove the functions pointed to by them. See http://meta.wikimedia.org/wiki/Preventing_Access if you haven't already, and some things on the attached discussion might also be useful.