View Full Version : Single menu page

Tom vR
05-10-2007, 03:22 PM

I'm quoting Naveldesign from his thread on the Single menu page.
Single Menu Page with Bv and PHP (http://www.vodahost.com/vodatalk/bluevoda-tips-tricks-shortcuts/15764-single-menu-page-bv-php.html)

Please note that you can use this trick not only for menubars, but also for headers, footers, ads, practically ANYTHING that can be in some way inserted in a BV page (BV Rocks!). Just make sure, when using this trick for more than one elements (external pages) to save each page, with each own name, f.e. "header" , "footer" etc., and also in the html box, change the words "menu" with "header", "footer", etc.
You can have as many external elements called in your page as you like.

I have done this for my menu and it's working like a charm.

Now I'm trying to repeat this for a header-logo image.

Page name = header.php
page html - start of page is:
<? function header() { ?>

end of page:

The html code in the html box on another page is:

include ("header.php");

I have followed all instructions and published the page in the same folder as the page where I want to to the header.

When viewing I get thius error message:
Fatal error: Cannot redeclare header() in /home/yohakqf/public_html/general/header.php on line 17

for the html box

What am I doing wrong? Please please please help.

05-10-2007, 04:33 PM
Rename everything from "header" to "header1" or anything similar, like "myheader" because "header" causes a conflict with php's command "header".

05-10-2007, 04:40 PM
Ah! nice to know & one to remember.


Tom vR
05-10-2007, 05:03 PM
Thank you Naveldesign,

I knew I could count on you. Much appreciated.