Forums / Setup & design / Account status

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>

eZ debug

Timing: Jan 30 2025 22:22:13
Script start
Timing: Jan 30 2025 22:22:13
Module start 'content'
Timing: Jan 30 2025 22:22:13
Module end 'content'
Timing: Jan 30 2025 22:22:13
Script end

Main resources:

Total runtime0.1744 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.9531370.3125
Module start 'content' 0.00650.0135 959.2656997.3594
Module end 'content' 0.02000.1544 1,956.62503,887.3906
Script end 0.1743  5,844.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00412.3745200.0002
Check MTime0.00120.7109200.0001
Mysql Total
Database connection0.00060.352610.0006
Mysqli_queries0.077744.55941410.0006
Looping result0.00140.81661390.0000
Template Total0.153988.310.1539
Template load0.00070.392110.0007
Template processing0.153287.857110.1532
Override
Cache load0.00050.275810.0005
Sytem overhead
Fetch class attribute can translate value0.00201.143810.0020
XML
Image XML parsing0.00020.119910.0002
General
dbfile0.01015.7708200.0005
String conversion0.00000.003630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs