Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
OOP scares me... (header help)
Hi, I just downloaded Vanilla for use in a small forum, expecting some impressive PHP and MySQL work, but also expecting to be able to work on it just the same. Instead, I see a bunch of object-oriented programming functions that just aren't covered in my basic PHP book. If I want to add some google page tracking to my site, which file could I modify to add it to all the site headers (or just the main ones). I'd really appreciate the help...
0
This discussion has been closed.
Comments
vanilla/appg/init_vanilla.php
is a good place to start to see how Vanilla starts up the Core. The headers are set invanilla/appg/headers.php
but you shouldn't manipulate this file directly as it would break your upgrade path. The best place to get started is the Development Documentation.Delegation is something you will come to love once you get a grasp of OOP.
And as for this: "but I don't know how adding something could break something totally different", this is the nature of computers, small changes can and will change/break something completely unrelated
Doing it this way is the preferred way, as it requires no core file hacking, and will remain enabled after an update.