vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to do ssi (https://vborg.vbsupport.ru/showthread.php?t=57597)

joeydood 10-04-2003 12:47 AM

how to do ssi
 
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:

<!--#include virtual="test.htm" -->
<?php include ("test.htm"); ?> 
<!--#include virtual="../forums/test.htm" -->
<!--#include virtual="/public_html/forums/test.htm" -->


sabret00the 10-04-2003 01:28 AM

what file are you trying to include it into?

PHP Code:

<?php include(file.php); ?>

will work in php but not sure about asp and what not, aint tinkered tbh

Tigga 10-04-2003 05:16 AM

Maybe this?

<?php include ("./test.htm"); ?>

Sylvus 10-04-2003 02:57 PM

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...

joeydood 10-04-2003 09:42 PM

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:

<!--#include virtual="/includes/test.txt"--> 

and bam, wherever that include directive is, test.txt is inserted.

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:

<?php include ("test.htm"); ?>

because templates are...

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!

joeydood 10-04-2003 09:53 PM

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?

Tigga 10-04-2003 11:31 PM

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...


All times are GMT. The time now is 09:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01065 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete