The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
ok guys, i've been goin nuts at this.
i've done it before in the html / asp world a billion times but can't get it working here: neither of these seem to be working!!! the test.htm file is in the /forums/ directory and i'm trying to include it in the forumheader template. i've put in a support ticket to see if the servers have ssi enabled. help a newb out! PHP Code:
|
#2
|
||||
|
||||
![]()
what file are you trying to include it into?
PHP Code:
|
#3
|
||||
|
||||
![]()
Maybe this?
<?php include ("./test.htm"); ?> |
#4
|
|||
|
|||
![]()
Well, make sure your file extension is .shtml before attempting to do any SSI includes. You may already be doing this but it was not mentioned in your first post.
The syntax you have for using an "SSI include" in a .shtml filename are correct and my guess as to why it's not working is because the template does not have a .shtml extension. I was unable to get any includes working in the footer or header portion found in the control panel myself. Syl... |
#5
|
|||
|
|||
![]()
sorry for the lack of info... here goes, i'm gonna fill in the whole story here...
in html or asp, i can just put PHP Code:
now, what i'm trying to do is incorporate my menu buttons into a source .html file; and include that file in one of my templates. it seems that i'm going to have to use the following method... PHP Code:
please set me straight here someone... not just plain html. they're php, right? so if i want to include a .txt or .html file into a php template, let's say the header... i have to use the php include directive, correct? lemmie know if i'm not making sense. this is driving me nuts and it's easy! sheesh! well it's all easy when you 'know' it! |
#6
|
|||
|
|||
![]()
doesn't look like the <?php thingy works either.
the path to my include is /includes/test.txt i can do a txt or html can't i? |
#7
|
||||
|
||||
![]()
Ahhh... I overlooked the part where you said you were trying to use SSI in a template. I know I tried to do the same a while ago and I'm pretty sure it won't work. It may help to ask over at vB.com as well though...
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|