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?
1 2005-08-04 06:17
Re: Guest forced login, should be simple, please help (29 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2005-08-04 06:12
Re: Guest forced login, should be simple, please help (29 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hmm, i cant understand why its not working... mine is up at http://www.rahvaliit.ee/intranet/
this is how you wanted it, right?
3 2005-08-03 12:11
Re: Guest forced login, should be simple, please help (29 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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...
4 2005-08-03 12:01
Re: Guest forced login, should be simple, please help (29 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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>
5 2005-08-03 11:33
Re: Guest forced login, should be simple, please help (29 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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...
6 2005-08-03 11:24
Re: nothing to see without login (7 replies, posted in PunBB 1.2 troubleshooting)
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.
7 2005-08-02 16:50
Re: nothing to see without login (7 replies, posted in PunBB 1.2 troubleshooting)
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?
8 2005-08-02 14:06
Re: nothing to see without login (7 replies, posted in PunBB 1.2 troubleshooting)
nobody? is it really so hard to do?
9 2005-08-01 20:31
Topic: nothing to see without login (7 replies, posted in PunBB 1.2 troubleshooting)
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