Account status

Author Message

esperion H

Friday 21 July 2006 2:07:56 pm

I am using the user class to let new users register. I have added the user account datatype to this class. In this datatype there is a piece of code that tells if the user account status is activated or not.

The problem is that on a blank user register page, it says that the account is activated.That is even before the user starts to register!

The code is copied below from content/datatype/edit/ezuser.tpl. It seems correct, but the variable "$attribute.content.is_enabled" can't be working. "$attribute.content.is_enabled" should return false, but it returns true. Why? A clue that could give me a better understanding of how this is supposed to work would also be appreciated.

Thank you.

{* Status *}
<div class="block">
<div class="element">
<label>{'Current account status:'|i18n( 'design/standard/content/datatype' )}
{section show=$attribute.content.is_enabled}
<span class="userstatus-enabled">{'enabled'|i18n( 'design/standard/content/datatype' )}</span>
{section-else}
<span class="userstatus-disabled"> {'disabled'|i18n( 'design/standard/content/datatype' )}</span>
{/section}
</label>
</div>

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 16:21:16
Script start
Timing: Jan 18 2025 16:21:16
Module start 'layout'
Timing: Jan 18 2025 16:21:16
Module start 'content'
Timing: Jan 18 2025 16:21:17
Module end 'content'
Timing: Jan 18 2025 16:21:17
Script end

Main resources:

Total runtime0.7609 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.2188152.6094
Module start 'layout' 0.00620.0033 741.828139.4297
Module start 'content' 0.00940.7501 781.2578406.7656
Module end 'content' 0.75960.0013 1,188.02348.1953
Script end 0.7609  1,196.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4254160.0002
Check MTime0.00130.1643160.0001
Mysql Total
Database connection0.00120.155710.0012
Mysqli_queries0.725295.3079460.0158
Looping result0.00060.0744440.0000
Template Total0.729695.920.3648
Template load0.00160.212620.0008
Template processing0.728095.670620.3640
Template load and register function0.00020.022810.0002
states
state_id_array0.00070.096810.0007
state_identifier_array0.00090.123920.0005
Override
Cache load0.00130.1758180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.070010.0005
Fetch class attribute name0.00060.076510.0006
XML
Image XML parsing0.00010.019310.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0778100.0001
String conversion0.00000.001440.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs