[Resurrecting old unanswered question]
I'm attempting to change the login message. I edited MediaWiki:Login prompt as I was advised by Brion, but the edits do not appear on Special:Userlogin... not by normally logging in, nor by directly navigating to Special:Userlogin
What have I done wrong? How can I make this change appear?
Thanks, Carlton
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Brion Vibber Sent: Monday, April 25, 2005 6:43 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Disabling account creation
Carlton B wrote:
Thanks Brion... still having problems though. The text of [[MediaWiki:Loginprompt]] is: "You must have
cookies enabled
to log in to Takipedia." I need to change that, but it doesn't hide the fields that a
user could use
to create a new account.
If you have set $wgWhitelistAccount to disable user account creation, those form controls will not be shown.
Also make sure you're looking at the page as an anonymous user to confirm you're looking at the correct display.
Is Special:Userlogin the page to edit, and if so, how is it
possible to edit
it? Even when logged in as a sysop, this page has no edit tabs.
There is not a page Special:Userlogin that you can edit; it's generated by code. All the interface text on the special pages comes from the language-specific messages, which are imported into the database at install time and are editable as the various MediaWiki: pages. These are all listed at Special:Allmessages.
If you really, really need to change the layout of Special:Userlogin, take a look at includes/templates/Userlogin.php. However I don't think you need to touch anything in there to do what you've asked about.
-- brion vibber (brion @ pobox.com)
Carlton B wrote:
I'm attempting to change the login message. I edited MediaWiki:Login prompt as I was advised by Brion, but the edits do not appear on Special:Userlogin... not by normally logging in, nor by directly navigating to Special:Userlogin
What have I done wrong? How can I make this change appear?
1) Make sure you're editing [[MediaWiki:Loginprompt]], with no space.
2) If you set $wgUseDatabaseMessages = false; in your LocalSettings.php at some point, set it back to true.
Do you have this problem with all messages or just that one? Have you tried other messages?
-- brion vibber (brion @ pobox.com)
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Brion Vibber Sent: Friday, June 03, 2005 2:09 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Changing login prompt message [was: Disablingaccount creation]
Carlton B wrote:
I'm attempting to change the login message. I edited MediaWiki:Login prompt as I was advised by Brion, but the edits do not appear on Special:Userlogin... not by normally logging in, nor by directly navigating to Special:Userlogin
What have I done wrong? How can I make this change appear?
- Make sure you're editing [[MediaWiki:Loginprompt]], with no space.
I copied and pasted the link as you've posted it. I see the changes only when I navigate directly to the page.
- If you set $wgUseDatabaseMessages = false; in your LocalSettings.php
at some point, set it back to true.
It was not set in my config file. Per the above, I've explicitly set it to true.
Do you have this problem with all messages or just that one? Have you tried other messages?
This is the only message that I've tried to alter, so I have no answer for that.
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Carlton B Sent: Friday, June 03, 2005 5:00 PM To: MediaWiki announcements and site admin list Subject: RE: [Mediawiki-l] Changing login prompt message [was:Disablingaccount creation]
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Brion Vibber Sent: Friday, June 03, 2005 2:09 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Changing login prompt message [was: Disablingaccount creation]
Carlton B wrote:
I'm attempting to change the login message. I edited MediaWiki:Login prompt as I was advised by Brion, but the edits do not appear on Special:Userlogin... not by normally logging in, nor by directly navigating to Special:Userlogin
What have I done wrong? How can I make this change appear?
- Make sure you're editing [[MediaWiki:Loginprompt]], with no space.
I copied and pasted the link as you've posted it. I see the changes only when I navigate directly to the page.
- If you set $wgUseDatabaseMessages = false; in your LocalSettings.php
at some point, set it back to true.
It was not set in my config file. Per the above, I've explicitly set it to true.
Do you have this problem with all messages or just that one? Have you tried other messages?
This is the only message that I've tried to alter, so I have no answer for that.
After more testing, it seems that this is a time-related problem, where somehow 60 seconds is a magic number.
Here's how I reproduced the the behavior. Tested pages were Special:Userlogin and Special:Allmessages
1) Access a page that should have substitution. Substitution fails. 2) Wait amount of time t1>60 seconds. Load again. Substitution succeeds. 3) Wait amount of time t2<60 seconds. Load again. Substitution fails. 4) Wait an additional amount of time t3>(60-t2) seconds. Load again. Substitution succeeds. 5) Repeat steps 3-4
Or, in a less systematic way, if I keep hitting reload every second, substitution will succeed once every 60 seconds, and the counter is reset on a successful substitution.
It's as if there is a message substitution variable stored in a cache with a 60 second expiration, but the variable is only being utilized whenever there's a cache reload.
Why is 60 seconds special to message substitution?
Help?
mediawiki-l@lists.wikimedia.org