Customize User Login From

1 reply [Last post]
Last seen: 10 years 20 weeks ago
Joined: 2011-11-10


Please, Advice on the steps or videos to watch in order to customize user login form. I wan the user login form to appear in the top nav region I defined in .info theme file. Basically I am sub theming ninesixty theme here is a code snippet from page.tpl.php
<div class="grid-12 clearfix">
<div class="grid-8 alpha">
<div id="main-menu"><?php print $main_menu ?></div>
<div class="grid-4 omega">
<div id="login-block"><?php //I want to have the login form here!!! ?></div>

Thanks in Advance.

Chris Shattuck
Last seen: 10 weeks 4 days ago
Joined: 2009-08-16
Hi there, Good question.

Hi there,

Good question. Here's a couple things to look at:

Maybe think about using the page preprocessing function (7:41 - How to use preprocessing functions) and try rendering the block into a variable there, then using it in the page template file.

The other approach would be to set up a separate region for the login block area and add the block to it via the block interface or the Context module.

Let me know if that points you in the right direction.


Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:

Contact us

Below are the supported keyboard shortcuts for our video player.

Start / stop video
Go to next video
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
Jump to a percentage (2 is 20%, for example)
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
1 month
6 months
10% off
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.