Loading...
 
Skip to main content

Login page increments pageview stats

Status
Closed
Subject
Login page increments pageview stats
Version
1.9.x
Category
  • Error
  • Patch
Feature
Stats
Resolution status
Works For Me
Submitted by
wbeaver2
Volunteered to solve
wbeaver2
Rating
(0)
Description
Login page increments tiki_pageviews which skews viewing stats, IMHO, especially for sites which require passwords for content viewing, which may be additionally exacerbated if users maintain Tiki's login page as their browsers home page.
Solution

In tiki-setup.php, replace the following (lines 1797-1801 in my install):

if ($count_admin_pvs 'y'
$user != 'admin') {
if (!isset($section) or ($section != 'chat' and $section != 'livesupport')) {
$tikilib->add_pageview();
}
}
with the following:
if $user { # Bug fix, otherwise next line counts hits for login page (because $user='' at time of loging page viewing)
if ($count_admin_pvs 'y'
$user != 'admin') {

if (!isset($section) or ($section != 'chat' and $section != 'livesupport')) {
$tikilib->add_pageview();
}
}
}

Importance
1 low
Priority
5
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
Ticket ID
350
Created
Monday 03 October, 2005 13:51:41 UTC
by Unknown
LastModif
Sunday 18 June, 2017 23:14:12 UTC


Collapse/expand modules below
Show PHP error messages