Changeset 1763 for trunk/profile.php


Ignore:
Timestamp:
Jan 28, 2007, 9:56:10 PM (17 years ago)
Author:
vdigital
Message:

Issue 0000614: Display hits under thumbnails like comments counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r1753 r1763  
    173173    $fields = array(
    174174      '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'
    176176      );
    177177
     
    202202  $template->set_filename('profile_content', 'profile_content.tpl');
    203203
    204   $expand = ($userdata['expand'] == 'true') ? 'EXPAND_TREE_YES':'EXPAND_TREE_NO';
     204  $expand = ($userdata['expand'] == 'true') ?
     205            'EXPAND_TREE_YES':'EXPAND_TREE_NO';
    205206
    206207  $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';
    208214
    209215  $template->assign_vars(
     
    220226      $expand=>'checked="checked"',
    221227      $nb_comments=>'checked="checked"',
     228      $nb_hits=>'checked="checked"',
    222229 
    223230      'REDIRECT' => $url_redirect,
Note: See TracChangeset for help on using the changeset viewer.