Forum Freeglobes

Aide et support, annonces, thèmes et plugins, discussions.

Vous n'êtes pas identifié.

Annonce

Plugin Allopass amélioré: possibilité de générer des codes gratuits pour votre annuaire! Allez voir sur le site :-)

#1 08-11-2009 11:35:27

infobebe
N00b
Date d'inscription: 08-11-2009
Messages: 1

I need to include php in footer

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

 

#2 10-11-2009 15:06:33

Uniktrue
FGnaute
Lieu: Ici et là...
Date d'inscription: 13-09-2009
Messages: 305
Site web

Re: I need to include php in footer

Hello,
in /class/smarty.class.php change this :

Code:

var $php_handling    =  SMARTY_PHP_PASSTHRU;

by this :

Code:

var $php_handling    =  SMARTY_PHP_ALLOW;

and now you can put php code in your template


Sorry for my bad english wink

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr


BlogCounter
FosseeneProduct - annuaire mon pagerank - films x achats en lignes sexe gratuit blog buzz