Results 1 to 7 of 7

Thread: calling links from file

  1. #1
    Join Date
    Oct 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default calling links from file

    1) Script Title: Vertical Glossy Menu

    2) Script URL (on DD):http://www.dynamicdrive.com/style/cs...vertical-menu/

    3) Describe problem: I am wondering if there is a way to call the links from a file. That way I don't have to edit an upload every page whenever I add links to my menu.
    I hope this is the correct place to post. It says for help with a script but item 3 says describe problem. It isn't so much a problem as a nuisance. There may be an easy way to do what I am wanting but I am to new to know it.

    http://alongtheway.110mb.com/

    Thanks people.

  2. #2
    Join Date
    Jan 2008
    Location
    Colorado
    Posts
    38
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    I personally use SSI. I create a file called nav.html and thats where my whole navigation menu goes. Then in every file I use this code
    Code:
    <!--#include virtual="nav.html" -->
    To call up the menu. But to use SSI every file that you put that code in has to end in ".shtml" . It works great for me. Then I edit a single page when I need to add or remove my links. I know you can also do it with PHP, which I think is a more prefered method.

  3. #3
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i use a require in my php to include a navagation page
    Code:
    <?php
    require("navagation.php");
    ?>
    i just drop that code wher ei want a nav bar tobe and inside of navagation.php i just
    have my nav bar code in it.

  4. #4
    Join Date
    Oct 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks.

    I thought there had to be a way to do this.

  5. #5
    Join Date
    Oct 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you.

    I thought about php but I have the free account on 110mb and I have to pay to use htaccess. If I get it then I can use it to call php files if not then I have to change all my pages from html to php.
    I don't know a thing about php and not sure if I should make the change.

  6. #6
    Join Date
    Oct 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you don't have htaccess is ther a way to do this in html pages?
    Still not sure about any ramifications of changing my pages from html to php or shtml.
    I am still learning and most everything is new to me.

    Thanks.

  7. #7
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    im not sure, but i think you can put my code that i posted inside of html, if the server is running php it should pick it up.. but, im pretty sure that the file name must be .php , worth a shot though.. if anything find another free host there are ton's that offer free php.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •