MyBB Community Forums

Full Version: where is the BODY tag?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When I look at code source, I didnot find the opening BODY tag !!
I did look at Templates & Style ---> Templates ---> mytheme ---> Header Templates---> Header
But there is no BODY or HTML tag Confused
body tag is declared in different templates that have the overall page layout. For example, for showthread if you go to Showthread Templates >> showthread you'll see it there. For the index page if you go to Index Page Templates >> index you'll find it there and so on
Use headerinclude template which is located under "Ungrouped".
@ G33k
Thanks, but I am looking for a way to set it globally

@labrocca
I do have a BODY tag under some pages, for example: Forum Display Templates
So If I will add it to headerinclude, I end up having two BODY tags
Here is the source code from forum display page:
<!-- end: footer -->
</body>
</html>
<!-- end: forumdisplay -->M>
			</div>
‚b /div>
This is from index page:
<!-- end: footer -->
</body>
</html
</tbody>
</tablee"lass=p¯
Any idea? Huh
I think the body tag is only included in the templates that load a complete pag like index or user cp
If a template for say the note pad in the usercp was to have a body tag then you'd in effect have a page load inside a page.
What are you trying to do? I'll tell you how to do it.
I am trying to remove
<!-- end: forumdisplay -->M>
			</div>
located beyond the closing BODY tag in forum display page:
<!-- end: footer -->
</body>
</html>
<!-- end: forumdisplay -->M>
			</div>
‚b /div>

I also want to fix the closing HTML tag in index page:
<!-- end: footer -->
</body>
</html
</tbody>
</tablee"lass=p¯

However he end of index template looks normal, like this
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

This is the whole forumdisplay template
<html>
<head>
<title>{$mybb->settings['bbname']} - {$foruminfo['name']} </title>
{$headerinclude}
{$rssdiscovery}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$moderatedby}
{$usersbrowsing}
{$rules}
{$subforums}
{$threadslist}
{$footer}
</body>
</html>
You're either running a bad plugin or a bad theme with bad templates. Because you can check any other MyBB site and they don't have that bad code. MyBB validates.

You have bigger problems imho than you think.
(2011-02-25, 08:51 PM)labrocca Wrote: [ -> ]You're either running a bad plugin or a bad theme with bad templates.

Yeah, it looks like a plugin tried to edit your templates and wrecked some of them. Which plugins do you have installed?
Pages: 1 2