Recent Topics

1 Apr 03, 2006 22:39    

I've made a .htm header (with css style sheet) and am looking for a way to include it in the header to replace the default header.. here's the code I tried

<?php require("header.html"); ?>

Am I missing something? Probably since it doesn't work at all.

2 Apr 04, 2006 00:25

What does not work? Do you get a PHP error?

A blank page for exmaple might mean that there's a fatal error, because the .html file cannot get found by PHP, but PHP is configured to not display errors.

If header.html is in the same directory as _main.php, where I guess you tried the code, you might want to try


<?php require( dirname(__FILE__).'/header.html' ); ?>

Also


error_reporting( E_ALL );
ini_set( 'display_errors', 'On' );


might help.

3 Apr 04, 2006 00:29

I figured this out too.. simply make sure your header is a .php file and is in the skins directory of the skin you're using. Also make sure to call to the .css file in the main.php file.

I tend to figure things out a few days after posting them ... *sometimes

4 May 02, 2006 18:06

I just installed b2evolution and am in the process of creating an html header. Your previous experience could possibly help save much time and frustration. Do you mind posting or emailing me the css, php and html code you used for reference? I am creating a header with menu buttons, etc.

Thanks in advance for the help.


Form is loading...