Topic: how extension systems work...
could somebody please explain how the extension system for 1.3 works or is supposed to work (i mean from the code side)...
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 discussion → how extension systems work...
could somebody please explain how the extension system for 1.3 works or is supposed to work (i mean from the code side)...
It parses an XML file, stores the code in the database (and in the cache too I think) and then runs an eval() on the code applying to a hook.
ok and in easy english?
sorry i don't get how it is sure that the code is executed in the right place etc.
In the location of each hook a function is called with the hook name. This will return the code that's bound to the hook and an eval() around it makes sure the code gets executed.
so in other words there are hooks in certain places in the punBB code and the mod developer has to place his code in these places...
The mod developer has to say which hook to use. PunBB does the rest.
How many hooks do you reckon to spread around the code?
How many hooks do you reckon to spread around the code?
Enough
Strofanto wrote:How many hooks do you reckon to spread around the code?
Enough
Women, beers and hooks are never enough. I assume that you'll be adding more if needed with the future 1.3 patches, is that correct?
Women, beers and hooks are never enough.
er
PunBB Forums → PunBB 1.2 discussion → how extension systems work...
Powered by PunBB, supported by Informer Technologies, Inc.