Forums / Cotonti / Core Labs / set metas from standalone plugin

Trustmaster
#9029 2009-02-28 14:15
# Kilandor : Here is a idea of how the new Advanced hooking will be improved.
  • Hooks to be allow to be only included on specific areas.
  • Ex, a header hook only included on user.details, or a plugin header hook, only included on plug.php?e=myplugin
  • Timed Hooks, hook is only included on its page, when the time has passed, sorta like a cron.
  • Multi-Hooking, hooking a single php file into multiple area's.

And maybe more features.
It makes me think that we should really try callbacks instead of includes. Pre-include problem most probably has some smart logical solution. But what we need to solve in first place is the scope limitations, otherwise old plugins will become incompatible.

# Kilandor : So it comes down to, do we know any plugins, or possible reasons if we move the header. That could cause problems?

My thoughts are, it may cause problems with whoisonline.
It changes the logical flow of things (sorta).
No, whosonline is mostly done in common.php. The plugin is just used to display data from sed_online table.
May the Source be with you!