Announcement

Collapse
No announcement yet.

Addiitonal Profile Field for SMods/Admins and those I select

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Addiitonal Profile Field for SMods/Admins and those I select

    Is there a way for me to add a conditional into the UserCP profile template (whchever one that is!) so that it enables a Custom Field if the user is a member of Admin/Smod or of a usergroup I choose?

    I appreciate they cannot do this at registration time as they are only in few groups then, but once they are SMOD, when they visit their UserCP it will pop another field for them to populate...?

    Is it:

    HTML Code:
    <if condition="is_member_of($bbuserinfo, nn)">Show Custom Field</if>
    John

  • #2
    You have to use else too. So the input field is hidden when its not the staff usergroups.

    is_member_of($bbuserinfo['usergroupid'], 1,2,3)

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X