A quick question regarding the way phpbb handles templates (not sure if this is the right place, sorry for any inconvenience).
Why is there a function called page_header in functions.php that process various information before calling the template class to display it? Why isn't page_header a method of template class?
I'm not suggesting to do this, I simply don't understand and would like to know.
Thank you in advance.
Panagiotis.
Noob question: page_header and $template
Re: Noob question: page_header and $template
page_header() doesn't have anything to do with the template system itself. The template system is mostly standalone. page_header() has some calls to the template class, but it's phpBB3 related, not template related.
Re: Noob question: page_header and $template
I'm not sure if it's me, or prosilver is the benevolent favorite of phpbb(3). It is the only style that I can get theme code to work in. In fact, after using a seperate style with prosilver's theme copy and pasted (and the name changed), I still cannot get things such as {T_IMAGESET_LANG_PATH} or the buttons src, {IMG_BUTTON_TOPIC_REPLY_SRC}, to parse correctly in the cache. In the cache directory, the css template still shows those variables, rather in the prosilver template they output to their respected values.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: Noob question: page_header and $template
It's probably something you've done incorrectly with one of the config files or something else as there are many templates for phpBB 3.0.x that are not called prosilver. You should probably take a look at the Style Creation guide and visit the Styles Support and Discussion forum if you have any further questions (If 3.1.x then it would be here).