MyBB Community Forums

Full Version: How do I insert PHP code into templates?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to ad some banner rotation to my site and I've been looking into using a PHP banner rotator. But I need to ad the code into the header and index templates. Can I not add PHP code into these? Is this something I have to use a plugin to do? I have Inline Ads installed, but I need to be able to track impressions and clicks, so I really need to go with a PHP setup (as far as I know).

Any help is appreciated.
Yeah, you should be able to do that with a plugin. See the "Hello World" plugin for an example of injecting code into templates.