0

I would like the OpenID login page for Media Wiki to be the main login page for my wiki, so I would like to hide the text "Create account" and change the "Log in / create account with OpenID" to "Log in / create account".

The OpenID extension page say you can do this with the variable "$wgOpenIDLoginOnly", but I cannot seem to make it work.

How can I edit configuration files to do this?

svick
  • 236,525
  • 50
  • 385
  • 514
b_d_m_p
  • 123
  • 1
  • 7
  • What version are you on? In earlier versions, that setting was called `$wgOpenIDOnly` – leo Mar 15 '14 at 19:27
  • It is 1.21. That is what the wiki page says. I will try the one you mention. – b_d_m_p Mar 16 '14 at 02:09
  • 1.21 is the version of your MediaWiki. What is the version of your OpenID extension? Please paste the relevant versions from Special:Version (or provide a link to your wiki)! – leo Mar 16 '14 at 09:40

1 Answers1

0

Manual:Preventing access suggests to add in your LocalSettings.php:

function NoLoginLinkOnMainPage( &$personal_urls ){
    unset( $personal_urls['login'] );
    unset( $personal_urls['anonlogin'] );
    return true;
}
$wgHooks['PersonalUrls'][]='NoLoginLinkOnMainPage';
Nemo
  • 2,441
  • 2
  • 29
  • 63