MyBB Community Forums
Tips for a newbie - Printable Version

+- MyBB Community Forums (
+-- Forum: Extensions (
+--- Forum: Plugins (
+---- Forum: Plugin Development (
+---- Thread: Tips for a newbie (/thread-206678.html)

Tips for a newbie - DevPre - 2016-12-14

Hi guys, I'm approaching to mybb plugin development. I know a little little php so this would be the perfect moment to start improving my skills. I need to create a plugin which handles in different ways the attachment files in the postbit. I already found that at attachment.php:170 the test of the file types begins , I was going to inject my code straight into the mybb files but I decided to develop a plugin instead. Where should I start? I don’t know anything about mybb plugin development.

RE: Tips for a newbie - fizz - 2016-12-15

Could you explain a little more what exactly you're trying to do? But yes I would say you're definitely on the right track by making a plugin. Editing the core files is almost always a bad idea and you should be very careful if/when doing so.

RE: Tips for a newbie - Sazze - 2016-12-15

You would have to use hooks.

RE: Tips for a newbie - dragonexpert - 2016-12-15

First I'd start with this thread:

While it is a bit old, it covers a lot of basics. Once you get that down, you might take a look at the advanced guide I have on my Github.