1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Dynamic Navigation

Discussion in 'Content Management' started by johniman7, May 21, 2006.

  1. #1
    Hello. I need dynamic navigation for my site without a whole cms. I jsut want to have a 3 column layout but that I can change the navbars of all the pages at once. Here is my site to get an idea of what kind of content and how much navigation may be needed. I would prefer this be a easy to use script as I am a newb to php. I want to edit pages individually for the rest of it.

    http://myspacemagic.net

    That is my site.

    Here is an example of an extremely simple 3 column layout I set up a while ago but the columns were used for adsense instead.

    http://hanger12design.com/myspacemagic2

    In the second link i would like to have the main navigation in the left bar and below it link exchanges. I would like to have it dynamic.

    Sorry if I was repetitive or unclear in my description of what I was looking for. Thanks in advance ~John
     
    johniman7, May 21, 2006 IP
  2. Hombre

    Hombre Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    You might want to consider looking at using a PHP include for the navigation on the page. Using <?php include(navfile.php); ?> allows you to insert almost any type of file and data anywhere on the page and also means that any updates or alterations can be done in one file and instantly reflected on every page that contains the included file.

    ATB
     
    Hombre, May 22, 2006 IP
  3. johniman7

    johniman7 Peon

    Messages:
    245
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok thanks for the tip. HOw would I work that though since I am a newb to php. Would I use the code you gave and then use navfile.php for the links kind of as if it were an iframe?

    Edit:

    I did a i'm feeling lucky search and came up with this. Seems to explain how it works pretty well. I just thought I would share it with you all.

    http://www.xentrik.net/scripts/include.php

    Thanks for the help hombre.


    ~johniman7
     
    johniman7, May 22, 2006 IP