Erik's blog

Theming the User Login Block

I had a question posed to me about how to change the "Request new password" text on the User Login block, so I did a little investigation and came across a great article by Addison Berry of Lullabot that did basically what I wanted, but only to a different form. That, plus another article where she details her "Aha!" moments in Drupal theming really pulled the whole thing together and led to a fairly simple result.

The user_login_block function

The user_login_block function is part of the user.module and generates the form for us. This is separate from the individual login, register, and password pages found, just the "User Login" block, but can be easily extended to the others as well. In reading the definition of the user_login_block function, the last part to be added to the form is a section of links:

Skate for the Stars

Get the Flash Player to see this player.

My birthday present -- Sept 6

I remembered in the morning that my father had at least one if not all of the Pirates of the Caribbean movies on DVD. So off to my parents house to raid the movie Library. While there, I got the second and third Pirates movies, the second Matrix movie (just in case there was something about the Oracle from the Matrix) and just for good measure, a new Dilbert book.

I watched the third Pirates movie first because it was "At the End of the World" and about half way through got to this dialog:

Gibbs: Look sharp, men. It's not for naught that this be called Shipwreck Island, on which is found Shipwreck Cove and the town of Shipwreck!

Jack Sparrow: You know, for all that pirates are clever cobs, we are a very unimaginative lot when it comes to naming things. I once sailed with a geezer; lost both his arms and part of his eye.

Gibbs: What'ya call 'im?

Jack Sparrow: ... Larry.

My birthday present -- Sept 3

So on my actual birthday, I thought briefly of going on my quest before work, leaving at 5:30am or so. But fate, tiredness, and kids who needed to get ready for the first day of school put a damper on those plans. So I remained patient and waited until my important meetings were over at work and decided that on my birthday, I could leave a little early. At 3pm, I left for Ipswich. It was a beautiful day to be on the road with the windows down and the country music playing.

Once I got up to the Sanctuary, I went inside to sign the log book and make sure that what I thought was the path to the Observation Tower really was. With my pictures in hand, I set off to see what I could find.

My birthday present -- Sept 2

I got one of the coolest presents this year. My brother gave me:

  • two photographs
  • a hand-scrawled piece of paper
  • and a locked box without a key

A Treasure Hunt!

 

Elsa's Piano Recital

Get the Flash Player to see this player.

RT Owner Summary

I have two Elements that I have in $RT_HOME/local/html/Elements

  1. QuickSearch
  2. OwnerSummary

which serve to expand the Quick Search sidebar to include ticket owners and the number of tickets in their queues. The list of Queues is editable and it seems to work well to keep a fairly quick view of the status of tickets that are owned.

These Elements work for me, but I haven't done any testing to see if they are really bullet proof for everyone. Feel free to use and adapt as you will.

Here's a screenshot of what it looks like on one of my queues:

_Erik

A day at the Discovery Museum

Photo: 
Britta with a magnifying glass

The other day, we went to the Discovery Museum in Acton. Such a great thing to watch the difference between a three year old and a five year old in exploring these exhibits.

Drupal Installation

Well, I'm moving the site over to Drupal. Seems like I may actually use it if I do.

Stay Tuned.

Syndicate content