Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2003, 12:47 AM
joeydood joeydood is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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" -->
Reply With Quote
  #2  
Old 10-04-2003, 01:28 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 10-04-2003, 05:16 AM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe this?

<?php include ("./test.htm"); ?>
Reply With Quote
  #4  
Old 10-04-2003, 02:57 PM
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Location: Toronto
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #5  
Old 10-04-2003, 09:42 PM
joeydood joeydood is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 10-04-2003, 09:53 PM
joeydood joeydood is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 10-04-2003, 11:31 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:05 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.04093 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete