Log in

View Full Version : Common template - header


chrisj8221
07-21-2006, 05:11 PM
As we all know the existing code in the common templates - header reads 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]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

It is my userstanding that we can simply overright everything with our own code to create a functional header. Is the correct? and being such a newbie it seems like if i were to just erase the above and replace with my own code - some of the good stuff above would be missing?

I'm just trying to figure out what a am going first before leaping in.

Thanks in advance!

Chris

peterska2
07-21-2006, 05:22 PM
You can replace everything inbetween the two logo comments. The bottom lines$spacer_open

$_phpinclude_outputneed to stay intact otherwise your site will not function correctly, and you will have major style issues

chrisj8221
07-21-2006, 09:12 PM
is it possible to utilize php "included" within here to reference a few templates that I have already created. And if so, would the format for the code be the same as in a traditional .php file>

peterska2
07-21-2006, 09:25 PM
No, you cannot put php code in your header template.

You will need to create some plugins to do that.

chrisj8221
07-22-2006, 03:23 AM
one last quick question on headers. is it possible to "turn-off" the header graphic and just have the info inluded in your header template shown?

peterska2
07-22-2006, 10:15 AM
Yes, the code<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>refers to the logo in the header and makes it a link. You can remove either all of this, or the image section, or move it around a bit.

Basically as long as you don't touch the two lines highlighted earlier then you can do what you want with it in html.

chrisj8221
07-24-2006, 05:37 PM
it took a while for me to get right - but it worked.

THANKS!