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
- 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') {$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' if (!isset($section) or ($section != 'chat' and $section != 'livesupport')) {
$tikilib->add_pageview();
}
}
}- Importance
- 1 low
- Priority
- 5
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is currently unavailableUnable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
- Ticket ID
- 350
- Created
- Monday 03 October, 2005 13:51:41 UTC
by Unknown - LastModif
- Sunday 18 June, 2017 23:14:12 UTC