Thanks for that. I got it worked out over the weekend.
Wade ________________________________ Wade Courtney Business Systems Analyst
100 16th Street San Diego, CA 92101 (619) 238-0100 x6419 FAX: (619) 230-6802 Wade.courtney@sdmts.com
On 11/25/13, 7:57 AM, "gerx03" gerx03@gmail.com wrote:
If you just want to literally "hide" it then it's easier to do with js. http://www.mediawiki.org/wiki/ResourceLoader/Default_modules#mw.user.isAno n
index.php/Common.js
jQuery(function($){ if ( mw.user.isAnon() ) { $('#p-tb').hide(); //id or class varies with skin } } ); --
2013/11/22 gabjgervais gabjgervais@gmail.com
http://www.getcashforsurveys.com/?hop=gabou2014
2013/11/22 Wade Courtney Wade.Courtney@sdmts.com
Greetings:
I used this code that I found here:
https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#content_of_sideba r_and_toolbox_.28javascript.29
<?php $wgHooks['SkinBuildSidebar'][] = 'lfHideSidebar'; function lfHideSidebar( $skin, &$bar ) { global $wgUser; // Hide sidebar for anonymous users if ( !$wgUser->isLoggedIn() ) { $bar = array( 'navigation' => array( array( 'text' => wfMsg( 'login' ), 'href' => SpecialPage::getTitleFor( 'Login' )->getLocalURL(), 'id' => 'n-login', 'active' => '' ) ) ); } return true; }
When I tried to access my wiki I got the white page of death.
I am using MW 1.21.1
Looking for help with this code or a better way to hide the sidebar
for
anonymous users.
Thanks,
Wade _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l