XF 2.2 Show Editor Button based on permissions

There isn't an way way to do it.

Buttons can be targeted in the extra.less template using:
Less:
[data-cmd="xfCustom_bbcode-tag-name"]
{
    less code here
}

For example, this will colour the icon for a custom bb with a tag name of test, orange:
HTML:
[data-cmd="xfCustom_test"]
{
    color: orange !important;
}

But conditional statements can't be used in less templates, so it isn't possible to hide it for non staff members.

It would require creating the custom bb code as a callback.
 
Top Bottom