MyBB Community Forums

Full Version: Custom PHP inside myBB?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there way to add custom php script inside myBB?

I have this banner which has some information from outside forum but still in my site and i need to get that information in forums index page.

Thanks for all help!
Can't you edit index.php with the "custom PHP script"?
And will it show on all pages if required? I personally don't think index.php is gonna show on all the pages.

I'm not too sure though, but I'll check it out. Also, it might get messy due to the templates when you edit the PHP files directly.
It is better to not edit the actual script. Try to include those codes on other pages to the forum pages.
If you want some PHP code to be executed on all MyBB pages, you can put it in global.php, or you can make yourself a plugin using the global_start hook.