I need to display only login page in the front page . Till now i have login page in the right menu and i have almost all the module that is needed for me. The one task remaining is that i have to show the tasks i have finished only after login.

Could u plz help me because i am running out of time.

Yubaraj

Comments

btmash’s picture

Go to Administer -> Blocks and look at configuring the block (should be listed as login). You can specify where you want (or don't want) the block to show up.

If you're specifically referring to showing the login page as your front page, you can change that in the administration settings of the site for what the frontpage is.

yogitha’s picture

hi, in your theme in template.php in the this function add if (arg(0) == 'user') if condition

function _phptemplate_variables($hook, $vars = array()) {
global $user;

if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
}
if ($hook == 'page') {

if ($secondary = menu_secondary_local_tasks()) {
$output = '';
$output .= "

    \n". $secondary ."

\n";
$vars['tabs2'] = $output;}

if (arg(0) == 'user')
{
if (trim(arg(1)) == 'login' && arg(0) == 'user') {$vars['template_file'] = 'page-login';}
elseif (arg(1) == '' && arg(0) == 'user') {$vars['template_file'] = 'page-login';}
}

// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
return $vars;
}
return array();
}

If you dont have template.php file in your theme create it .

and create file with name page-login.tpl.php and place in your theme form action must be like this

print $base_path ?q=user/login" method="post" id="user-login" >

Now open your page.tpl.php and copy necessary variable into page-login.tpl.php

enjoy..