Does phpBB use hooks?

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Get Involved
Post Reply
Elysea
Registered User
Posts: 51
Joined: Mon Mar 21, 2011 10:48 pm

Does phpBB use hooks?

Post by Elysea »

I was admin on different phpbb fora for many years, but about 4 years ago we started to use FB and then Discord, because I spend more time maintaining the fora than gaming. But FB and Discord doesn't do the job at all.
My question is, does phpBB now use hooks for plugins?
User avatar
david63
Registered User
Posts: 17976
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Does phpBB use hooks?

Post by david63 »

It depends on what you mean by hooks.

phpBB uses extensions which utilise events within the core code
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
Elysea
Registered User
Posts: 51
Joined: Mon Mar 21, 2011 10:48 pm

Re: Does phpBB use hooks?

Post by Elysea »

Before, when adding/installing an extension, it was usually required to edit the source code, so when phpbb was updated, every edit had to be done again. When an extension was removed, the edit had to be found and removed. An outdated extension could break the whole forum.
Hooks; like WordPress, just install and go.
rxu
Extensions Development Team
Posts: 3298
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Does phpBB use hooks?

Post by rxu »

User avatar
warmweer
Jr. Extension Validator
Posts: 4821
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Does phpBB use hooks?

Post by warmweer »

Elysea wrote:
Mon Jun 29, 2020 10:59 am
Before, when adding/installing an extension, it was usually required to edit the source code, so when phpbb was updated, every edit had to be done again. When an extension was removed, the edit had to be found and removed. An outdated extension could break the whole forum.
Hooks; like WordPress, just install and go.
"Hooks" is just a word describing a fixed place where extra code should come into play.
That word was used in phpBB discussions when development of 3.1 was getting started, but soon the term was dropped in favour of "events".
phpBB now has lots of events allowing extra code to be injected in real time at specific locations in the cached files.
This effectively amounts to the same end result, but with the advantage that no more modifying phpBB files is needed and extension only needs to be uploaded and enabled. (You actually used the word "extensions" incorrectly as you were referring to phpBB3.0 (or 2.0) modifications).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.
Elysea
Registered User
Posts: 51
Joined: Mon Mar 21, 2011 10:48 pm

Re: Does phpBB use hooks?

Post by Elysea »

rxu wrote:
Mon Jun 29, 2020 11:12 am
No code edits now https://www.phpbb.com/extensions/installing/
Thank you! I have been looking for somewhere to read about todays phpBB forum.
Post Reply

Return to “phpBB Discussion”