Changeset 1763
- Timestamp:
- Jan 28, 2007, 9:56:10 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r1748 r1763 233 233 $show_yes = ($conf['show_nb_comments']==true)?'checked="checked"':''; 234 234 $show_no = ($conf['show_nb_comments']==false)?'checked="checked"':''; 235 $hits_yes = ($conf['show_nb_hits']==true)?'checked="checked"':''; 236 $hits_no = ($conf['show_nb_hits']==false)?'checked="checked"':''; 235 237 $expand_yes = ($conf['auto_expand']==true)?'checked="checked"':''; 236 238 $expand_no = ($conf['auto_expand']==false)?'checked="checked"':''; … … 248 250 'EXPAND_NO'=>$expand_no, 249 251 'SHOW_COMMENTS_YES'=>$show_yes, 250 'SHOW_COMMENTS_NO'=>$show_no 252 'SHOW_COMMENTS_NO'=>$show_no, 253 'SHOW_HITS_YES'=>$hits_yes, 254 'SHOW_HITS_NO'=>$hits_no, 251 255 )); 252 256 -
trunk/admin/include/functions.php
r1726 r1763 1158 1158 $insert['show_nb_comments'] = 1159 1159 boolean_to_string($conf['show_nb_comments']); 1160 $insert['show_nb_hits'] = 1161 boolean_to_string($conf['show_nb_hits']); 1160 1162 $insert['maxwidth'] = $conf['default_maxwidth']; 1161 1163 $insert['maxheight'] = $conf['default_maxheight']; -
trunk/admin/user_list.php
r1753 r1763 343 343 array('nb_image_line', 'nb_line_page', 'template', 'language', 344 344 'recent_period', 'maxwidth', 'expand', 'show_nb_comments', 345 'maxheight', 'status', 'enabled_high'); 346 347 $true_false_fields = array('expand', 'show_nb_comments', 'enabled_high'); 345 'show_nb_hits', 'maxheight', 'status', 'enabled_high'); 346 347 $true_false_fields = array('expand', 'show_nb_comments', 348 'show_nb_hits', 'enabled_high'); 348 349 if ($conf['allow_adviser']) 349 350 { … … 557 558 // $user['expand'] = $conf['auto_expand']; 558 559 // $user['show_nb_comments'] = $conf['show_nb_comments']; 560 // $user['show_nb_hits'] = $conf['show_nb_hits']; 559 561 // --- 560 562 … … 577 579 'SHOW_NB_COMMENTS_NO' => 578 580 'false' == $_POST['show_nb_comments'] ? 'checked="checked"' : '', 581 'SHOW_NB_HITS_YES' => 582 'true' == $_POST['show_nb_hits'] ? 'checked="checked"' : '', 583 'SHOW_NB_HITS_NO' => 584 'false' == $_POST['show_nb_hits'] ? 'checked="checked"' : '', 579 585 'ENABLED_HIGH_YES' => 'true' == $_POST['enabled_high'] ? 'checked="checked"' : '', 580 586 'ENABLED_HIGH_NO' => 'false' == $_POST['enabled_high'] ? 'checked="checked"' : '', -
trunk/include/category_default.inc.php
r1677 r1763 105 105 ) 106 106 ); 107 if ($user['show_nb_hits'] 108 and isset($page['category']) 109 and $conf['show_nb_hits']) 110 { 111 $template->assign_block_vars( 112 'thumbnails.line.thumbnail.nb_hits', 113 array('HITS'=> l10n_dec('%d hit', '%d hits', $row['hit']))); 114 } 107 115 108 116 if ($conf['show_thumbnail_caption']) -
trunk/include/config_default.inc.php
r1747 r1763 161 161 // bottom of each page ? 162 162 $conf['show_version'] = true; 163 164 // show_nb_hits : Show hits count under thumbnails 165 // false = never... true = depending on profile... 166 $conf['show_nb_hits'] = false; 163 167 164 168 // links : list of external links to add in the menu. An example is the best -
trunk/include/functions_user.inc.php
r1744 r1763 161 161 $user['expand'] = $conf['auto_expand']; 162 162 $user['show_nb_comments'] = $conf['show_nb_comments']; 163 $user['show_nb_hits'] = $conf['show_nb_hits']; 163 164 $user['enabled_high'] = $conf['newuser_default_enabled_high']; 164 165 } … … 776 777 'expand' => boolean_to_string($conf['auto_expand']), 777 778 'show_nb_comments' => boolean_to_string($conf['show_nb_comments']), 779 'show_nb_hits' => boolean_to_string($conf['show_nb_hits']), 778 780 'maxwidth' => $conf['default_maxwidth'], 779 781 'maxheight' => $conf['default_maxheight'], -
trunk/language/en_UK.iso-8859-1/common.lang.php
r1754 r1763 300 300 $lang['%d new comment'] = '%d new comment'; 301 301 $lang['%d new comments'] = '%d new comments'; 302 $lang['%d hit'] = '%d hit'; 303 $lang['%d hits'] = '%d hits'; 302 304 $lang['%d new element'] = '%d new element'; 303 305 $lang['%d new elements'] = '%d new elements'; … … 571 573 $lang['set as category representative'] = 'set as category representative'; 572 574 $lang['show_nb_comments'] = 'Show number of comments'; 575 $lang['show_nb_hits'] = 'Show hits count'; 573 576 $lang['slideshow'] = 'slideshow'; 574 577 $lang['slideshow_stop'] = 'stop the slideshow'; -
trunk/language/en_UK.iso-8859-1/help/configuration.html
r1744 r1763 94 94 for each picture on the thumbnails page. Resource consuming.</li> 95 95 96 <li><strong>Show hits count</strong>: display hits observed on picture 97 just under its thumbnail on the thumbnails page. 98 Only when advanced configuration parameter is: <br /> 99 $conf['show_nb_hits'] = true; <br /> 100 Notice: it is false by default.</li> 101 96 102 <li><strong>Maximum width of the pictures</strong>: maximum displayed 97 103 width. If pictures are larger than this setting, they will be resized on -
trunk/language/fr_FR.iso-8859-1/common.lang.php
r1754 r1763 300 300 $lang['%d new comment'] = '%d nouveau commentaire utilisateur'; 301 301 $lang['%d new comments'] = '%d nouveaux commentaires utilisateur'; 302 $lang['%d hit'] = 'vue %d fois'; 303 $lang['%d hits'] = 'vue %d fois'; 302 304 $lang['%d new element'] = '%d nouvel élément'; 303 305 $lang['%d new elements'] = '%d nouveaux éléments'; … … 572 574 $lang['set as category representative'] = 'élire comme représentant de cette catégorie'; 573 575 $lang['show_nb_comments'] = 'Montrer le nombre de commentaires'; 576 $lang['show_nb_hits'] = 'Montrer le nombre de visualisations'; 574 577 $lang['slideshow'] = 'diaporama'; 575 578 $lang['slideshow_stop'] = 'arrêter le diaporama'; -
trunk/language/fr_FR.iso-8859-1/help/configuration.html
r1744 r1763 99 99 ressources.</li> 100 100 101 <li><strong>Montrer le nombre de visualisations </strong>: affiche les 102 « hits » relevés sur une image sous sa miniature dans la page de miniatures. 103 Uniquement valable si le paramètre de configuration avancée est :<br /> 104 $conf['show_nb_hits'] = true; <br /> 105 N.B.: par defaut il est à false.</li> 106 101 107 <li><strong>Largeur maximum des images</strong>: à l'affichage. Si l'image 102 108 est plus large que ce paramètre, alors elle sera redimensionnée à -
trunk/profile.php
r1753 r1763 173 173 $fields = array( 174 174 'nb_image_line', 'nb_line_page', 'language', 'maxwidth', 'maxheight', 175 'expand', 'show_nb_comments', ' recent_period', 'template'175 'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'template' 176 176 ); 177 177 … … 202 202 $template->set_filename('profile_content', 'profile_content.tpl'); 203 203 204 $expand = ($userdata['expand'] == 'true') ? 'EXPAND_TREE_YES':'EXPAND_TREE_NO'; 204 $expand = ($userdata['expand'] == 'true') ? 205 'EXPAND_TREE_YES':'EXPAND_TREE_NO'; 205 206 206 207 $nb_comments = 207 ($userdata['show_nb_comments'] == 'true') ? 'NB_COMMENTS_YES':'NB_COMMENTS_NO'; 208 ($userdata['show_nb_comments'] == 'true') ? 209 'NB_COMMENTS_YES':'NB_COMMENTS_NO'; 210 211 $nb_hits = 212 ($userdata['show_nb_hits'] == 'true') ? 213 'NB_HITS_YES':'NB_HITS_NO'; 208 214 209 215 $template->assign_vars( … … 220 226 $expand=>'checked="checked"', 221 227 $nb_comments=>'checked="checked"', 228 $nb_hits=>'checked="checked"', 222 229 223 230 'REDIRECT' => $url_redirect, -
trunk/template/yoga/admin/configuration.tpl
r1744 r1763 195 195 196 196 <li> 197 <span class="property">{lang:show_nb_hits}</span> 198 <label><input type="radio" class="radio" name="show_nb_hits" value="true" {default.SHOW_HITS_YES} />{lang:Yes}</label> 199 <label><input type="radio" class="radio" name="show_nb_hits" value="false" {default.SHOW_HITS_NO} />{lang:No}</label> 200 </li> 201 202 <li> 197 203 <span class="property"> 198 204 <label for="default_maxwidth">{lang:Maximum width of the pictures}</label> -
trunk/template/yoga/admin/user_list.tpl
r1753 r1763 269 269 270 270 <tr> 271 <td>{lang:show_nb_hits}</td> 272 <td> 273 <label><input type="radio" name="show_nb_hits" value="leave" checked="checked" /> {lang:leave}</label> 274 / {lang:set to} 275 <label><input type="radio" name="show_nb_hits" value="true" {SHOW_NB_HITS_YES} />{lang:yes}</label> 276 <label><input type="radio" name="show_nb_hits" value="false" {SHOW_NB_HITS_NO} />{lang:no}</label> 277 </td> 278 </tr> 279 280 <tr> 271 281 <td>{lang:maxwidth}</td> 272 282 <td> -
trunk/template/yoga/profile_content.tpl
r1753 r1763 92 92 </li> 93 93 <li> 94 <span class="property">{lang:show_nb_hits}</span> 95 <label><input type="radio" name="show_nb_hits" value="true" {NB_HITS_YES}> {lang:yes}</label> 96 <label><input type="radio" name="show_nb_hits" value="false" {NB_HITS_NO}> {lang:no}</label> 97 </li> 98 <li> 94 99 <span class="property"> 95 100 <label for="maxwidth">{lang:maxwidth}</label> -
trunk/template/yoga/thumbnails.tpl
r1385 r1763 24 24 <br />{thumbnails.line.thumbnail.nb_comments.NB_COMMENTS} {lang:comments} 25 25 <!-- END nb_comments --> 26 <!-- BEGIN nb_hits --> 27 <br />{thumbnails.line.thumbnail.nb_hits.HITS} 28 <!-- END nb_comments --> 26 29 </span> 27 30 </span>
Note: See TracChangeset
for help on using the changeset viewer.