A Lite Login Block for Drupal

The default Drupal login box is...well...big.

I wanted something less obtrusive, with a smaller footprint, so I put together a simple custom module to do just that. At some point I may try to package it up as an official Drupal module, but for now you can get it from the link at the end of this article. You can see the module in action right here on this site.

For anonymous users (Drupal's term for visitors who are not logged into the site), I provide links to create a new account, or to login with an existing account. These links just point to the standard Drupal screens (/user/register and /user, respectively); I don't touch the Drupal authentication system in any way.

Once you are logged in, I say hello (I'm a friendly fellow after all) and provide a link to the user's profile page.

I think this approach is just as functional as the out-of-the-box Drupal experience, but nicer looking and less obtrusive. Of course, I'd appreciate comments on making it better still.

Here's the link to the module. Just unpack in your module directory and enable as you'd expect. Feel free to edit to suit.

AttachmentSize
litelogin-5.x-1.0.tar.gz894 bytes
Filed under: Drupal

This is exactly what I've been looking for. Unfortunately I'm using drupal 6.9. do you know if this would still work for drupal 6x?

It should work fine if you tweak the .info. Or, perhaps even easier, just copy out the guts of it and paste it into a custom block. If I get the time I'll fix it up for 6.x.

I downloaded it is morning and modified the .info to work with 6.9. It was a snap. Thanks!

This is what I changed it to:

; $Id$
name = "Lite Login"
description = "A small footprint login block."
package = "Authentication"

; Information added manually - not an official Drupal module yet
core = 6.x
version = "6.x-1.0"
project = "litelogin"

Hello.

I'm running 6.16 and tweaked the .info file as per these instructions.

The old user box displays, even when disabled, so you us it to login and then get the litelogin box which then lets you login as an Admin.

Could someone please update this code to work with 6.16 (and higher).

Thank You Very Much!
STephen

I am Jason Perkins (starkos), the founder of Industrious One. I'm yammering on about life as an indie, getting things done, Saabs, roadtrips, finding inspiration, and creating the big audacious stuff.

projects:

categories: