PDA

View Full Version : SSI In template ??


Vinney
11-18-2001, 07:52 PM
Hi how do i SSi in a template.

Reason being is that i have created a gallery, ( index.pl ) , and i want to use the layout of the forum to.

I've created a php called gallery.php

with :

<?php
error_reporting(7);

// ############################### start gallery ###############################
if ($action=="gallery") {
$templatesused = ""; // Only one template used so load it when called
include("./global.php");
$page = intval($page);
if (!$page)
$page = '';
eval("dooutput(\"".gettemplate("gallery")."\");");

}

?>

And have created the template called gallery.

when i insert :-

include("http://www.peugeot-gti.net/gallery/index.pl");

in the gallery.php , the gallery is loaded, but then under neith the forum buttons and logo load.

No matter where i put the line

include("http://www.peugeot-gti.net/gallery/index.pl");

in the gallery.php

it never displays in the center of the header and footer.

( I now understand this is right, u can't get it to display center using the gallery.php to call it. )

So this brings me onto the gallery template .

how do i ssi or the equivlent to :
include("http://www.peugeot-gti.net/gallery/index.pl");

in a vb template.

Please help.

Goldfinger
11-19-2001, 11:43 PM
try using the full path to the index.pl , for example

include('/your/full/path/index.pl');