July 2008
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
About Me!
  • Name:Kasey
  • Location:An insane asylum called California
Categories
Daily Blog Reads
Archives
Extras
Credits
Visit ASPCA.org
Recent Comments
Jennie: It did make me run right out and get one ... [more]
Bonnie: I read several articles and actually was ... [more]
Bruce: Some interesting stuff there. Some I do, ... [more]
Kasey: Judy, I believe you're making a false as ... [more]
Judy: With S.S. many more people are paying in ... [more]
Kasey: I understand what you're saying complete ... [more]
Bruce: Well, I don't know what to comment on th ... [more]
Bonnie: Merry Christmas to you and your DH too, ... [more]
Bruce: Well, I for one did get a gadget gift. M ... [more]
Kristi: Hey Kasey! Merry Christmas to you, too! ... [more]
Kasey: Thank you, Bruce, for the well-wishes. F ... [more]
Bruce: Merry Christmas Kasey and Travis. Hope y ... [more]
Immigration
The Bear Flag League
'Dry Run' Hijacking Practice  « «   Home   » »  Heinz-Kerry Supports Violence Training for GOP Convention Protesters

Browse inside category "Miscellaneous":
Using PHP Includes  « «   Modifying the MT Login Screen   » »  A Legal Guide for Bloggers
 

July 16, 2004

Modifying the MT Login Screen

Whenever I frequent a web site that also requires me to login, I always appreciate the web site designer adding that small 'extra touch' by placing the cursor in the first field of the login form awaiting my tippy-tappy little fingers to enter my username and password. The same holds true of any application I use that requires a login. Movable Type just so happens to be one of those applications.


Screen shot of Movable Type login screen. Click this thumbnail image to show the full-size version.From the first time I logged in to the MT system, I became increasingly annoyed at the MT login screen because the interface designer had not taken into account that the only purpose of that screen is to log in, and perhaps it would be nice to place the user's cursor in the first field of the form.


My annoyance finally hit new levels, and I decided to do something about it. After a bit of research to determine which file would need to be edited, I went for it. Here's how you can do the same thing yourself.

The login screen is located in the “templates” directory of your MT installation. If you have used the default installation settings, your login screen template should be located at /public_html/cgi-bin/mt/cms/tmpl/. Navigate to that directory. Find the file called “login.tmpl,” and open it in your favorite text editor.


Look for the following code:


<font class="title"><MT_TRANS phrase="Username"><br><input name="username" size="20">

Modify the code as indicated.


<font class="title"><MT_TRANS phrase="Username"><br><input name="username" size="20">
<script>document.forms[0].username.focus()</script>

Save the updated version of login.tmpl back to it's original location on your web server. No rebuilding is required. (Yee haw!) Simply call up your MT as usual and enjoy the results!

Posted by Kasey on July 16, 2004 03:59 PM | Filed Under: Miscellaneous
Comments

Hi there!

Thanks for this useful tutorial! I linked to your site in a post on this subject.
The trackback ping doesn't seem to work though: it doesn't show up on your site.

Just wanted to let you know in case you were not aware of this yet!

Posted by: zeebeest on December 5, 2004 01:58 AM

This is really strange..

When I added my comments there were no trackbacks at all (the Movablog one was not there either) and now there are 2 of them after I posted my comment!

Strange because I really checked for 10 minutes (refreshing the screen all the time) to seee if the trackback showed up..

I'm having such a weird day..

It looks like the trackbacks don't show up untill someone posted a comment. Seems strange though..

Posted by: zeebeest on December 5, 2004 02:01 AM

Sorry: I meant Movalog. :-D *grin*

Posted by: zeebeest on December 5, 2004 02:03 AM