View Issue Details

IDProjectCategoryView StatusLast Update
0016262mantisbtplug-inspublic2013-08-16 10:30
ReporterDentxinho Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Summary0016262: Plugin to track issue views
Description

I've just released a initial version of Issue Viewers, a plugin that tracks issue 'visitors'.
Issue viewers and their view count are dislayed after bugnotes (hook: EVENT_VIEW_BUG_EXTRA). User names are ordered by their last view date.

In this version there is no threshold configuration (it tracks views from every user, and everyone can see the information), but it can be added if users demand.

Screenshot is attached.
Source code: https://github.com/Dentxinho/IssueViewers

Feedback is welcome :)

TagsNo tags attached.
Attached Files
issueviewers.jpg (21,056 bytes)   
issueviewers.jpg (21,056 bytes)   

Activities

dregad

dregad

2013-08-13 18:08

developer   ~0037661

I forked your repo into the mantisbt-plugin organization, and granted you push access. I suggest you keep it up-to-date there instead of your personal fork.

Dentxinho

Dentxinho

2013-08-14 06:55

reporter   ~0037663

Great!
I'm glad to help the community =)

atrol

atrol

2013-08-14 07:47

developer   ~0037664

Dentxinho, maybe you want also update the plugins wiki page
http://www.mantisbt.org/wiki/doku.php/mantisbt:mantis_plugins

Dentxinho

Dentxinho

2013-08-14 08:08

reporter   ~0037665

http://www.mantisbt.org/wiki/doku.php/mantisbt:issueviewers

"This topic does not exist yet

You’ve followed a link to a topic that doesn’t exist yet. If permissions allow, you may create it by using the Create this page button."

Looks like I don't have permission to create page, because I can't see the button...

atrol

atrol

2013-08-14 09:07

developer   ~0037871

I created the page.

cas

cas

2013-08-16 09:49

reporter   ~0037877

I have done some testing but the counting cannot be very accurate.
In case you view an issue and decide to assign it to someone else, you immediately have 2 views since the page is refreshed after porcessing the request. Admitted, the page is shown twice but in fact it is still the same view.
Not sure if you can use a filter to ignore such view counts.

atrol

atrol

2013-08-16 10:21

developer   ~0037878

The easiest way to exclude such kind of double counts might be to check the access time.
e.g. don't count access if the last access of the user is just n seconds before current access.
3600 seconds might be a good default to avoid getting questionable results.

cas

cas

2013-08-16 10:30

reporter   ~0037879

Last edited: 2013-08-16 10:30

Perhaps something can be used like :
if (substr($_SERVER['HTTP_REFERER'],-8) <> 'view.php'){
*** count
}