Getting ready for hooks

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
lothario
Registered User
Posts: 4
Joined: Wed Oct 20, 2010 12:59 pm

Getting ready for hooks

Post by lothario »

Hello,

This post is a question into how best to prepare for the hook system (if possible), and I'm not sure this is the right forum, but it seemed so.

I have a heavily and chaotically self-modded phpBB3 forum, that is the base of my website. I have always planned to make the modifications properly according to MODX, so I could do a fresh install everytime phpBB updated, but never really got around to do it.

Now with the new hook system on it's way, I was wondering if I could start preparing in any way, so I will be ready, once you have the specs/documentation set.

The things I had in mind for preparation was:

- Making a list of all the places in the code, where I'd want to hook in.
- Restructuring my code (not coding, but planning) to fit in with the mod class system described here: viewtopic.php?f=84&t=32805

I know that any coding I do is futile, untill the hook system is locked, but I wanted to clean up my code anyway, so doing it with the hook-system in mind would probably help me in the long run.

I just wanted to hear if you have any recommended readings (other than the blog-posts that I subscribe to) or tips on how I best can prepare for hooks.
Is it better for me just to make a proper MOD and later convert it, should I just wait until more details are settled or are there things to do now already?

If this topic has already been discussed, please direct me to the right one. I did a search (albeit quick), and didn't find one related to what I wanted.

If there is a post on how MOD REPLACE will work in the hook system, I'd also be interested in reading that.

Thank you,

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1905
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Getting ready for hooks

Post by DavidIQ »

Best thing you could do at this time is to follow this forum and pay attention to which hook locations are approved:
viewforum.php?f=111
Image

splitice
Registered User
Posts: 5
Joined: Fri Feb 06, 2009 5:39 am

Re: Getting ready for hooks

Post by splitice »

Im in a similar situation myself, ive decided to wait until an alpha is ready -- or atleast useable

Post Reply