Aide et support, annonces, thèmes et plugins, discussions.
Vous n'êtes pas identifié.
Hi. I need to include siome php code in footer (marine Globes theme) and I can't do it. It's a code for fetching an image from Coppermine Gallery using cpmfetch. I managed to do it for aother sites (oscommerce) so I'm sure the code is ok. The lines are:
<?php
include_once "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "File name : {{pFilename}}");
$objCpm->cpm_viewLastAddedMedia(1, 4, $options);
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 4, $options);
$objCpm->cpm_close();
?>
I guess the path for: ./cpg/cpmfetch/cpmfetch.php should be http://www.mysite.ro/galerie/cpmfetch/cpmfetch.php (It's there where I installed it)
I need to show the image in footer.html - displaying a random picture from the gallery in column right. (see here, where it says Galerie Foto)
I read something about needing to add some line to .htacces... but I have no clue how to do it.
Thank you.
Hors ligne
Hello,
in /class/smarty.class.php change this :
var $php_handling = SMARTY_PHP_PASSTHRU;
by this :
var $php_handling = SMARTY_PHP_ALLOW;
and now you can put php code in your template
Sorry for my bad english ![]()
Hors ligne