MyBB Community Forums

Full Version: Can I use PHP function in writing my own MyBB code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can I use PHP function in writing my own MyBB code?
Like:
if ($mybb->user['usergroup'] != 1)

or I can only Use HTML code?

Thanks a lot!
Yes, definitely! But you can't use it in templates without the PHP In Templates plugin, which you can search for on the mods section and find easily.

But yes using PHP in MyBB is how we make plugins and other more advanced things in templates.