Show number of comments: show the number of comments
for each picture on the thumbnails page. Resource consuming.
+
Show hits count: display hits observed on picture
+ just under its thumbnail on the thumbnails page.
+ Only when advanced configuration parameter is:
+ $conf['show_nb_hits'] = true;
+ Notice: it is false by default.
+
Maximum width of the pictures: maximum displayed
width. If pictures are larger than this setting, they will be resized on
display. If you consider filling this option, you'd better consider
diff --git a/language/fr_FR.iso-8859-1/common.lang.php b/language/fr_FR.iso-8859-1/common.lang.php
index db6561a12..73ec8159c 100644
--- a/language/fr_FR.iso-8859-1/common.lang.php
+++ b/language/fr_FR.iso-8859-1/common.lang.php
@@ -299,6 +299,8 @@ $lang['%d comment to validate'] = '%d commentaire utilisateur
$lang['%d comments to validate'] = '%d commentaires utilisateur à valider';
$lang['%d new comment'] = '%d nouveau commentaire utilisateur';
$lang['%d new comments'] = '%d nouveaux commentaires utilisateur';
+$lang['%d hit'] = 'vue %d fois';
+$lang['%d hits'] = 'vue %d fois';
$lang['%d new element'] = '%d nouvel élément';
$lang['%d new elements'] = '%d nouveaux éléments';
$lang['%d new user'] = '%d nouvel utilisateur';
@@ -571,6 +573,7 @@ $lang['searched words : %s'] = 'mots recherch
$lang['send_mail'] = 'Contacter';
$lang['set as category representative'] = 'élire comme représentant de cette catégorie';
$lang['show_nb_comments'] = 'Montrer le nombre de commentaires';
+$lang['show_nb_hits'] = 'Montrer le nombre de visualisations';
$lang['slideshow'] = 'diaporama';
$lang['slideshow_stop'] = 'arrêter le diaporama';
$lang['special_categories'] = 'Spéciales';
diff --git a/language/fr_FR.iso-8859-1/help/configuration.html b/language/fr_FR.iso-8859-1/help/configuration.html
index 001daf336..ab0ae03c3 100644
--- a/language/fr_FR.iso-8859-1/help/configuration.html
+++ b/language/fr_FR.iso-8859-1/help/configuration.html
@@ -98,6 +98,12 @@ cat
de commentaires utilisateur en dessous de chaque miniature. Consomme des
ressources.
+
Montrer le nombre de visualisations : affiche les
+ « hits » relevés sur une image sous sa miniature dans la page de miniatures.
+ Uniquement valable si le paramètre de configuration avancée est :
+ $conf['show_nb_hits'] = true;
+ N.B.: par defaut il est à false.
+
Largeur maximum des images: à l'affichage. Si l'image
est plus large que ce paramètre, alors elle sera redimensionnée à
l'affichage. Si vous pensez nécessaire de modifier ce paramétrage (donc pour
diff --git a/profile.php b/profile.php
index df2d46ae3..3e512703a 100644
--- a/profile.php
+++ b/profile.php
@@ -172,7 +172,7 @@ function save_profile_from_post(&$userdata, &$errors)
// update user "additional" informations (specific to PhpWebGallery)
$fields = array(
'nb_image_line', 'nb_line_page', 'language', 'maxwidth', 'maxheight',
- 'expand', 'show_nb_comments', 'recent_period', 'template'
+ 'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'template'
);
$data = array();
@@ -201,10 +201,16 @@ function load_profile_in_template($url_action, $url_redirect, $userdata)
$template->set_filename('profile_content', 'profile_content.tpl');
- $expand = ($userdata['expand'] == 'true') ? 'EXPAND_TREE_YES':'EXPAND_TREE_NO';
+ $expand = ($userdata['expand'] == 'true') ?
+ 'EXPAND_TREE_YES':'EXPAND_TREE_NO';
$nb_comments =
- ($userdata['show_nb_comments'] == 'true') ? 'NB_COMMENTS_YES':'NB_COMMENTS_NO';
+ ($userdata['show_nb_comments'] == 'true') ?
+ 'NB_COMMENTS_YES':'NB_COMMENTS_NO';
+
+ $nb_hits =
+ ($userdata['show_nb_hits'] == 'true') ?
+ 'NB_HITS_YES':'NB_HITS_NO';
$template->assign_vars(
array(
@@ -219,6 +225,7 @@ function load_profile_in_template($url_action, $url_redirect, $userdata)
$expand=>'checked="checked"',
$nb_comments=>'checked="checked"',
+ $nb_hits=>'checked="checked"',
'REDIRECT' => $url_redirect,
diff --git a/template/yoga/admin/configuration.tpl b/template/yoga/admin/configuration.tpl
index 6f4010a5f..f4c30bb78 100644
--- a/template/yoga/admin/configuration.tpl
+++ b/template/yoga/admin/configuration.tpl
@@ -193,6 +193,12 @@