MyBB Community Forums

Full Version: About Custom CSS Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. I want only administrators to use the Custom CSS plugin. How can I do that?
if you know about php coding you can use condition like this.


if((int)$mybb->user['usergroup'] == 4)
{
//stuff that admin can do
}
(2022-08-17, 07:31 PM)Mostafa.Shiraali Wrote: [ -> ]if you know about php coding you can use condition like this.


if((int)$mybb->user['usergroup'] == 4)
{
//stuff that admin can do
}

Thanks.