Porting a MOD (olympus) to extension, is it possible to use old hooks? And how?
As usual if somebody have examples (in case it is possible) to link to.. it is really appreciated.

Regards.
phpbb3.1/includes/hooks/index.php
where nothing differs from phpBB3.0/includes/hooks/index.php
, except from the file header itself. No code-changes.phpBB3.1/phpBB//hook/finder.php
that creates a new finder instance.Thank you Paul, nonetheless it is a good question, mine.Paul wrote:Again, you really should not use them. Simply use the event system in 3.1 and later.
I see, interesting. I can not create one because I can't login to the tracker. I noticed the Website Team long ago but still the problem persists. Thanks for your reply nicofuma.nicofuma wrote:Why it still exists? well... I guess no body ever created a ticket to removed it and people forgot it even exists.
Anyway, has been merged and available since 3.1.6 RC1.I don't know if the event must be called core.user_session_handler or core.user_setup_after...
Or maybe because it is still in use? At least into the install/database_update.php file?nicofuma wrote:Why it still exists? well... I guess no body ever created a ticket to removed it and people forgot it even exists.
Code: Select all
// Add own hook handler, if present. :o
if (file_exists($phpbb_root_path . 'includes/hooks/index.' . $phpEx))
{
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
$phpbb_hook_finder = $phpbb_container->get('hook_finder');
foreach ($phpbb_hook_finder->find() as $hook)
{
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
}
else
{
$phpbb_hook = false;
}