darnoldy
12th March 2007, 08:49 PM
Okay, I'll go first. Let's start with the header.
The current default template looks like this:<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
This is a table that contains 1 row, that contains 2 cells. The left-hand cell contains a logo image (which also acts a link back to the home page), the right-hand cell contains a space. let's see if we can do better.
<!-- Header -->
<a name="top"></a>
<div id="header">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
<h1 id="headerTitle">$vboptions[bbtitle]</h1>
</a>
</div>
<!-- /Header -->
<!-- content table -->
$spacer_open
$_phpinclude_outputNow all we have to do is build two style rules: #header and #headerTitle
This also helps with SEO--since search engines weight the h1 when calculating relevance--and we didn't have one before.
You may ask "but where do I put my logo?" Because the logo is stylistic--not content--it should be a background image for one of the two elements, and specified in the CSS.
I believe that $spacer_open will eventually need to go away, I have left it in so that this template will work before the full conversion is complete.
The current default template looks like this:<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
This is a table that contains 1 row, that contains 2 cells. The left-hand cell contains a logo image (which also acts a link back to the home page), the right-hand cell contains a space. let's see if we can do better.
<!-- Header -->
<a name="top"></a>
<div id="header">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
<h1 id="headerTitle">$vboptions[bbtitle]</h1>
</a>
</div>
<!-- /Header -->
<!-- content table -->
$spacer_open
$_phpinclude_outputNow all we have to do is build two style rules: #header and #headerTitle
This also helps with SEO--since search engines weight the h1 when calculating relevance--and we didn't have one before.
You may ask "but where do I put my logo?" Because the logo is stylistic--not content--it should be a background image for one of the two elements, and specified in the CSS.
I believe that $spacer_open will eventually need to go away, I have left it in so that this template will work before the full conversion is complete.