Loading...
 
Skip to main content

On tiki-listpages.php, there should be no "Hits" column if the Stats feature is disabled.

Status
Closed
Subject
On tiki-listpages.php, there should be no "Hits" column if the Stats feature is disabled.
Version
25.x
Category
  • Consistency
Feature
Stats
UI / UX (User interface and experience)
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Adrien
Lastmod by
Elvis ANSIMA
Rating
(0)
Description

On Tiki as long as the feature "Stats" (tiki-admin.php?page=stats&highlight=feature_stats) is not enabled (it is disabled by default) hits on pages are not counted.

However, even the feature is disabled there is a "hit" column displayed at http://bsfez-11581-8115.show2.tikiwiki.org/tiki-listpages.php (and certainly other places). It will be populated with a lot of 0 for Tikis that will never use or needs stats.

Image

Image

Solution

Visibility of the Hits column on tiki-listpages.php:
The "Hits" column visibility should be dependent on the Stats feature.
If Stats is enabled, then display the column.
If Stats is disabled, then hide the column.

Suggested solution details :
Help message about how to display the Hits column:
It's crowded at the top of the page and it would be irritating to have a remarksbox there all the time if you don't want to turn on stats, so maybe the text (only text — no remarksbox — should be below the table, inline with the checkbox action selector, following it on the right.

The checkbox action selector is now in a div class="input-group col-sm-8" so there's col-sm-4 of space available to the right side. I'd say make that a grid div class="col-sm-4" and put a div class="form-text" in it that displays the text when the stats feature is off.

Maybe both col divs should be in a div class="row".

I'd put an icon-information first and then text like 'To record page hits and display them in this list, enable the "Stats" feature.' "Stats" would have a tiki-admin_general.php?page=features IRL or whatever is the link best to use, so the admin user can navigate to the page to activate the Stats feature.

When the Stats feature is activated, the message doesn't need to be displayed, so its visibility is the opposite of the Hits column's.

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8115
Created
Sunday 06 March, 2022 13:23:29 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Monday 30 May, 2022 12:40:39 UTC


Show PHP error messages