- Changing Template Variables: I know there now lots of great events for appending new template data to existing styles, but what I really need to is change the contents of an existing template variable, but I'm having a tough time figure out where the correct place to do this would be. Of course with modding I'd just do a search for the variable name in the PHP files and just slap in some code, but that's not the way things are done anymore
If it makes the question simpler, the variable I need is available to all templates (i.e- it's a global template variable) and I assume it's one of the modify events but I guess I'm just a little lost, or have missed the one I need. I don't suppose there's an example that does this?
- Changing HTTP headers: Another one where I'm probably just messing the correct place to do this, but basically I'd like a chance to adjust HTTP headers before certain pages are output. What would be the most efficient way to do this? If possible, I'd like to avoid a single callback for all files, as this would mean I'd have to test against every file I'm interested in, and adjust behaviour accordingly (and some get all the possible variables I may need). Put another way, for viewforum.php I'd like a chance to edit headers using the current forum's data, for viewtopic.php I'd like to do the same using topic data and so-on.
- Attachment Processing: I want to add improved support for a type of attachments, and would like to generate some extra data once such an attachment is uploaded. Is it possible to do this? I know there are events for after a post has been made, so I'm thinking I need one of these, but I'm unclear about how I get at the attachments I need, and how I would produce an error if one of them is malformed?
Hopefully I can get a better grasp soon, as I have quite a few mods I'd like to port as extensions, and maybe actually release this time around (most ended up as such a mess I couldn't bring myself to extract them from my own forum and release them for others that might want the same features). Extensions ought to make this much, much easier.