PDA

View Full Version : changing the style size and including something in the header. help plz


Sam1985
02-21-2007, 02:41 AM
Basically i created my own nav and logo that i want to use for the whole site.

1- How can i include a php file in the header.
if i go to edit template>header> and i want to include lets say mycustomheader.php(which is just a small 1024 by 200 header)

how should i write the code to include that page?

<?php
require('/home/httpd/thosts/something/httpdocs/mycustomheader.php');
?>

will that work? or i cant insert php into a header?

2- how do i change the width of a style to 1024 instead of 800?

CyberAlien
02-21-2007, 06:52 AM
1. In global.php find this:eval('$header = "' . fetch_template('header') . '";');
and add after it:ob_start();
include('/home/httpd/thosts/something/httpdocs/mycustomheader.php');
$header .= ob_get_contents();
ob_end_clean();

2. Edit style variable "outertablewidth".

Sam1985
02-21-2007, 08:20 PM
1. In global.php find this:eval('$header = "' . fetch_template('header') . '";');
and add after it:ob_start();
include('/home/httpd/thosts/something/httpdocs/mycustomheader.php');
$header .= ob_get_contents();
ob_end_clean();

2. Edit style variable "outertablewidth".

Thanks for the reply.
A little problem though.

It made mycsutomheader.php into a vb board index.
so instead of showing the header, it's showing the forum as if you would go to it at www.domin.com/forum/

it did not include the customheader.php