Author |
Topic  |
prescottw
Junior Member
 
189 Posts |
Posted - 12 June 2007 : 15:43:44
|
Hello Fellow Snitzlings!
I'm writing a few subdomain index pages. I'm not having any luck at including with a virtual or any inlude for all that matter.
Any help would be greatly appreciated.
http://subdomain.sitename.com/forum/default.asp
Thank You.
-Scott
|
What day is it anyway? |
Edited by - prescottw on 12 June 2007 15:45:20 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 12 June 2007 : 16:00:05
|
including what ? you haven't explained your problem very well or indeed what you are trying to do |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 12 June 2007 : 16:03:11
|
Thanks HuwR,
I'm adding subdomains to a site that is primarily a forum. I want inc_header.asp and config.asp to be called on the index and other pages in this subdomain in order to keep that same look as the forum.
thanks for replying -Scott
|
What day is it anyway? |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 13 June 2007 : 16:06:55
|
Just when I thought I would go crazy. I was right.
It can't be done.
That's why I come here to Snitz as a last resort to answer my technical (non critical forum related) questions. I know that if I don't get an answer, it is impossible!
I scoured the Net for the answer to this question for the last couple of days and could not find the answer either.
Thanks for your attention to this ayway, Thanks HuwR.
-Scott |
What day is it anyway? |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 13 June 2007 : 16:49:19
|
What can't be done? I think if you clarified what you are trying to do you might be surprised... photoshop a few sketches together or at least give us some more detail. |
 |
|
weeweeslap
Senior Member
   
USA
1077 Posts |
Posted - 13 June 2007 : 17:29:22
|
if I can figure precottw post correctly, I am think he is trying to basically use inc_header.asp config.asp etc as the template for the rest of the site which also resides on subdomains but can't figure out how to include the includes in the files so they show up. He might be getting an error. That's what I can deduce from his post.  |
coaster crazy |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 13 June 2007 : 17:55:46
|
yep, but still not quite sure what prescottw is trying to accomplish or what is failing |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 13 June 2007 : 20:54:55
|
Wow... Thank you.
This is my sitenews.asp
<!--#INCLUDE FILE="config.asp"--> <!--#INCLUDE FILE="inc_sha256.asp"--> <!--#INCLUDE FILE="inc_header.asp" --> <!--#include file="content.asp" --> <!--#include file="inc_contentdisplay.asp" -->
I want to build some suddomains based on a community topic... Local painters, crafters, boys and girls club, autorepair clinics, etc.
But I want the header on the pages inside these files to look the same as the rest of the site I need them to blend in. I don't have the capability or knowhow to code them.
http://painters.mysite.com/
is it <!--#INCLUDE virtual="/forum/config.asp"-->
or is the file need to be called by
<!--#INCLUDE file="../config.asp"--> (because the directory is above wwwroot (actually I don't think I tried that one)
<!--#INCLUDE file="./config.asp"-->
I've tried several other variations with no luck. 101 html error mostly. But I'm only running asp and not asp and dotnet at the same time. I get... not authorized to view this page. I don't get my 404 error page.
Thanks for everyones help.
-Scott
|
What day is it anyway? |
Edited by - prescottw on 13 June 2007 22:31:13 |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 16 June 2007 : 00:55:21
|
Can be done? Can't be done?
I'm getting mixed signals?
I'll be the first to admit that it's not a critical request. And probably does not pertain to Snitz. But you can't blame me for trying. Like I explained it was a last ditch effort to find a solution.
Thanks,
-prescottw |
What day is it anyway? |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 June 2007 : 02:57:53
|
I'm still not sure what you are actually trying to do |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 16 June 2007 : 10:03:11
|
If this helps, weeweeslap's reply is exactly what I'm asking. I've been known to struggle with the proper nomenclature at times.
Thanks HuwR for at least trying. Your like me in a sense. At times I really want to reply to a thread but I'm so concerned that I will not reply correctly that it might do the thread more harm than good.
I understand. But I thank you.
-prescottw |
What day is it anyway? |
Edited by - prescottw on 16 June 2007 10:22:32 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 June 2007 : 10:42:09
|
ok, could you try to answer the following
1) where is your config file located in relation to the root of your website ? 2) which directory does the subdomain point to ? where is this in relation to the website root ?
|
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 16 June 2007 : 11:10:09
|

The config is located at C:\domains\mysite.com\forum\config.asp
The subdomain is located at C:\domains\mysite.com\mysubdomain\index.asp (AFAIK)
The mysubdomain points to the forum directory.
The mysubdomain directory sits next to the forum directory in the root directory.
Thanks HuwR
-prescottw
|
What day is it anyway? |
Edited by - prescottw on 16 June 2007 11:11:31 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 June 2007 : 11:16:52
|
have you tried this <!--#INCLUDE file="../forum/config.asp"--> |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 16 June 2007 : 11:19:05
|
I'll check.
-prescottw |
What day is it anyway? |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 16 June 2007 : 11:44:56
|
hmmn. it is working in the background. But I'm not seeing anything but a border of where the logo should sit on the screen.
I just learned something. my *header* is not in my inc_header it's on my sitenews. You knew this didn't you?
I understand your line of questioning now.
Even though I am seeing the code in the background any *include* file is not being displayed, nor the logo (it is in the main configuration in the proper field).
I'm understanding more,
Thanks HuwR.
-prescottw
|
What day is it anyway? |
Edited by - prescottw on 16 June 2007 11:45:33 |
 |
|
Topic  |
|