icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old November 20th, 2005, 9:34 PM   #1 (permalink)
Surpass Fan
Comfy Contributor
 
wap3's Avatar
 
Joined in Apr 2004
Lives in South Texas USA
Hosted on ChopChop
183 posts
Gave thanks: 10
Thanked 7 times
Losing my hair over #include

Here's what I want/have.....
main site cbcog98.org
plus cjd.cbcog98.org
There are other subs but this is the "test bed"

from the main site index.shtml all works and includes [header, nav, footer] are in that folder. All works here

Now when doing http://cdj.cbcog98.org the only way to have the includes work is to put a copy in the cdj sub-domain[folder]

I want all subs to use the "main" includes

Currently working is <-- #include file="footer.html" -->
with footer.html in cdj.cbcog98.org

Have tried using
<-- #include virtual="/footer.html" for using main....that gets an error

every combination using "virtual" has failed also.....

My .htaccess reads:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^www.$
RewriteRule ^(.*)$ http://cbcog98.org [R=301,L]


<Files 403.shtml>
order allow,deny
allow from all
</Files>

Thanks for any explainations and help
--wap3
__________________
--wap3

If we removed all of the "Oxygen Thiefs" [tm] from politics, maybe the earth would not have a Greenhouse Gas problem.

wap3.com on ChopChop
wap3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 29th, 2005, 3:43 AM   #2 (permalink)
Registered User
Fresh Surpasser
 
siamsites's Avatar
 
Joined in Sep 2005
Lives in Hua Hin
Hosted on pass41
10 posts
Gave thanks: 0
Thanked 0 times
try include 'http://www.cbcog98.org/footer.html';
__________________
siamsites.com
Loves pass41
siamsites is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 29th, 2005, 9:47 AM   #3 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
or include ../

that takes you UP one level.
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 3rd, 2005, 2:32 AM   #4 (permalink)
Registered User
Fresh Surpasser
 
siamsites's Avatar
 
Joined in Sep 2005
Lives in Hua Hin
Hosted on pass41
10 posts
Gave thanks: 0
Thanked 0 times
actually it doesnt.

Expl:

www.yourdomain.com/subdomain - this is the folder for the subdomain

subdomain.yourdomain.com - is a root folder

so when you work with http://subdomain.yourdomain.com you cannot access any files with ../ from www.yourdomain.com.
__________________
siamsites.com
Loves pass41
siamsites is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 11th, 2005, 12:35 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
Lives in Indianapolis
5 posts
Gave thanks: 0
Thanked 0 times
Any updates

Have you made any headway on finding a way to call your includes? I have recently started using them where I work since I am managing a larger site, but they use .asp extensions and I think (from other posts in this formum) surpass will be using cgi call formats.

I have been naming my page with the calls with the .asp extension and using a direct file path to a folder with the includes.

site root
subfolder - my page with the includes resides here and calls the includes from a folder named "asp" that resides in this subfolder.
all of my includes are named with the .asp extension as well.
None of the includes are called. Any thoughts? Have you found something that worked?
wicked1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 11th, 2005, 12:57 PM   #6 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
Lives in Indianapolis
5 posts
Gave thanks: 0
Thanked 0 times
Figured out my problem. Maybe yours too who knows. All I had to do was rename my file that had all of the includes with the ".shtml" extention. ".shtm" will not work unless you set it up under the Apache handler (I am guessing). Anyway, it is calling them correctly and my page now comes together.
wicked1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 11th, 2005, 1:35 PM   #7 (permalink)
Surpass Fan
Comfy Contributor
 
wap3's Avatar
 
Joined in Apr 2004
Lives in South Texas USA
Hosted on ChopChop
183 posts
Gave thanks: 10
Thanked 7 times
thanks wicked1 for the info
but I think that siamsites really hit the nail....

using includes you can't do ../ParentFolder/include.shtml

and subdomain.domain.com is a "root" folder for subdomain

I really have not had time the last few weeks to work on it but
it sure looks like I "hit the stump" on the root folder issue

--Trey Patttillo
__________________
--wap3

If we removed all of the "Oxygen Thiefs" [tm] from politics, maybe the earth would not have a Greenhouse Gas problem.

wap3.com on ChopChop
wap3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On