XF 1.2 Hide dropdown without commenting it out

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?
 
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>
 
Back
Top Bottom