[EN31] Hooks

A hook is the easiest way to add functionality to / change existing pages.

Hooks allow developers to inject code into various locations in IP.Board 3.1.x. The main purpose of the hooks system is to prevent as many file and skin edits as possible that were mandatory in previous versions of IPB. The new developer tools in IPB 3.1.x allow developers to hook into virtually everywhere in your forum to better the user's experience and add new board features.

Would you like a custom hook?

Please read my services page. more


Latest Hooks

Flexibility

Hooks are for preventing unnecessary file edits.

A hook can inject HTML into any board template, override the default functionality of existing pages, inject custom database fields to existing queries (e.g. new topic query, new post query), override and extend an existing library class, and much more.


Hook into any skin template

Hooks can inject code and output HTML into specific hookpoints in skin templates. Every "if" and "foreach" statement in any template automatically creates a hook point for developers to use.

Override functionality of existing pages

Hooks can extend existing classes and libraries used by IP.Board to either override existing functions or add new functionality to the class.