Single Menu Page with Bv and PHP

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • flexworth
    replied
    Re: Single Menu Page with Bv and PHP

    Originally posted by navaldesign View Post
    No, I said that you don't need ANY code in order to include the header page.
    That is, you must NOT add this code

    <? function site_header() { ?>
    (and there is more code, in the End of Page)

    in the "header" page.




    You may add whatever other code of your own you like.
    Gotcha...thanks for the advice man. These forums are extremely helpful! As I learn more I hope to contribute more. I started 'winging it' when I built my sites and had to go back several times and update every page as I learned new stuff.

    Leave a comment:


  • navaldesign
    replied
    Re: Single Menu Page with Bv and PHP

    Please understand that the header and footer are NOT separate areas of the main page, they ALL belong to the same page. Therefore the background can only be unique.

    To have separate backgrounds you need to use framesets but this type of site is based on a different concept. In fact it is a table based layout, whilst BV is css / absolute positioning based.

    You can't make a full width header or footer directly in BV, you would need to hand code it and it is a bit complicated.

    Leave a comment:


  • musteba
    replied
    Re: Single Menu Page with Bv and PHP

    Hi Naval,

    Thank you for clarifying the code issue. I got it. The thing that i would like to have custom background at the header and footer field.

    I also posted a thread about this thing but couldnt get a solution yet.

    Can you suggest any tips how to make full width header and footer background layout on pages ?

    Thanks

    Leave a comment:


  • navaldesign
    replied
    Re: Single Menu Page with Bv and PHP

    No, I said that you don't need ANY code in order to include the header page.
    That is, you must NOT add this code

    <? function site_header() { ?>
    (and there is more code, in the End of Page)

    in the "header" page.




    You may add whatever other code of your own you like.

    Leave a comment:


  • flexworth
    replied
    Re: Single Menu Page with Bv and PHP

    Oh, this changes things a little for me in regards to the header cannot have any code. I was wanting my header to include an HTML box VodaHost, but you're saying the header page should not have any code?

    (if you look on my home page I have the Voda box on the top left corner: www.themuscleprogram.com)

    What you see isn't a header (I just now learned about php; I would have to remove the top portion of every page and replace it with an actual header...that's a lot of work and I don't plan on changing anything in that section). -however, for future sites I would like to create an actual header via php.

    Leave a comment:


  • navaldesign
    replied
    Re: Single Menu Page with Bv and PHP

    I believe you have misunderstood the functionality of this trick.

    The background should be in the main page properties, not in the included page.

    lease also note that if you use the amended code (in the main page)

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

    the "header" page must NOT have ANY code in it in orser to be included.

    That is, you DON'T need the second code you posted.

    Leave a comment:


  • musteba
    replied
    Re: Single Menu Page with Bv and PHP

    hi,

    i am currently using include code on my php pages to use single menu. But when i include the page i cant take the background image, color etc.

    As i understand here on the posts i should create a function page with php extension and publish it in the folder.

    And then to the main page where i will include the header i will paste

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

    and the header page that will be included in all pages

    <? function site_header() { ?>


    Did i understand everything correct ? If not please help how to create it with bv, while i am not familiar with the coding.

    thanks

    Leave a comment:


  • flexworth
    replied
    Re: Single Menu Page with Bv and PHP

    Thanks for the tip man! I didn't know this.

    Originally posted by navaldesign View Post
    You can do this much easier if the pages are .php.
    Just a line of text that will automatically update each year.

    Add the following text at the botom of your page:

    © Copyright '.date('Y').' TheMuscleProgram.com All Rights Reserved


    Right click it, select HTML and add the following codes in the Before and After Tags:4

    Before Tag:

    <?php echo '

    After tag:

    ';
    ?>


    Don't miss the quotes or it will not work.

    Leave a comment:


  • navaldesign
    replied
    Re: Single Menu Page with Bv and PHP

    You can do this much easier if the pages are .php.
    Just a line of text that will automatically update each year.

    Add the following text at the botom of your page:

    © Copyright '.date('Y').' TheMuscleProgram.com All Rights Reserved


    Right click it, select HTML and add the following codes in the Before and After Tags:4

    Before Tag:

    <?php echo '

    After tag:

    ';
    ?>


    Don't miss the quotes or it will not work.

    Leave a comment:


  • flexworth
    replied
    Re: Single Menu Page with Bv and PHP

    Dude this thread rules! I was stressing a little because I had posted a text box for my 'Copyright 2010' at the bottom of each page...well, we're in 2011 now and in less than 6 months we'll be in 2012...and my site has well over 100 pages. Of course I'm gonna have to change each page once to place the initial php (html box) but I'll only have to do this once! Thanks!

    Leave a comment:


  • mumu
    replied
    Re: Single Menu Page with Bv and PHP

    Go to the menu "View" and press "Page HTML" you will find it there

    Leave a comment:


  • BennBenn
    replied
    Where, what and how to find the Body parts like head and body in the webpage

    I got a script I want to put on my page
    but the instructions say"
    "Copy the script and attach it to the head section of your page"
    the continue saying:
    "You then link it into the head of your page"
    then go on saying:
    "add the following code to the body of your web page"

    Where to find this body parts on my page
    or how to do this actions

    PLEASE HELP = Pronto
    Excuse my english!!!!!

    Leave a comment:


  • BennBenn
    replied
    Re: Single Menu Page with Bv and PHP

    Hello, I'm trying to make ask a question, or set a question, but dont see how to
    so i'll just ask it here

    I got a script I want to put on my page
    but the instructions say"
    "Copy the script and attach it to the head section of your page"
    the continue saying:
    "You then link it into the head of your page"
    then go on saying:
    "add the following code to the body of your web page"

    Where to find this body parts on my page
    or how to do this actions

    PLEASE HELP = Pronto
    Excuse my english!!!!!

    Leave a comment:


  • BennBenn
    replied
    Re: Single Menu Page with Bv and PHP

    Thanks, now i can edit my Nav Bar just by opening that one page
    and all of them change auto.
    This is very cool, I like it.
    Thanks to every one that help

    Leave a comment:


  • Vasili
    replied
    Re: Single Menu Page with Bv and PHP

    Originally posted by BennBenn View Post
    Do i got to set all the pages to php where I want to put the menu in?
    or just the index page?
    Originally posted by navaldesign View Post
    The menu page can be either .html or .php

    The pages that use this method to include the menu, MUST be .php
    It's all "in there" if you look close enough!

    Leave a comment:

Working...
X