Voici le message envoyé par Dedee en PM:
J’arrive a introduire un script dynamique ( virtual('/cgi-bin/stuffer.pl' ) dans tout les pages mais ce que le sript introduis ce trouve au-dessus du headre
(<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>)
Comment faire pour que le textes ce mais dans le body en dessous tout près de
Powered by Coppermine Photo Gallery
Avec anycontent on a le meme phenomene
Voici le code utiliser
// Function for writing a pagefooter
function pagefooter()
{
global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
global $USER, $USER_DATA, $ALBUM_SET, $CONFIG, $time_start, $query_stats, $queries;;
global $template_footer;
// this is the place where the custom footer file gets included
if(empty($custom_footer)){
ob_start();
include('clw.php');
$custom_footer = cleanup_custom_includes(ob_get_contents());
ob_clean();
}
if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {
cpg_debug_output();
}
$template_vars = array(
'{CUSTOM_FOOTER}' => $custom_footer,
);
echo template_eval($template_footer, $template_vars);
}
// Function to clean up any double html leftovers from the custom header and footer that are not meant to get parsed
function cleanup_custom_includes($string) {
$string = str_replace('<HTML>', '', $string);
$string = str_replace('<HEAD>', '', $string);
$string = str_replace('<BODY>', '', $string);
$string = str_replace('</HTML>', '', $string);
$string = str_replace('</HEAD>', '', $string);
$string = str_replace('</BODY>', '', $string);
return $string;
}
-------------------------------------------------------------------------------------------------
// Function to start a 'standard' table
Dans la page theme.php
Avec ajout dans la page template.html
{CUSTOM_FOOTER}
Cordialement
D Fonteyne
Je ne suis pas sur d'avoir compris. Le code cité plis haut est il le code qui génère l'affichage demandé ?
Si oui comment l'avez vous placé dans la galerie.
Donnez nous un lien vers votre galerie pour que nous puissions nous rendre compte de ce que fais le script.