Switch off views

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Switch off views

Postby micropub » 17 Mar 2016, 18:00

Is it possible to disable the daily and total views for each listing?
micropub
Stranger
 
Posts: 14
Joined: 15 Jan 2016, 11:40
Reputation point: 0

Re: Switch off views

Postby Foton » 18 Mar 2016, 10:39

If the theme installed on your site is 'Classic' one, you need to remove the following code line in themes\classic\views\modules\apartments\views\view.php:
Code: Select all
<div class="stat-views">
            <?php if (isset($statistics) && is_array($statistics)) : ?>
            <?php echo tt('Views') ?><?php echo tt('views_all') . ' ' . $statistics['all'] ?><?php echo tt('views_today') . ' ' . $statistics['today'].'.&nbsp;';?>
            <?php echo '&nbsp;'.tc('Date created') . ': ' . $model->getDateTimeInFormat('date_created'); ?>
            <?php endif; ?>
        </div>
Foton
Web Developer
Web Developer
 
Posts: 117
Joined: 26 Jan 2012, 14:58
Reputation point: 1


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 14 guests

cron