Announcement

Collapse
No announcement yet.

Single menu page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Single menu page

    Hi,

    I'm quoting Naveldesign from his thread on the Single menu page.
    Single Menu Page with Bv and PHP


    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:

    <?php
    include ("header.php");
    header();
    ?>

    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.
    Bless you
    Tom


  • #2
    Re: Single menu page

    Rename everything from "header" to "header1" or anything similar, like "myheader" because "header" causes a conflict with php's command "header".
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment


    • #3
      Re: Single menu page

      Ah! nice to know & one to remember.

      Cheers.
      Regards Chris.

      Collectables, Collecting, collectors-info.com

      www.chrismorris.co.uk

      House build project

      Comment


      • #4
        Re: Single menu page

        Thank you Naveldesign,

        I knew I could count on you. Much appreciated.
        Bless you
        Tom

        Comment

        Working...
        X