WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

User.prototype.notRegistered()

Find out if a visitor is registered a Boomla user without an active|pending|banned registration on the context website.

Syntax

user.notRegistered() bool

Description

Returns true if the user is logged on to Boomla without an active|pending|banned registration on the context website.

This is one of the few methods to get the users’s registration status. The full list is:

user.anonymous()
user.notRegistered()
user.pending()
user.member()
user.banned()

Note that for any given user, only one of the above methods returns true.

Note that there is a special case, when the user has been invited, which is not an accessible registration mode. This is to avoid leaking the visitor’s identity without his/her consent.

Examples

The sandbox code is executed by its owner, thus by a member of the website.