Forums / Setup & design / Login form in table?!

Login form in table?!

Author Message

Claus Jensen

Wednesday 26 November 2003 2:09:02 am

Hello,
does anybody know how I can have a login form as a part of the layout? Id like to have it on the right side of a table on the "main" layout, always there when not logged in, and changing to i.e. "Logged in as: admin" when logged in. When I try to do this I include the user/login.tpl in this table, but when trying to login with wrong username or password, the warnings are displayed in the page_mainarea.tpl as the module result. And the login form is displayed there as well. Anybody??

regards,
claÜs

Marco Zinn

Wednesday 26 November 2003 3:06:37 pm

Hm, your warning will always appear in the content area.
We planned to do the same as you, but switched for this setup:

Not logged in:
Print "Login"-Link, which will go to /user/login
Print "Lost your password?"-Link

Logged in:
Print "Welcome John Doe"
Print "logout" (will go to /user/logout and log him out)
Print "change Password"-Link

This is a nice and clean visual design, but requires a click, before one can enter his data. We chose to do this, because most of our users are anonymous at the moment.

But what's the problem with your solution now? Don't you like the error message and the name/password input-boxes at the same page?

Marco
http://www.hyperroad-design.com

RW Wood

Tuesday 02 March 2004 6:18:20 pm

Is there a way to do this same thing (the ezP layout on the current site) in 2.2.9?

Thanks,
RWW