# Can the history plugin display more than 2 weeks of data?

+ 1 like - 0 dislike
265 views

The User History plugin that we have installed seems to only display user history of 2 weeks ago. This is despite having set the "Age in days of oldest activity to show" to 365 days.

Is it possible to make this plugin display infinite history? If it gets too long with time, we may need infinite scrolling, or something, but cross that bridge when we come to it.

asked Mar 27, 2014
retagged Apr 2, 2014

+ 2 like - 0 dislike

@dimension10 Sometimes you ask for interesting requirements that make me search for a while. Searching for a bug, I have found a simple reason for this effect. I have set up the event log together with the installation of this plugin at 2014-03-06, so this is 26 days ago. To compute the number of weeks, the plugin computes floor (number of seconds / 604,800 ), where 640,800 seconds are 7 days). So today, we see as a result "3 weeks ago". The plugin works fine, there is no bug.

By the way, today the event log has registered 35,758 events in these 26 days. If we set for infinite history, the creation of the history page will take a considerable time, the user has to wait for (may even once trespass the time-limit of PHP). But as you say, we may cross that bridge when we come to it.

answered Apr 1, 2014 by (0 points)

@polarkernel Good to know that there is no bug : )  I think it has registered so many events because many questions were imported from SE. So years' worth of events happened according to the plugin in a month.

 Please use answers only to (at least partly) answer questions. To comment, discuss, or ask for clarification, leave a comment instead. To mask links under text, please type your text, highlight it, and click the "link" button. You can then enter your link URL. Please consult the FAQ for as to how to format your post. This is the answer box; if you want to write a comment instead, please use the 'add comment' button. Live preview (may slow down editor)   Preview Your name to display (optional): Email me at this address if my answer is selected or commented on: Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: If you are a human please identify the position of the character covered by the symbol $\varnothing$ in the following word:p$\hbar$ysicsOverfl$\varnothing$wThen drag the red bullet below over the corresponding character of our banner. When you drop it there, the bullet changes to green (on slow internet connections after a few seconds). To avoid this verification in future, please log in or register.