p.s. are you sure you saved header_login.php as a new file and did not overwrite header.php? Same deal with login.tpl instead of main.tpl... Old files must stay too, you knew it, right?

hmm, i cant understand why its not working... mine is up at http://www.rahvaliit.ee/intranet/
this is how you wanted it, right?

if you also would like to "forget password" form to be similar to the login form you should edit login.php even more:

FIND(row 163 or close to it):

require PUN_ROOT.'header.php';

REPLACE with:

require PUN_ROOT.'header_login.php';

and since my login.tpl login division is too short then :

FIND(row 175 or close to it):

<input id="req_email" type="text" name="req_email" size="50" maxlength="50" />

REPLACE:

<input id="req_email" type="text" name="req_email" size="30" maxlength="50" />

thats it... Good luck...

login.tpl may be like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 120px;
        float: left;
    }
    #main {
        margin-left: 5px;
        width: 350px;
        vertical-align: middle;

    }
    #container {
    width: 100%;
    float: right;
   
    }
</style>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">



<div id="container">
    <div id="main">
   
        <pun_announcement>
   
        <pun_main>
       
    </div>   
</div>



<div class="clearer"></div>



</div>
</div>

</body>
</html>

hi, i'm doeing the exact same here. since Tobi solved the code issues i can tell you how to lose everything around loginbox. 

in login.php row 199 or somewhere near is

require PUN_ROOT.'header.php';

replace it:

require PUN_ROOT.'header_login.php';

then open header.php and FIND

else
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/main.tpl');

and replace width:

else
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/login.tpl');

and Save As header_login.php

then open include/template/main.tpl and edit it as you like, afterwards Save As login.tpl

There might be a better way to do it and probably there are some bugs, but it works for me...

thank you very much, Tobi! works very well. and the part where nobody can't register suits me very well because its going to be an intranet. So, thank you.

thank you for your answer, but it still did not solve the problem. now it does not show any page, instead i get an error message: "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked" well, cookies are not blocked... might there be a problem with the cookies path or smth?

nobody? is it really so hard to do?

is it possible, that without login, only thing you see is a login form? how can i make such a thing happen?

best wishes,
magnus