User tests: Successful: Unsuccessful:
Pull Request for Issue #22406 .
Option for Disable Hits counter increment
If disabled, article hits do not increase
article hits do not increase always
no?
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content Language & Strings Front End |
Labels |
Added:
?
?
|
@effrit go to Joomla Issue Tracker and click "Test this"
https://issues.joomla.org/tracker/joomla-cms/22413
@effrit if needed:
I have tested this item
If accepted, shouldn't this be done for all items using hits functionality?
Contacts, newsfeeds and tags. Categories also have code for hit functionality but it doesn't seem to get executed. Was thinking that, if this is added to categories, the strings should differentiate between content types. But if not, they should be made global.
Also realized hitcounts can be easily controlled by a plugin. This is already done with vote plugin to prevent increasing count when voting. That said, does an option really needs to be added? Plugin could give more control such as suggested in the forum https://forum.joomla.org/viewtopic.php?f=706&t=965788.
@SharkyKZ, it must be plugin AFTER this implementation done. So u will can use this BD field without standard mad increment IF u need accurate hits counter.
And read about others request - about DB cache. With this implementations they also will be satisfied. Because if you have thousand of articles standard hits is just pain for nothing...
So this modifications is simple and useful solution for 2 issues.
@effrit No, the plugin can easily disable hitcount by setting hitcount
var to 0:
joomla-cms/components/com_content/models/article.php
Lines 241 to 256 in c31ff51
This allows manipulation requested in the forum thread. E.g. to prevent same user from increasing the count twice or to disable robot hits.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
Labels |
Added:
?
|
I have tested this item
I have tested this item
I have tested this item
Hey, what else we need to do?
Who must implement changes requested by brianteeman?
Status | Ready to Commit | ⇒ | Pending |
Labels |
Set back to pending until tested new code
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-10-02 16:12:30 |
Closed_By | ⇒ | mbabker | |
Labels |
Cool, thanks! Tested successfully. What need to do to approve testing?