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

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

    Went to http://www.kindoffice.co.uk/product_catagories.php
    but could not see any mumbo jumbo.........is it fixed now?¿

    Leave a comment:


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

    Yes I did Chris

    Leave a comment:


  • Collectors-info
    replied
    Re: Single Menu Page with Bv and PHP

    Hi, did you add the

    <?
    }
    ?>


    in the "End of page tab" on the menu2.php page???

    Leave a comment:


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

    Hello Naval

    I am trying to create a 2nd menu (which I've called menu2), which is basically those images below the mumbo jumbo.

    I have followed your instructions (at least I think I have?) but can't fathom why that mumbo jumbo is appearing.

    Please can you help me with this one?

    This is what I've done

    Menu2 Page

    <? function menu2() { ?>

    HTML Code for other pages and this one http://www.kindoffice.co.uk/product_catagories.php

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

    Thanks

    Darren

    Leave a comment:


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

    Thanks so much.... this is one of the best tips!

    Leave a comment:


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

    That's exactly what i posted above. You are correct.

    Leave a comment:


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

    Originally posted by navaldesign View Post
    When i posted this thread, i was (wrongly) supposing that some users would benefit from the function, in example to pass over color schemes (having, with only one menu, multiple looks).
    However, i now understand that NO ONE has ever done this, so i need to clarify:

    If you don't want to have dynamic content, the code could be simply:

    <?
    include 'pagename.html';
    ?>

    and nothing more!

    Also, no need for ANY code in the menu page, which can be plain html (so no need to be php).

    This makes the entire thing much simpler.

    Ok, this is all very new to me...
    so does this mean the menu page does not need to have any code in it and it does not need to be saved as a php?

    And then in the html boxes I create on each page where the menu goes I only need to insert:
    <?
    include 'pagename.html';
    ?>


    That's it? Or am I missing something? It seems so simple so I had to ask. Sorry if it seems so elementary ... I learn something new all the time!

    TIA

    Leave a comment:


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

    Hi George, could you email me please..............thanks

    edit: have sent you an email

    Leave a comment:


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

    When i posted this thread, i was (wrongly) supposing that some users would benefit from the function, in example to pass over color schemes (having, with only one menu, multiple looks).
    However, i now understand that NO ONE has ever done this, so i need to clarify:

    If you don't want to have dynamic content, the code could be simply:

    <?
    include 'pagename.html';
    ?>

    and nothing more!

    Also, no need for ANY code in the menu page, which can be plain html (so no need to be php).

    This makes the entire thing much simpler.

    Leave a comment:


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

    Thanks that helped
    Ofir.

    Leave a comment:


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

    Originally posted by mumu View Post
    I think you have to put ...sub-menu();?>
    no you dont........the submenu function
    will place sub-menu.php
    within the brackets of submenu()

    Leave a comment:


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

    Originally posted by ofirbeigel View Post
    ?>

    Than inside a page of my subcategory I put an HTML box with the code:
    <?php
    include ("sub-menu.php");
    sub-menu();
    ?>
    Ofir.
    I think you have to put ...sub-menu();?>

    Leave a comment:


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

    I cannot explain why the menu behaves like that
    but as you now only have 2 menu pages, play with the colours/background..
    or exchange the menu with a text menu of your own..............(better for SEO's) imo.

    edit: sorry george, typing as you were posting...............

    Leave a comment:


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

    Probably because you have used the same style name in both the main page AND the submenu page. This causes conflicts. Check it.

    Leave a comment:


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

    ok.
    I changed the names and it did work - but now take a look at how it messes up the menus graphics. here is the link.
    You will see the the menu on the top left changes colors once the sub menu comes inside.

    Leave a comment:

Working...
X