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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Insert text on ALL pages of site, what's best way?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 28 October 2001 :  12:53:34  Show Profile
Perhaps semi-off topic, but for me it's important... I have a DHTML menu on my site and because of an update on the software that's used to create those menus I now have to insert a copyright statement on all pages. My site doesn't use a database nor ASP, so I'm wondering if it would be wise to use SSI (and make them ASP pages) for this or just to add the code in the HTML everywhere.

Any tips?

Roland

heptite
Average Member

USA
547 Posts

Posted - 28 October 2001 :  14:25:00  Show Profile  Visit heptite's Homepage  Send heptite an ICQ Message  Send heptite a Yahoo! Message
Includes are the way to go, either with .shtm or .shtml or using .asp. Much the same way the forum as a top and bottom includes, you do the same thing on your site.

Sue

Additional support files - http://www.snitz.info
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 28 October 2001 :  15:45:15  Show Profile
Most DHTML menus use a separate .js file, if your's does can't you just add the necessary code there?

My real question is what kind of menuing system author would dump this on his or her users? If the requirement wasn't there in the past you shouldn't have to update any existing pages, and it seems to me the author should be doing all the work, not you.


======
Doug G
======
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 29 October 2001 :  03:43:08  Show Profile
quote:

Most DHTML menus use a separate .js file, if your's does can't you just add the necessary code there?

My real question is what kind of menuing system author would dump this on his or her users? If the requirement wasn't there in the past you shouldn't have to update any existing pages, and it seems to me the author should be doing all the work, not you.


======
Doug G
======



Good point. The thing is as long as the users use menus created with a version before 4.1 we don't have to include the copyright info on our pages, but we have to if we want to stay up-to-date and have newer and better menus.

If I were to insert the copyright info in the .JS file it wouldn't show in the source code if someone would look at it. I think that's why he wants the users to put it in their pages.
That's a lot of work and I'm not going to do it. It's easy to do with the forums (just add it in inc_footer.asp) but my site has no way of easy inserting it in every page.

Guess I'll have to go complain on his forums (which @#%!@ (_|_) btw) about all the time this'll take me.

Thanks for your replies & help.

Roland

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 29 October 2001 :  14:13:20  Show Profile
Question:

I changed my .HTM file to .ASP and replaced the current JavaScript links by <!#INCLUDE FILE="inc_top.asp" --> where inc_top.asp is a new file and it's located in a different folder than the forums.
In inc_top.asp I placed this code:
<script language="JavaScript" src="/menu/popblank.js" type="text/javascript"></script>
<script language="JavaScript" src="/menu/forummenu.js" type="text/javascript"></script>
<Layer Name="DboX" style="position:absolute" visibility="hide"></Layer>
<!-- Pop-Up DHTML menu is © by Anoxy Software - http://popup.jscentral.com [Do not remove this copyright notice] -->


This code works when I insert it directly into the pages but not when I include it.
What did I do wrong? I don't know much about ASP so any help would be appreciated

Thanks,
Roland


http://www.frutzle.com
Go to Top of Page

Cyber Paladin
New Member

55 Posts

Posted - 29 October 2001 :  14:20:41  Show Profile  Visit Cyber Paladin's Homepage
If you copied that include statement directly then the syntax is a little off:

You have: <!#INCLUDE FILE="inc_top.asp" -->
Should be <!--#include file="inc_top.asp"-->

That's probably causing it not to show up.

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 29 October 2001 :  14:30:01  Show Profile
Sorry, I made a typo there... I have <!--#INCLUDE FILE="inc_top.asp"--> in my HTML.

I can't figure out what I'm doing wrong here. I've tried renaming inc_top.asp to inc_top.htm but that didn't help either.

Thanks though

Roland


http://www.frutzle.com
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 29 October 2001 :  16:49:56  Show Profile
You said the include file is in a different folder, but you don't specify the path to that folder in your include statement.

If you use #include file="path" the path will be an absolute disk path or a relative path, relative to the including page.

You can use <!--#include virtual="/folder/file"--> to include files relative to the root of your web rather than a physical disk path.


======
Doug G
======
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 30 October 2001 :  03:40:28  Show Profile
Hi Doug,

The problem isn't in the include code... I just replaced the code in inc_top.asp by some regular text and that shows on the page. However, the menu codes don't seem to be accepted.
I've tried getting help at the support forum of the software guy but no luck so far...

Well I have to go offline and do some work now.

Thank you all for your help. I appreciate it.
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.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07