MyBB Community Forums

Full Version: Removing {header} from Index
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, a strange request.

I've tried removing {header} from the index template as I'm going to design my own index page, yet keep the header the same for all other pages, but when it's removed the forums below get messed up.

Is there a way to remove the header (logo, etc) without throwing off the forums below? Thanks!
you can try adding code segment like below in place of {$header} on the index template
 <div id="container">
<a name="top" id="top"></a>
<div id="content">
<div class="wrapper">
I got this to work by applying

float:left;
margin:15px;

to tborder in css3.css
^ please validate html of your index page .. (eg. http://validator.w3.org/)
[though its difficult to eliminate all reported errors ..]
Error Line 37, Column 36: document type does not allow element "br" here

var loading_text = 'Loading. <br />Please Wait..';



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 47, Column 57: document type does not allow element "img" here

var spinner = "<img src='" + spinner_image +"' alt='' />";



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


I'm so lost as to what this means. lol

Anyway I did remove the float and margin tags

Also having problems sizing #panel in footer and in #container