Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 A little help with SSI...please
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 26 July 2002 :  09:35:35  Show Profile
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  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Use <!-- #include file="../main_nav.asp" -->

Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page

TestMagic
Senior Member

USA
1568 Posts

Posted - 27 July 2002 :  02:25:48  Show Profile  Visit TestMagic's Homepage
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
Go to Top of Page

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 27 July 2002 :  07:27:55  Show Profile
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



Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 July 2002 :  09:32:38  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

TestMagic
Senior Member

USA
1568 Posts

Posted - 27 July 2002 :  10:05:23  Show Profile  Visit TestMagic's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 July 2002 :  10:06:34  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07