User Details Tag

Description: Used to retrieve user detail data

Usage:{% userDetail 变量名称 with name="字段名称" id="1" %}The variable name is not required. After setting the variable name, you can call it by the variable name later, or if the variable name is not set, the result is output directly.

Parameters supported by userDetail:

  • User IDid.idRequired, used to specify which user ID's details to retrieve.

The fields available for the 'name' parameter are:

  • User IDId
  • Parent user IDParentId
  • UsernameUserName
  • Real NameRealName
  • User IntroductionIntroduce
  • User avatarAvatarURL
  • User avatarFullAvatarURL
  • User EmailEmail
  • User phone numberPhone
  • User Group IDGroupId
  • Is a DistributorIsRetailer
  • Account BalanceBalance
  • Cumulative EarningsTotalReward
  • Invitation CodeInviteCode
  • Recent Login TimeLastLoginTimestamp, needs to format the timestamp to date format{% userDetail lastLogin with name="LastLogin" id="1" %}{{stampToDate(lastLogin, "2006-01-02")}}
  • VIP Expiration TimeExpireTimeTimestamp, needs to format the timestamp to date format{% userDetail expireTime with name="ExpireTime" id="1" %}{{stampToDate(expireTime, "2006-01-02")}}
  • User LinkLink

User IDId

Tag Usage:{% userDetail with name="Id" %}

{# 默认用法,自动获取当前当前页面用户ID #}
<div>UserID:{% userDetail with name="Id" %}</div>
{# 获取指定用户ID #}
<div>UserID:{% userDetail with name="Id" id="1" %}</div>
{# 自定义字段名称 #}
<div>UserID:{% userDetail getId with name="Id" %}{{getId}}</div>
<div>UserID:{% userDetail getId with name="Id" id="1" %}{{getId}}</div>

UsernameUserName

Tag Usage:{% userDetail with name="UserName" %}

{# 默认用法,自动获取当前当前页面用户ID #}
<div>用户名:{% userDetail with name="UserName" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>用户名:{% userDetail with name="TiUserNametle" id="1" %}</div>
{# 自定义字段名称 #}
<div>用户名:{% userDetail userName with name="UserName" %}{{userName}}</div>
<div>用户名:{% userDetail userName with name="UserName" id="1" %}{{userName}}</div>

User LinkLink

Tag Usage:{% userDetail with name="Link" %}

{# 默认用法,自动获取当前当前页面用户ID #}
<div>用户链接:{% userDetail with name="Link" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>用户链接:{% userDetail with name="Link" id="1" %}</div>
{# 自定义字段名称 #}
<div>用户链接:{% userDetail userLink with name="Link" %}{{userLink}}</div>
<div>用户链接:{% userDetail userLink with name="Link" id="1" %}{{userLink}}</div>