Need Help with PHP menu

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

    • Mar 2006
    • 6294

    #16
    Re: Need Help with PHP menu

    Menu page code - page html - start of page

    <? function ppmenu() { ?>

    End of page

    <?
    }
    ?>

    Page code in html box

    <?
    $file_to_include = $_SERVER['DOCUMENT_ROOT']."/ppmenu.php";
    include($file_to_include);
    ppmenu();
    ?>

    Please note that I DID NOT include the folder at the end.........
    The menu page is in my public directory
    and the page is in another folder.

    If you code correctly, you will get the correct result.

    The above has been run and tested OK
    Have fun
    Regards..... David

    Step by Step Visual Tutorials for the complete beginner
    Newbies / Beginners Forum
    FREE Membership Login Scripts: - Meta Tags Analyzer
    My Social Networking Site - Free Contact Forms
    Finished your New website!! Now get it noticed Here:

    Comment

    • jamslive
      First Lieutenant

      • May 2007
      • 168

      #17
      Re: Need Help with PHP menu

      Mr david
      i dont want to use my public html folder as source of menues.
      as i said, i have several domains on my server and every domain has a different folder, it's will not be comfortable to use the root folder for...
      i want to use the root folder associat with the domain - /public_html/domain_name/menu.php

      for your last suggest above ,in the public_html its work well...
      thank you
      James Acobas

      Comment

      • davidundalicia
        General

        • Mar 2006
        • 6294

        #18
        Re: Need Help with PHP menu

        James, please call me david.

        Unless you have more than one account, then you will only have one public_html directory/folder

        I have 20 or so different domains and each domain has many different folders
        and I use the sytem that I have shown You without any problems.

        I have many different menues and all I do is change the menu name as you might have noticed above.

        good luck with your site.
        Have fun
        Regards..... David

        Step by Step Visual Tutorials for the complete beginner
        Newbies / Beginners Forum
        FREE Membership Login Scripts: - Meta Tags Analyzer
        My Social Networking Site - Free Contact Forms
        Finished your New website!! Now get it noticed Here:

        Comment

        • jamslive
          First Lieutenant

          • May 2007
          • 168

          #19
          Re: Need Help with PHP menu

          David
          now its work but i cant see the image? test menu
          you have an idea for this problem?

          i noticed that in the source html code of the page that call the menu,asking the image from the same folder that the page are.

          <img src="bv01239.gif"


          thank you
          James Acobas

          Comment

          • davidundalicia
            General

            • Mar 2006
            • 6294

            #20
            Re: Need Help with PHP menu

            I have had a look at the test page and links are working OK, but what image are you referring to ?&#191;
            Have fun
            Regards..... David

            Step by Step Visual Tutorials for the complete beginner
            Newbies / Beginners Forum
            FREE Membership Login Scripts: - Meta Tags Analyzer
            My Social Networking Site - Free Contact Forms
            Finished your New website!! Now get it noticed Here:

            Comment

            • jamslive
              First Lieutenant

              • May 2007
              • 168

              #21
              Re: Need Help with PHP menu

              its Bv shapes feture located on the menu page
              thank you
              James Acobas

              Comment

              • Collectors-info
                General

                • Feb 2006
                • 8703

                #22
                Re: Need Help with PHP menu

                Hi, its working here http://you10.net/bv01239.gif (1 directory down) But might be worth seeing if the site is enabled under hot link protection in your cpanel.
                Regards Chris.

                Collectables, Collecting, collectors-info.com

                www.chrismorris.co.uk

                House build project

                Comment

                • jamslive
                  First Lieutenant

                  • May 2007
                  • 168

                  #23
                  Re: Need Help with PHP menu

                  hi and thank you
                  will you be kind to explain the " hot link protection " issue ?
                  and how i can solve it?

                  * - i understand that the page calling the menu from (1 directory down)
                  but how can we tell the codet to upload the image from 1 or 2 down directory ?

                  thank you
                  James Acobas

                  Comment

                  • navaldesign
                    General & Forum Moderator

                    • Oct 2005
                    • 12080

                    #24
                    Re: Need Help with PHP menu

                    When the menu page also has an image, the same considerations (regarding the menu itself) are also valid for the images.

                    Let's suppose that you have published the menu in your public_html/domain_name/foldername (IF you publish in a subfolder)

                    Publish the menu page. This way, the image is also uploaded.

                    Then, go back in BV and insert an Image object in your page. Make it the same dimensions as the shape, and in the source field of the dialog box insert :
                    <? echo $_SERVER["DOCUMENT_ROOT"]."/foldername/bv01239.gif";?>

                    Publish again.

                    At this point you should be done.
                    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

                    • jamslive
                      First Lieutenant

                      • May 2007
                      • 168

                      #25
                      Re: Need Help with PHP menu

                      i think i saw somewhere in the forum, your instraction about the simple way to use the php menu code from the same folder.
                      i think the main idea is to use it and it will be comfortable changing in the future.
                      if i use Bv nevigation bar menu (image for every button)- its a lot of work to customize the menu page - more than that i think when i will need to change the menu page ,it's will take alot of time.????

                      thank you
                      James Acobas

                      Comment

                      • davidundalicia
                        General

                        • Mar 2006
                        • 6294

                        #26
                        Re: Need Help with PHP menu

                        You can find it here
                        and it uses the same sort of code that you have seen above, only shorter.
                        Have fun
                        Regards..... David

                        Step by Step Visual Tutorials for the complete beginner
                        Newbies / Beginners Forum
                        FREE Membership Login Scripts: - Meta Tags Analyzer
                        My Social Networking Site - Free Contact Forms
                        Finished your New website!! Now get it noticed Here:

                        Comment

                        • navaldesign
                          General & Forum Moderator

                          • Oct 2005
                          • 12080

                          #27
                          Re: Need Help with PHP menu

                          Your best bet is to publish the menu in the same folder(s) as the pages that are using it.

                          In this case, publish the menu page as html (in example : menu.html)
                          and make this VERY simple include code:

                          <?
                          include 'menu.html';
                          ?>

                          And you are done.
                          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

                          • jamslive
                            First Lieutenant

                            • May 2007
                            • 168

                            #28
                            Re: Need Help with PHP menu

                            thank you very much (David,vasili and naval).wonderful job
                            for helping me solve this php menu issue.
                            i used that code supplied by David-
                            Menu page code - page html - start of page

                            <? function ppmenu() { ?>

                            End of page

                            <?
                            }
                            ?>

                            Page code in html box

                            <?
                            $file_to_include = $_SERVER['DOCUMENT_ROOT']."/ppmenu.php";
                            include($file_to_include);
                            ppmenu();
                            ?>
                            its work fine in different folder but i customized the menu just with HTML elements
                            NO images,NO shpes

                            thank you
                            James Acobas

                            Comment

                            • jamslive
                              First Lieutenant

                              • May 2007
                              • 168

                              #29
                              Re: Need Help with PHP menu

                              some one can help me with this instruction?
                              because its dose'nt work for me or maybe i didnt understand what exactly to do

                              Originally posted by jamslive View Post
                              thank you very much (David,vasili and naval).wonderful job
                              for helping me solve this php menu issue.
                              i used that code supplied by David-
                              Menu page code - page html - start of page

                              <? function ppmenu() { ?>

                              End of page

                              <?
                              }
                              ?>

                              Page code in html box

                              <?
                              $file_to_include = $_SERVER['DOCUMENT_ROOT']."/ppmenu.php";
                              include($file_to_include);
                              ppmenu();
                              ?>
                              its work fine in different folder but i customized the menu just with HTML elements
                              NO images,NO shpes

                              thank you
                              thank you
                              James Acobas

                              Comment

                              • navaldesign
                                General & Forum Moderator

                                • Oct 2005
                                • 12080

                                #30
                                Re: Need Help with PHP menu

                                Your best bet is to publish the menu in the same folder(s) as the pages that are using it.

                                In this case, publish the menu page as html (in example : ppmenu.html).

                                Do NOT place any code in the ppmenu page (if you already have some, REMOVE it)

                                Then use this VERY simple include code in your pages:

                                <?
                                include 'ppmenu.html';
                                ?>

                                And you are done.
                                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

                                Working...
                                X