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.
Options

Object Factory

edited August 2005 in Vanilla 1.0 Help
I just wanted to mention you ROCK! A well thought out and well designed extensible forum is a welcome breath of fresh air. Most of the other forum software I've looked at was clearly hacked together willy nilly. I was reading through the docs because I'd like to add some extensions (email notification, private messages, auto registration with catchapa, etc.) but from the looks of it there's going to have to be some kind of solution for the Object Factory issue you mentioned in the Wiki. I'm not sure how slow this would be in PHP but maybe some kind of delegate (callback) system where you could register functions to be called per major operation and vanilla would call them all. Of course that would still have a order issue but if each major process in Vanilla had a list of delegates then it would be possible to add extensions that did e-mail notification and e-mail registration etc. I'm not saying it would be easy, just dreaming of a system where the main code doesn't have to be edited to add stuff like that.

Comments

  • Options
    I dunno about the rest, but private messages are already in: they're called Whispers :)
  • Options
    lechlech Chicagoland
    Everything else you could ever want for Vanilla should be rendered and called as an extension. Simple as that.
  • Options
    edited August 2005
    Whisper are NOT private messages. Where's the notification you got one? Where's the option to be e-mailed when someone sends you one? As for extensions, I agree, the problem is the current extension system, though better than other forums, is still missing some functionality. The Wiki already mentions this problem, I'm just trying to suggest a possible solution. On top of overriding classes using the object factory, a system of delegates *might* be a complement to that system allowing you to chain together extensions that have to process the same info. As it is, only one extension at a time can be installed for any one feature. In other words, if I made a email notification system I wouldn't be able to also install Whispers because both extensions would attempt to override the same part of vanilla. The Wiki specifically mentions this problem. PS: I just wanted to say reading through some of the code it's AWESOME. Very clean, very easy to read, very well structured. So different from the spaghetti most other forum's source is.
  • Options
    just because you dont get notification doesnt stop them being *private* messages. Good points about the rest of the extension stuff though; if its on the wiki i imagine mark will get round to it as soon as he can.
  • Options
    MarkMark Vanilla Staff
    greggman: I've been trying to think about how to accomplish extending existing classes and I haven't been able to come up with anything I'd consider satisfactory. If you have some code in mind, I'd love to see it. Feel free to send it over via email: support [at] lussumo [dot] com
  • Options
    MarkMark Vanilla Staff
    Oh, and thanks for the kudos :)
This discussion has been closed.