Noob question: page_header and $template

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
pek
Registered User
Posts: 1
Joined: Fri Jul 04, 2008 10:14 pm

Noob question: page_header and $template

Post by pek » Fri Jul 04, 2008 10:18 pm

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.

User avatar
igorw
Registered User
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: Noob question: page_header and $template

Post by igorw » Sat Aug 02, 2008 12:27 am

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.

Draco02
Registered User
Posts: 1
Joined: Thu Mar 26, 2015 5:25 am

Re: Noob question: page_header and $template

Post by Draco02 » Thu Mar 26, 2015 5:30 am

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.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1731
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Noob question: page_header and $template

Post by DavidIQ » Thu Mar 26, 2015 1:26 pm

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).
Image

Post Reply