UBB.Dev
Posted By: little_joe SSI in footer? - 03/20/2002 5:17 PM
I have been reading archives on this and all of the help Russel and Matt have offered, however I cannot find an answer to my question.

Can i use SSI code in the footer field of the Style Template?

I have the code in there now and the path is correct. Yet I do not have the footer showing, everything else on the page is there

My SSI is:





I added this to Footer field and nada.

Thanks for any help.
Posted By: Charles Re: SSI in footer? - 03/23/2002 8:34 PM
you must call it directly from the template file (public_common) here is an exemple by cal :

a sub routine
Code
[/code]and how to use it
[code]
Posted By: Martin Björnström Re: SSI in footer? - 08/30/2002 4:35 PM
Hmm. I put the subroutine into my public_common and the "include" into my header (via the ubb.classic control panel) and it does not compute.

Where do i put that "&Include_A_File..." part?
Posted By: r1ngx Re: SSI in footer? - 12/22/2003 8:13 AM
Quote
Originally posted by Chuck:

you must call it directly from the template file (public_common) here is an exemple by cal :

a sub routine
Code
 
sub Include_A_File{
my ($file) = @_;
open(F,$file) or die $!;
print join('',<F> );
close(F);
}
and how to use it
Code
 &Include_A_File('/absolute/path/to/the/file.txt'); 
Where does the second part go? Thanks!
© UBB.Developers