T twdu New member Jan 22, 2021 #3 Brogan said: Which button? Click to expand... Any button. But a custom button is more what I'm referring to. Upvote 0 Downvote
Brogan said: Which button? Click to expand... Any button. But a custom button is more what I'm referring to.
P Paul B XenForo moderator Staff member Jan 22, 2021 #4 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. Upvote 0 Downvote
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.
T twdu New member Jan 22, 2021 #5 Is there information on creating a custom bb code callback to show to a usergroup? Upvote 1 Downvote