aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-01-28 20:56:10 +0000
committervdigital <vdigital@piwigo.org>2007-01-28 20:56:10 +0000
commit7ee3f5579aab21257d236e6f8aa853cd639ff460 (patch)
treee13479319990abbe9f96366bef547708f8766c38 /profile.php
parent7709c4189cadfcfc56c97fd5cd47df06033b6429 (diff)
Issue 0000614: Display hits under thumbnails like comments counter
git-svn-id: http://piwigo.org/svn/trunk@1763 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php13
1 files changed, 10 insertions, 3 deletions
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,