Okay so we have our own ad system for inserting our ads into certain positions at runtime on our static sites. We are bringing in the same system for discourse and all is fairly well, you can see some in http://comunidad.sudandola.com/.
Now these work fine for the most part however they are all done with template overrides from admin, we need this to be done with a plugin so we can have them in sync over all forums. So I need to know a couple things.
How to make a plugin which injects in pretty much the exact same way as in admin customize?
What events I can hook into to trigger new ads on new views or view changes?
All the information I have found on plugins seems to be dated or just hard to follow, are there any documents on it that are solid or even some clear code to read?
These questions are fairly simply but finding the answers has been harder than expected. I did start a plugin but didn’t know what hooks or classes to override to be able to put our own stuff into the HTML instead of the overrides.