FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Fudla! Plugin Core Code Changes (Requirements for FUD 3.0.2 <-> Joomla integration)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Fudla! Plugin Core Code Changes [message #165040 is a reply to message #165039] Tue, 19 April 2011 03:01 Go to previous message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma:
Senior Member
I can take a look at plugin ordering but need to finish the Joomla plugin, port it to Gallery2 and do a three week trip with limited personal internet access starting next week.

I suppose the best way is to add a drop down list (0-9) to each items in the plugin manager. This would default to "0" and when a hook function is registered by a plugin, this plugin weight is stored alongside.
If a user wants a plugin to run later than another if they call the same hook, he selects a larger value.
The application does a sort when a hook is called so that "heavier" instances sink to the bottom and it then runs from lightest to heaviest.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tips for higher iPhone/Andriod/Pre compatibility
Next Topic: Help Needed - fud_user_reg class
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 20:15:08 GMT 2024

Total time taken to generate the page: 0.04220 seconds