Topic: Hooks in Javascript

I'm trying to think of a way to make this extension I'm working on a little bit more extensible, but the places I would like to add hooks are in a javascript file.

Is there any way of integrating a way to hook into a javascript file like you can with php? A way that will work with extensions in PunBB?

Re: Hooks in Javascript

you can use header hook to load your own javascript file

YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.

Re: Hooks in Javascript

I was ultimately trying to think of a way to add a hook into an already written and included javascript file, like say into an if-than statement, but I just decided to write the addon differently.

Thanks, though.