Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: HelAu007 on January 29, 2021, 09:40:03 AM

Title: Editor customization depending on user/group/boardid
Post by: HelAu007 on January 29, 2021, 09:40:03 AM
Hello All
I would like to add different buttons to the editor (editor.js) depending on the user permissions(or group membership) or depending on the board where this thread is.
Any hints how i can implement this would be very nice,
Thanks in advance
Helmut
Title: Re: Editor customization depending on user/group/boardid
Post by: shadav on January 29, 2021, 03:02:55 PM
as far as I am aware there is no way to assign bbcode to only specific membergroups

you could probably hide the buttons per membergroup but anyone would still be able to manually type the bbcode and use it
Title: Re: Editor customization depending on user/group/boardid
Post by: Kindred on January 29, 2021, 05:32:56 PM
it could be done by usergroup --   you'd have to recode the BBC array to check permissions

doing it by user is not easily doable under the SMF permissions system -- nor is doing it by board.