(Tutorial) Create a Drupal 6 Custom Login Block
Tips : Create a Drupal 6 Custom Login Block
Sometimes the login block that is created from a Drupal theme isn’t as pretty as we might like. The ability to create custom login block really can be useful. Of course, you can take the time to edit the template files, but that can be complicated.
In this tutorial, we have two different components for a custom login block. The first is the block for logging in and the second is the block for when you are logged in. For both of these options, you’ll need to have the ability to use the PHP input type. If your user role doesn’t have the ability, you won’t be able to use this tutorial.
Here are the instructions.
Custom Login Block
- Go to your blocks page (http://www.example.com/admin/build/block) and create a new block.
- You can give it any title you want. The most important part is to take the contents of this file (right click and save as for best results) and put it in the block body and select PHP Code as the Input format.
- You can edit this code anyway you want. Since I am not a pro with HTML I use Dreamweaver to edit the code. You’ll notice that I have it in tables for easy formatting, but if you understand <div> elements better than I do, you can really go to town on the formatting of the form.
Courtesy : Tributemedia.com
- guru's blog
- Login to post comments

![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)