1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Any way to add a line with a link to a whole number of existing webpages at once?

Discussion in 'BBS Hangout' started by AroundTheWorld, Sep 28, 2003.

Tags:
  1. AroundTheWorld

    Joined:
    Feb 3, 2000
    Messages:
    83,288
    Likes Received:
    62,282
    I have created a guestbook/discussion forum based on some bbs solution (proboards) and would like to add a big link to that from every page of my round the world travel blog and the photo galleries.

    Is there any way I can do this as a batch process without screwing up the rest of the pages as they exist now?

    Thanks for your help!
     
  2. keeley

    keeley Member

    Joined:
    Feb 13, 1999
    Messages:
    1,513
    Likes Received:
    35
    If you know any scripting like asp or php then you could do an include file. If you don't then I'd look for a text/html editor that can do a find/replace on an entire directory. Back in the old day Allaire Homesite could do this, and I think that Macromedia bought up Allaire - so maybe DreamWeaver can do this?

    You could also make your page into a frameset and have a bottom frame that contains a page that just consists of links.
     
  3. ChenZhen

    ChenZhen Member

    Joined:
    Aug 20, 2000
    Messages:
    1,779
    Likes Received:
    43
    I concurr with Keeley. The easiest way is to make a bottom frame if you don't want to mess with the other pages. But if you really don't want frames, you can do a find and replace your whole site with dreamweaver. So lets say you have an asp page, you would do the following:

    Find/Replace the whole site searching for "< /body>" and replacing it with "< !--#include file='attach.html'-- >< /body>"

    Edit: Do you have all dynamic pages (asp, php, ect)? or some html mixed in? Because if you have some html pages mixed in, you can't do that because the html page won't reconize the include syntax. You'll have to settle for frames eventually if that's the case.
     
    #3 ChenZhen, Sep 28, 2003
    Last edited: Sep 28, 2003
  4. AroundTheWorld

    Joined:
    Feb 3, 2000
    Messages:
    83,288
    Likes Received:
    62,282
    Hmmm....thanks a lot...I am dumb, so I don't even know how to make a page into a frameset? I think I would go for that solution if I knew how to do it...
     
  5. DrLudicrous

    DrLudicrous Member

    Joined:
    May 9, 2002
    Messages:
    3,936
    Likes Received:
    203
    &lt;frameset rows="90%,*" framespacing="0" frameborder="no" border=0>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;frame src="main.html" name="top" id="main" frameborder="0" scrolling="auto" marginwidth="0" marginheight="0">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;frame src="bottom.html" name="content" id="bottomlink" frameborder="0" scrolling="no" noresize marginwidth="0" marginheight="0">
    &lt;/frameset>

    Just replace main.html with the regular main page and bottom.html with a page that has your links. If you want the links in the bottom frame to change the content of the big one set the target to main

    &lt;a href="file.html" target="main">Link&lt;/a>
     

Share This Page