forum.coppermine-gallery.net
Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: mab2002 on November 08, 2007, 10:53:19 am
-
Je cherche à afficher l'image intermédiaire avec un thême différent pour le simplifier au maximum. Je suppose qu'il faut aller du coté de init.inc.php. J'ai besoin d'affecter, un fichier template.html pour tout le site et un fichier template-int.html juste pour l'image intermédiaire. Est ce possible, j'ai parcouru le forum mais je n'ai pas trouvé d'info sur ce cas précis.
Le but de simplifier cette partie du template est de pouvoir utiliser la fonction Scrolling HTML content de http://vikjavev.no/highslide/ (http://vikjavev.no/highslide/). Merci
-
Je me réponds à moi même
Dans init.inc.php
remplacer
define('TEMPLATE_FILE', 'template.html');par
$requrl = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
$string = $requrl;
if (eregi('displayimage.php', $string)) {
define('TEMPLATE_FILE', 'template-int.html');
}
define('TEMPLATE_FILE', 'template.html');
Dans le dossier du thême, créer un fichier template-inc.html
-
Bon ça a l'air de fonctionner résultat http://mab2002.free.fr/photographie/thumbnails.php?album=53 (http://mab2002.free.fr/photographie/thumbnails.php?album=53) avec highslide
-
Oui oui ça marche ;D
C'est même plutôt sympa d'ailleurs ;)
Bravo...
PYAP