Deleting the counter definitely

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
User avatar
Sirio-Astarot
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 112
Joined: Thu Feb 02, 2012 3:46 am
Location: Madrid

Deleting the counter definitely

Post by Sirio-Astarot » Mon Apr 18, 2016 2:32 pm

Hello, I propose that the counter of visits of articles be deleted of definitive way, because it is not simply useful, this native function should give step in future versions to extensions like Content Statistics or external tools like Google Analytics.

Old age does that I propose it and even persists capriciously, in addition to occupy space in the list of articles.

Files involved
File: controller.php
components\com_content

Code:

Code: Select all

if ($vName == 'article')
{
	// Get/Create the model
	if ($model = $this->getModel($vName))
	{
		$model->hit();
	}
}
File: default.php
administrator\components\com_content\views\articles\tmpl

Code:

Code: Select all

<th width="5%">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
</th>
Code:

Code: Select all

<td class="center">
<?php echo (int) $item->hits; ?>
</td>
Custom developer websites based in Gantry Framework 4.

Developer Tools:
Webmatrix 2 - Build in CSS3 and HTML5 - Custom Less - Yootheme ZOO 3.3

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2902
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Deleting the counter definitely

Post by SharkyKZ » Mon Apr 18, 2016 7:21 pm

Removing core functionality and suggesting to use a paid 3rd party extension is just plain silly. And external tools like Google Analytics can never be as accurate as native.


Locked

Return to “Performance - Joomla! 3.x”