How to Remove the "Create an Account or Login" Link?

From AdByEmail.com

Jump to: navigation, search





AdByEmail website moved to www.Shengzi.net




How to Remove the "Create an Account or Login" Link for My MediaWiki?

To remove the login / create account links at the top right of the screen from the personal_urls you can use this code in your LocalSettings.php to hook in and remove them:

$wgHooks['PersonalUrls'][] = 'lfRemoveLoginLink';
function lfRemoveLoginLink( &$personal_urls, $title ) {
        unset( $personal_urls['login'] );
        unset( $personal_urls['anonlogin'] );
        unset( $personal_urls['createaccount'] );
        return true;
}


Personal tools

 Free Publishing
Create a free account
for free publishing in
your language at
www.AdByEmail.com

 Website Translator
Click the Select Language
button to browse in other
language at
www.AdByEmail.com


-Ad By Email   New Pages