want to hard-code a login box into page.tpl.php. What would be the best way to do this?

I've tried this, but id doesn't seem to work.


if($logged_in != ""){
//display normal homepage
}else{
drupal_get_form('user_login');
}

Thanks for the help.

Comments

roper.’s picture

What is $logged_in..?
And you'll need to print your drupal_get_form() call.