I found the answer to my own question so I thought I'd post it here
since I could not find it in the archives (maybe its too obvious :^)
To modify the "login / create account" page (Special:Userlogin) which is
used to login to the wiki, modifications can be made in the file
includes/templates/Userlogin.php. For example, I wanted to have the
"Don't have an login?" text be in bold and above the "Log in"
heading to
better visually separate the "create account" link from the login
fields. To do this I changed the lines:
<h2><?php $this->msg('login') ?></h2>
<p id="userloginlink"><?php $this->html('link')
?></p>
to:
<p id="userloginlink"><b><?php $this->html('link')
?></b></p>
<br>
<h2><?php $this->msg('login') ?></h2>
This appears twice in the file so it needs to be changed in both places.
If you also want to modify the text then do as Rob Church notes below by
looking for the text in Special:Allmessages and changing it in the
indicated page. I have decided not to make any text changes however
since I am not clear on what may be using these messages in other
places. I'm worried that if I change a message, such as the text in the
MediaWiki:Nologin page which is "Don't have a login?", that same text
may be used somewhere else, such as an error message, where it may
confuse the message. I guess I could grep for the message page's name
in all of the php files, but changing that text is not worth it right
now.
Does anyone have a good method for determining where the text in the
Special:Allmessages pages end up so if I make a change I'll know what
pages it affects?
-Jim
-----Original Message-----
From: Sullivan, James (NIH/CIT) [C]
Sent: Friday, August 25, 2006 9:22 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] customizing login / create account
Mediawiki 1.7.1
PHP 5
MySQL 5.0.21
I also want to modify the Login pafge text so I tried the instructions
below since I would like to '''bold''' the "Don't have a
login" line. I
found that line in Special:Allmessages as the page "MediaWiki:NoLogin".
So, as WikiSysop I went to that page and hit edit, and I see the
following:
Don't have a login? $1.
So I change it to:
'''Don't have a login?''' $1.
And saved it. When I log out and select "Log in / create account" to
see the login page I do not see the text in bold but instead see the
quotes. I also tried <strong> but that just printed out as well instead
of being interpreted. I've concluded that these messages are formatted
within another page, but I cannot find that page. Any ideas?
-Jim
-----Original Message-----
From: Rob Church [mailto:robchur@gmail.com]
Sent: Friday, August 25, 2006 8:52 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] customizing login / create account
On 25/08/06, Frederich, Eric P2173 <eric.frederich(a)siemens.com> wrote:
Thanks, the MediaWiki:Yourname is just what I was
looking for but not
the MediaWiki:Loginprompt.
I want the place on page where you create an account. Where it says
"Already have an account? Log in."
Special:Allmessages, then, and find it.
If MediaWiki:Username didn't change the Username
text on the login /
create account pages, what does it change?
It depends on what other core code or extensions use that message.
Rob Church
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l