removing tabs for non-logged in users

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

removing tabs for non-logged in users

Chris McBride
Hello,I am attempting to customize my wiki (savorywiki.com) so that non-logged in users do not see any non-content related links. I am trying to remove the edit/view source, history, etc. tabs from the top of the pages and found instructions here - http://meta.wikimedia.org/wiki/Layout_customization - for doing so (my changes are noted below). Making these changes removed the tabs from the pages in the main namespace, but did not remove them on the Main Page or other category pages. Is there an easy way to remove these tabs from these other pages?
Thanks,
Chris
I removed the "edit" and "discussion" tabs for non-logged in users by editing the file /includes/SkinTemplate.php, changing:                 if( $this->iscontent ) {
to:              
                if( $wgUser->getId() != 0 && $this->iscontent ) {
I removed the "special page" tab by editing the file: /includes/SkinTemplate.php, changing:
 /* show special page tab */

                        $content_actions['article'] = array(
                                'class' => 'selected',
                                'text' => wfMsg('specialpage'),
                                'href' => $wgRequest->getRequestURL(), // @bug 2457, 2510
                        );to:
        /* show special page tab

                        $content_actions['article'] = array(
                                'class' => 'selected',
                                'text' => wfMsg('specialpage'),
                                'href' => $wgRequest->getRequestURL(), // @bug 2457, 2510
                        );*/



_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l