Finding out whether the user has ever logged in

Author Message

Slavo Uhrin

Monday 18 July 2005 5:54:39 am

Is it possible to find out if the user has ever logged in itself?

independent eZ developer | http://howgh.sk

Eivind Marienborg

Monday 18 July 2005 6:54:21 am

I think you might be able to use the last logged in timestamp. I suppose that will be blank if the user hasn't logged in yet.

But the timestamp isn't available in all versions of eZ Publish, as far as I've understood.

Slavo Uhrin

Monday 18 July 2005 7:00:45 am

Thanks, do I need to use a SQL query or is there any way how to get it via the standard template mechanism?

independent eZ developer | http://howgh.sk

Eivind Marienborg

Monday 18 July 2005 7:07:04 am

It's not available in the eZ version I'm running, so I'm not completely sure. But you might try {$user.last_visit_timestamp}, and change the 'user' to current_user/node or whatever you're getting it from.

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 18 2025 10:43:33
Script start
Timing: Jan 18 2025 10:43:33
Module start 'layout'
Timing: Jan 18 2025 10:43:33
Module start 'content'
Timing: Jan 18 2025 10:43:34
Module end 'content'
Timing: Jan 18 2025 10:43:34
Script end

Main resources:

Total runtime1.4146 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 593.6797152.6406
Module start 'layout' 0.00480.0028 746.320339.4766
Module start 'content' 0.00761.4051 785.7969545.6406
Module end 'content' 1.41270.0018 1,331.437512.1250
Script end 1.4145  1,343.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2153160.0002
Check MTime0.00130.0952160.0001
Mysql Total
Database connection0.00080.057510.0008
Mysqli_queries1.362596.3196600.0227
Looping result0.00070.0480580.0000
Template Total1.382697.720.6913
Template load0.00230.163620.0012
Template processing1.380197.568020.6901
Template load and register function0.00010.006210.0001
states
state_id_array0.00080.056810.0008
state_identifier_array0.00100.068720.0005
Override
Cache load0.00180.1276150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.038920.0003
Fetch class attribute name0.00190.134960.0003
XML
Image XML parsing0.00090.064120.0005
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00080.0592210.0000
String conversion0.00000.000340.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs