Re: Guest forced login, should be simple, please help

Stasis, vek, you two are LueLinkers?

Re: Guest forced login, should be simple, please help

Huh?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

28 (edited by C's Daddy 2005-09-21 12:32)

Re: Guest forced login, should be simple, please help

Tobi &  magnus0c:

Your modifications do exactly what I was looking for.  I found one problem, when a login fails, the menu, announcement,  and an Info message are displayed.  How can you direct the program to go back to just the login box? (info message can stay, but I don't want the other stuff)

Rickard,  I understand your reason for not supporting these mods, but as Tobi said it is a design question not a functional issue.  I think PunBB is great!

29

Re: Guest forced login, should be simple, please help

That sounds tricky.
I found this in login.php

    if (!$authorized)
        message($lang_login['Wrong user/pass'].' <a href="login.php?action=forget">'.$lang_login['Forgotten pass'].'</a>');

The function message calls header.php which includes main.tpl, and I think you shouldn't change that.
So you will have to make an extra function like message() but with your own template instead of main.tpl or you have to tweak the message function itself.

The German PunBB Site:
PunBB-forum.de

Re: Guest forced login, should be simple, please help

Thanks Tobi:

That gives me a starting point.

C's Daddy