(Tutorial) Custom Login Pages & Forms

Tutorial : Custom Login Pages & Forms

Step 1 - Setting up custom pages

The following snippit will cover the following arguments:

  • user
  • user/login
  • user/register
  • user/password
<?php
    if ( arg(0) == 'user'&& ( arg(1) == '' || arg(1) == 'login' || arg(1) == 'register' || arg(1) == 'password' ) ){
 
    //custom one column page layout
    //with blocks not associated with any other pages.
    include 'page-no_column.tpl.php';
    return;
    } 
?>

Step 2 - Preparing template.php

Next, before preparing the template.php, we first need to understand what it is we are modifying. The image below is the Drupal's html output when rendering the login form, along with its related display output.

[Read more..]

Courtesy : Zqlab.com