Results 1 to 4 of 4

Thread: Single menu page
      
   

  1. #1
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Post 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.

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  3. #3
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Single menu page

    Ah! nice to know & one to remember.

    Cheers.

  4. #4
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default Re: Single menu page

    Thank you Naveldesign,

    I knew I could count on you. Much appreciated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49