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)...

FluxBB - v1.4.8

Re: how extension systems work...

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.

Re: how extension systems work...

ok and in easy english?
lol
sorry i don't get how it is sure that the code is executed in the right place etc.

FluxBB - v1.4.8

Re: how extension systems work...

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.

Re: how extension systems work...

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...

FluxBB - v1.4.8

Re: how extension systems work...

The mod developer has to say which hook to use. PunBB does the rest.

Re: how extension systems work...

sweet. thanks.

FluxBB - v1.4.8

Re: how extension systems work...

How many hooks do you reckon to spread around the code?

Re: how extension systems work...

Strofanto wrote:

How many hooks do you reckon to spread around the code?

Enough smile

Re: how extension systems work...

Jansson wrote:
Strofanto wrote:

How many hooks do you reckon to spread around the code?

Enough smile

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?

11

Re: how extension systems work...

Strofanto wrote:

Women, beers and hooks are never enough.

er