Announcement

Collapse
No announcement yet.

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

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


    • 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.
      Jason Stallworth
      TheMuscleProgram.com (main/first site)
      http://www.themuscleprogram.com/

      My product site:
      http://www.hardcoremusclebuildingprogram.com/

      http://www.jasonstallworth.com

      Working on a metal/guitar site...coming soon!

      Comment


      • 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

        Comment


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


          • 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.
            Jason Stallworth
            TheMuscleProgram.com (main/first site)
            http://www.themuscleprogram.com/

            My product site:
            http://www.hardcoremusclebuildingprogram.com/

            http://www.jasonstallworth.com

            Working on a metal/guitar site...coming soon!

            Comment


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


              • 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

                Comment


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


                  • 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.
                    Jason Stallworth
                    TheMuscleProgram.com (main/first site)
                    http://www.themuscleprogram.com/

                    My product site:
                    http://www.hardcoremusclebuildingprogram.com/

                    http://www.jasonstallworth.com

                    Working on a metal/guitar site...coming soon!

                    Comment


                    • Re: Single Menu Page with Bv and PHP

                      Hi Naval,

                      Thank you very much for help !

                      Comment


                      • Re: Single Menu Page with Bv and PHP

                        For whatever reason I couldn't get this to work so I went the Iframe route instead which was pretty simple. Is one method better than the other for SE or better in general, or does it really matter? Thanks
                        Jason Stallworth
                        TheMuscleProgram.com (main/first site)
                        http://www.themuscleprogram.com/

                        My product site:
                        http://www.hardcoremusclebuildingprogram.com/

                        http://www.jasonstallworth.com

                        Working on a metal/guitar site...coming soon!

                        Comment


                        • Re: Single Menu Page with Bv and PHP

                          Better with the php route as its easy to come across your pages that are the iframe pages & it can get confusing for a visitor.
                          This might give you slightly different view on how to make the php pages up.
                          Regards Chris.

                          Collectables, Collecting, collectors-info.com

                          www.chrismorris.co.uk

                          House build project

                          Comment


                          • Re: Single Menu Page with Bv and PHP

                            I can only get one menu on a page, working. I need 5 menus on each page. I'm unclear about the folder thing?... I want to have everything organized under a sub domain if possible. All my pages are .php

                            Thanks, Upchuck

                            Comment


                            • Re: Single Menu Page with Bv and PHP

                              Of course each menu will have to have it's own unique name.
                              menu
                              menu1
                              menu2
                              menu3
                              menu4
                              with the resulting 5 codes in your html

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

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

                              etc.......

                              you can use any name....menu...header...footer....

                              With BV12.2 it's a bit harder

                              If I'm incorrect with this advice I'm sure NavalDesign will lend a hand.
                              CarbonTerry
                              Semper Fi
                              Still green...still mean......just not as lean

                              Red Hawk Archery
                              Zone 5 Photo
                              My USMC

                              Comment


                              • Re: Single Menu Page with Bv and PHP

                                I can not get more than one menu working on a page? I need upto 5 multiple updating menus on a page. What is the best way to organize my menus? How do get this to work?

                                Thanks, Upchuck

                                Comment

                                Working...
                                X