Thread:Project:Support desk/How to hide "View History" button for unlogged users?/reply (29)

Between the closing bracket and directly in top of the line "return true;" add

if( $wgUser->isLoggedIn ) { // Hide some buttons for those logged in               if ( $skin->getSkinName == 'vector' ) { # Modify the following CSS code so that the definition matches the one you need. $out->addInlineStyle( '#my-example { display:none; }' ); }       }

This code will then hide the CSS element with the ID "my-example". Replace my-example with the ID of the elemnt, which you want to hide.