Full page login form

pileq - May 15, 2008 - 09:27

Hello!
I'm trying to create customized login form that is displayed as a full screen login page. Something like windows login screen. I'm able to do this by creating page-login.tpl.php file in theme directory, but i have to create it as a module, so i can't create or modify anything else. Please help me :)

Solution is simple ...

jetunseen - May 15, 2008 - 09:33

Hi, you can define is the current page is frontpage or not by:

if(drupal_is_front_page())
{
print theme('page', drupal_login_form());
exit();
}
...or something like this.

in the body of any hook.

Enjoy!

Thanks for reply :) If i

pileq - May 15, 2008 - 10:35

Thanks for reply :)
If i solve it in that way functions like drupal_add_css does'n work, drupal build css also. I have to add css manually in content od login-page.tpl.php. Also all of drupal error messages aren't displayed, even if i add following code inside login-page.tpl.php:

<?php
if ($show_messages && $messages): print $messages; endif;
?>

What i want in module's directory is:
-login-page.module
-login-page.tpl.php
-style.css

 
 

Drupal is a registered trademark of Dries Buytaert.