Quote from: OpenGeek at Jun 07, 2009, 03:28 PM
Every time I start looking into using the SMF hooks, my brain freezes as soon as I try to understand how these "hooks" work. Just give me some classes I can override already! Or how about some SOAP or REST-based web services I can call from my applications?
As for me, my brain freezes as soon as I try to understand your classes !!! (which is probably why I have so much troubles with the access permissions for web user, but that’s another story)
These "hooks" are IMHO quite easy : first you make a link between an event name and the name of a function you created.
When SMF encounters this particular event, it then calls this function, and the returns overides the normal behaviour. As such, you can say a user is logged into SMF by using another user database, and even create this user if it doesn’t exists already into SMF.
From my point of view, this is very well thought, and in a way, is similar to the events and plugins in ModX.