SimpleDesk

SimpleDesk! => SimpleDesk Discussion => Topic started by: Gruffen on November 03, 2010, 10:43:37 AM

Title: Integration hooks
Post by: Gruffen on November 03, 2010, 10:43:37 AM
Looking at the changes in RC4, it seems that the integration hook system extensions could be used to avoid making some code edits (like the one in the buffer that removes the search form/unread links in SA mode)

Any plans to make use of this?
Title: Re: Integration hooks
Post by: live627 on November 07, 2010, 12:25:30 AM
This is a GREAT idea! I'm not too sure why they were never utilised but SlammedDime's SimpleSEF does this and it looks very simple.
Title: Re: Integration hooks
Post by: cσσкιє мσηѕтєя on November 07, 2010, 05:15:33 AM
Aye, it could probably be a good idea. The reason they weren't so widely used before was that each hook could only be used once due to a 'mistake' with the system. But that's improved in RC4 so we could probably use those now.
Title: Re: Integration hooks
Post by: JBlaze on November 29, 2010, 02:51:52 AM
I look forward to moving towards a more "plugin/hook" type system with SimpleDesk. I am going to research what changes have been made in SMF's hook integration system before making any decisions though. The less core code edits, the better.
Title: Re: Integration hooks
Post by: Gruffen on April 11, 2011, 06:33:02 AM
SD makes much more use of the hooks now, though there's still a woeful lack of really good hook facilities.
Title: Re: Integration hooks
Post by: live627 on April 15, 2011, 03:50:07 AM
Big shortage. So much, in fact, that I would venture to say you've filled most SMF hooks.
Title: Re: Integration hooks
Post by: Gruffen on April 15, 2011, 05:07:19 AM
Most of the ones that are useful, anyway.

There's one glaring failure in the hooks: that you have to load stuff so early on and far more than needed because there's a lack of hooks for including files only when needed.
Title: Re: Integration hooks
Post by: feline on April 18, 2011, 02:47:23 PM
PortaMx use a lot of the integration hooks .. that save us around 50% less code change in SMF  ;)
Title: Re: Integration hooks
Post by: Gruffen on April 18, 2011, 02:51:30 PM
Yup, I saw a fair bit of reduction but most of the stuff that's left, SMF just does not have hooks for.