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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 07:27:22
Script start
Timing: Jan 19 2025 07:27:22
Module start 'layout'
Timing: Jan 19 2025 07:27:22
Module start 'content'
Timing: Jan 19 2025 07:27:23
Module end 'content'
Timing: Jan 19 2025 07:27:23
Script end

Main resources:

Total runtime0.8937 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1484152.6250
Module start 'layout' 0.00680.0031 741.773439.4297
Module start 'content' 0.00990.8822 781.2031569.8828
Module end 'content' 0.89210.0015 1,351.085912.1875
Script end 0.8936  1,363.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3772160.0002
Check MTime0.00140.1524160.0001
Mysql Total
Database connection0.00130.150110.0013
Mysqli_queries0.836193.5626590.0142
Looping result0.00080.0944570.0000
Template Total0.861496.420.4307
Template load0.00220.247620.0011
Template processing0.859196.138120.4296
Template load and register function0.00030.037910.0003
states
state_id_array0.00080.090710.0008
state_identifier_array0.00160.177520.0008
Override
Cache load0.00180.2024240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.079330.0002
Fetch class attribute name0.00210.237640.0005
XML
Image XML parsing0.00150.170630.0005
class_abstraction
Instantiating content class attribute0.00000.001840.0000
General
dbfile0.00130.1479160.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs