I contemplated posting this thread somewhere in the Extensions section, but as my concern relates to EVENT indentifiers, which are part of the main phpBB code, I decided on the general support section. Please feel free to move this if I have zagged when I should have zigged.
I will include a screenshot of the current layout of my unfinished Board Index page below, to provide a visual example of what I have done so far. In summary, my navbar_header is now directly above the navbar_footer, at the bottom of the page, and the Search textbox is contained in the navbar_header, (using HiFiKabin's extension).
Whether it is wise to position the navbar_header at the bottom of the index page depends on whether one construes the name 'navbar_header' as the navbar in the document header, or the header of the navbar. I have chosen the latter, and like my navbars down at the bottom, to give prominent attention to the forums.
Back up there in the overall_header, I have added the Google Translate div, (using HiFIKabin's translate extension for the <script> parts), and most importantly for this thread, installed HiFiKabin's Moon Phases extension, and this is where it gets complicated.
Because the Search Box is now down the bottom in the heaver of the navbar, it seems rather silly to retain the <EVENT overall_header_searchbox_before> tag in the overall_header. The searchbox is not there anymore. So, I have made a few changes to the overall_header.html file, and duplicated HiFiKabin's template/event/overall_header_searchbox_before.html event listener, and renamed it overall_header_moonphase.html. There are both in that directory now, although the original is just there because it doesn't work if I rename it to take it out.
Here is the code which I have currently in the overall_header.html file to position the image of the Moon at the right of the overall_header:
Code: Select all
<!-- nonEVENT overall_header_searchbox_before -->
<!-- EVENT overall_header_moonphase -->
What I would like to ask those who know this more recent version of phpBB is, are there any pitfalls or perils which I should consider before I go ahead and add the occasional custom EVENT identifier to any other extensions, providing that I remember what I have changed, so that any new extensions which maybe added in the future will still find their way onto the overall_header, navbar_header or overall_footer in the places where I would like them to render?
I think it will be okay, but I am not really conversant with the technical details of extensions. I have always thought of Symfony as something developed by Lotus 1-2-3 in the last century. Please let me know if there are any peculiar results to be expected by adding custom EVENT identifiers to the main phpBB templates, apart from the possibility of needing to adjust the template/event files of other extensions. I am aware of that one.
Here is the Board Index screenshot in its current unfinished form so far, to better illustrate the preferred layout for the navbar/s. Thank you for reading my excessive explanation.