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.