Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@daviderenda.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
???
Comment n'en permettre l'accès qu'à l'administrateur ?dans le fichier codebase.php du plugin, chercher le code suivant
stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
remplacez le par:if GALLERY_ADMIN_MODE {
stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
}
Pour ne permettre l'accès qu'aux utilisateurs enregistrés, c'est le code ci dessousif USER_ID {
stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
}
Parse error: syntax error, unexpected T_STRING, expecting '(' in /mnt/129/sdb/0/e/xxxxxx/plugins/stats/codebase.php on line 56
if (GALLERY_ADMIN_MODE) {
stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
}
et if (USER_ID) {
stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
}
Parse error: syntax error, unexpected $end in /mnt/135/sdb/3/9/antoine.delfort/cpg/plugins/stats/codebase.php on line 61
(j'ai modifié l'extension, car rien pour zippé sous la main)Et pour dézipper, c'est pareil ? ;)
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.9
$Source$
$Revision: 3125 $
$Author: gaugau $
$Date: 2006-06-16 08:48:03 +0200 (Fr, 16 Jun 2006) $
**********************************************/
/*********************************************
Modified by Frantz for stats plugin
**********************************************/
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
require ('plugins/stats/include/init.inc.php');
// User menus , (fixed by Sami)
$thisplugin->add_action('page_start','stats_page_start');
// create button template from current sys menu template (added by Sami)
function stats_add_admin_button($href,$title,$target,$link)
{
global $template_sys_menu, $template_sys_menu_spacer;
require ('plugins/stats/include/init.inc.php');
$new_template=$template_sys_menu;
$button=template_extract_block($new_template,'faq');
$params = array(
'{FAQ_LNK}' => $target,
'{FAQ_TITLE}' => $title,
'{FAQ_TGT}' => $href,
'faq' => $link,
);
$new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" . $button . "<!-- END faq -->\n" .$new_button);
}
// Add photo_summary button after home under sys menu (added by Sami)
function stats_page_start()
{
global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
global $CONFIG, $lang_plugin_stats;
require ('plugins/stats/include/init.inc.php');
if (GALLERY_ADMIN_MODE) {
stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
}
}
?>
Pour les statistiques de vues des images, il faut évidemment les avoir activé dans la config
Config/Activer les PluginsQuotePour les statistiques de vues des images, il faut évidemment les avoir activé dans la config
Euh ... et on les active ou ?
hum faut-il modifier ceci : Enregistrer le détail des statistiques dans configurationexactement ;)
juste pour informer que ce plug crée un conflit avec FSslideS v0.5, empechant son affichage, j'ai pas encore trouvé ou est le pbC'est possible, ce plugin existait avant la création de FSlides. Il y a peut être des variables qui ont le même nom ou quelque chose du genre.
juste pour informer que ce plug crée un conflit avec FSslideS v0.5, empechant son affichage, j'ai pas encore trouvé ou est le pb
Ps ( je ne trouve pas l edition de poste...)c'est pas possible pour les membres "de base" ;)