![]() |
htmldoctype - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Themes (https://community.mybb.com/forum-103.html) +---- Forum: Theme Development (https://community.mybb.com/forum-105.html) +---- Thread: htmldoctype (/thread-125293.html) |
htmldoctype - Darrell - 2012-08-29 I've been looking at creating a custom theme and so I looked at Default Templates -> Index Page Templates -> index and what I see listed in the first few lines are:
However, when I look at the source code for the index page of my forum, I see this as the html tag:
It seems as if the doctype is coming from the Default Templates -> Ungrouped Templates -> htmldoctype template. However, I don't see it get called by the code above. Shouldn't Default Templates -> Index Page Templates -> index then have at the top of it, before the so that it would look like this:
How/why does the {htmldoctype} get called? Thanks in advance. RE: htmldoctype - Omar G. - 2012-08-29 The htmldoctype is added at parse_page(); (used by output_page();):
Global page line #~527:
RE: htmldoctype - Darrell - 2012-08-29 Oh, nvm. I understand now. So it gets called automatically for any page then? Are there any other special-case templates that get called automatically? RE: htmldoctype - Euan T - 2012-08-29 MyBB doesn't particularly follow the MVC model in the 1.x branch. A lot of our code has been adapted from the days of PHP4 through natural progression. RE: htmldoctype - Darrell - 2012-08-29 (2012-08-29, 11:15 PM)euantor Wrote: MyBB doesn't particularly follow the MVC model in the 1.x branch. A lot of our code has been adapted from the days of PHP4 through natural progression. Thanks. I kinda figured that, that's why i changed my post. ![]() |