Topic: Hooks replacing pun_include???
Just curious. In 1.3, are hooks replacing pun_include?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → Hooks replacing pun_include???
Just curious. In 1.3, are hooks replacing pun_include?
I don't think we made a decision, but I have thought about it before. Can you think of any reason they shouldn't?
No. We won't be using pun_include to avoid touching core file(s).
Well, potentially you could, since styles can have their own templates. The question is whether it's better to just let extensions take over, since they're more flexible.
The question is whether it's better to just let extensions take over, since they're more flexible.
That too . Plus with extensions there is a central place where custom modifications are kept.
I spoke too soon. It is easier to add a custom script (banner advertising) using pun_include between <!-- pun_stats --> and <!-- pun_about -->, and above <!-- pun_stats --> than using hooks.
That's more of an issue of hook placement than anything else. We just need to put a hook before we echo out anything in each section. It's something that would need to be addressed anyway.
PunBB Forums → PunBB 1.3 troubleshooting → Hooks replacing pun_include???
Powered by PunBB, supported by Informer Technologies, Inc.