1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Hide dropdown without commenting it out

Discussion in 'Styling and Customization Questions' started by Nudaii, Jan 22, 2014.

  1. Nudaii

    Nudaii Well-Known Member

    Howdy

    On several clients websites, the client admin changing the xenforo primary group causes them all sorts of chaos (as usergroup permissions require registered as a base) and this issue happens a few times a month between my clients.

    my idea is to hide(invisible but present) the drop down, yet unsure the best way to accomplish this

    Code:
    <xen:selectunit label="{xen:phrase user_group}:" name="user_group_id" value="2">
                        <xen:options source="$userGroups" />
                        <xen:explain>{xen:raw $_userChangesHtml}</xen:explain>
                    </xen:selectunit>
    any suggestions?
     
  2. Nudaii

    Nudaii Well-Known Member

    anyone?:)
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Do you mean in the ACP?

    If so, you would need to edit the user_edit admin template like so to comment out the code:
    Code:
    <xen:comment>
        <xen:selectunit label="{xen:phrase user_group}:" name="user_group_id" value="{$user.user_group_id}">
            <xen:options source="$userGroups" />
            <xen:explain>{xen:raw $_userChangesHtml}</xen:explain>
        </xen:selectunit>
    </xen:comment>
     

Share This Page