Author |
Topic  |
|
Ra1ney
Junior Member
 
United Kingdom
113 Posts |
Posted - 26 July 2002 : 09:35:35
|
Sorry I've been a bit quiet on the forum lately - trying to keep motivated, but I dare say I'll be back in the swing of it soon 
I have a quick question for anyone who can help me. I've got my forum up and running, done my tweaks and things and now want to pop it in with the rest of my site. I would like to keep it all in it's own directory /forum, so that I can easily find things and it keeps it tidy. But I am using an SSI for my main menu, which lives in the main directory. Can I make the forum pages pick up the main menu from the top directory, rather than from within its own directory? If so, how should I write this code? The original code was <!-- #INCLUDE FILE="main_nav.asp" --> but I now need to make it look for the file in the main directory. I have tried <!-- #INCLUDE FILE="/main_nav.asp" --> but it doesn't work.
Is there a way around this or do I have to move all of the forum files to within the main directory in order that the main navigation works?
I hope someone can help? Many thanks in advance.
Ra1ney
|
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 26 July 2002 : 09:52:02
|
Use <!-- #include file="../main_nav.asp" -->
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead |
 |
|
TestMagic
Senior Member
   
USA
1568 Posts |
Posted - 27 July 2002 : 02:25:48
|
quote:
Use <!-- #include file="../main_nav.asp" -->
I was trying this myself today.
Perhaps I made a stupid mistake, but neither:
<!-- #include file="../main_nav.asp" -->
nor
<!-- #include file="http://www. l o v e h a n d l e s.com/main_nav.asp" -->
worked.
I decided to do some research first before I posted, but since I saw this topic, I decided to comment.
=~=~=~=~=~=~=~=~=~=~=~=~= Erin Billy http://www.TestMagic.com  San Francisco, CA USA |
 |
|
Ra1ney
Junior Member
 
United Kingdom
113 Posts |
Posted - 27 July 2002 : 07:27:55
|
Der! That was easy...don't know why I didn't think of that myself?? Thanks for that Dave - it did work for me But now it's having trouble seeing the images, which are in the directory above where the forum files live - so it works for pages in the main directory, but not for pages in the forum directory. I tried changing the image links to include ../ like you suggested, but then it doesn't work for pages within the main directory. Likewise for links to other pages, but I think if I change them all to include the full path, that will be okay. ...just tried it and it seems to work.
By jingo, I think I've got it! I've been fiddling with the files whilst typing this message, and it all seems to be working fine now. Fantastic!! Thanks both of you for your help, you gave me the right push to fix it myself - thanx 
Ra1ney p.s That seemed far too easy, so expect some sort of crisis in the near future - watch this space 
quote:
Use <!-- #include file="../main_nav.asp" -->
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 27 July 2002 : 09:32:38
|
quote:
Perhaps I made a stupid mistake, but neither:
<!-- #include file="../main_nav.asp" -->
nor
<!-- #include file="http://www. l o v e h a n d l e s.com/main_nav.asp" -->
worked.
I decided to do some research first before I posted, but since I saw this topic, I decided to comment.
Quite likely your server has the setting Enable Parent Paths disabled.
Maybe try:
<!-- #include virtual="main_nav.asp" -->
------------------------------------------------- Installation Guide | Do's and Dont's | MODs
Edited by - ruirib on 27 July 2002 09:33:19 |
 |
|
TestMagic
Senior Member
   
USA
1568 Posts |
Posted - 27 July 2002 : 10:05:23
|
Actually, I'm probably making a lot of mistakes, but as this is my first foray into coding things by myself, I want to double-check some really basic things before I post stupid questions that I could've answered myself.
Thanks, Rui!
=~=~=~=~=~=~=~=~=~=~=~=~= Erin Billy http://www.TestMagic.com  San Francisco, CA USA |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 27 July 2002 : 10:06:34
|
quote:
Actually, I'm probably making a lot of mistakes, but as this is my first foray into coding things by myself, I want to double-check some really basic things before I post stupid questions that I could've answered myself.
Thanks, Rui!
=~=~=~=~=~=~=~=~=~=~=~=~= Erin Billy http://www.TestMagic.com  San Francisco, CA USA
You're welcome .
------------------------------------------------- Installation Guide | Do's and Dont's | MODs |
 |
|
|
Topic  |
|