nickvergessen wrote:Output format: void|bool
Output semantics: If the return format of the hook is "void" or "false", continue execution of the page header (as with the initial RFC). However if the return value is "true", do not execute the phpBB page header.
- Code: Select all
nickvergessen wrote:Input arguments: $page_title, $display_online_list, $item_id, $item
Jhong wrote:This is great.
However, I think for loading scripts and CSS files a more elegant solution is needed. At the minimum, two hooks, for "before other scripts" and "after other scripts", but even better would be a load_phpbb_script() function where you could specify priority and dependencies (see WordPress' enqueue_script() for an example).
Jhong wrote:There are other hooks I would need in the header too -- the order is important. These are the hooks I would currently need:
hook_dtd (override the DTD)
Jhong wrote:hook_meta (override the meta or add new values)
Jhong wrote:in addition to the hook to add a link with the FAQ, etc. links.
Erik Frèrejean wrote:This hook should also be capable to be used as an replacement of page_header, for example if you're trying to build an third party application around phpBB and need system calls like login_box() these functions call the page header. If in that case the actual page header is called, there might arise various issues with the third party application. There are ways to hack your way around this currently but it would be much nicer if you can simply override the phpBB page header with your own code.
Oleg wrote:nickvergessen wrote:Input arguments: $page_title, $display_online_list, $item_id, $item
Template ledges do not have arguments, if they are needed this needs to be discussed somewhere.
Related: A template-hook which you can use to add new links right next to the FAQ-Link: viewtopic.php?p=212631#p212631
psoTFX wrote:I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
Users browsing this forum: No registered users and 2 guests