MyBB Community Forums

Full Version: [WON'T FIX] Problem with stats limit setting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The stats limit setting is not implemented correctly.

It's applied to the queries that are in the functions to generate the caches. If the limit is set to 10 for example you have 10 entries in the caches most_read_threads and most_viewed_threads.

The user's permissions are applied in the file stats.php by removing threads from the output. If a user has no permission to view threads in the stats they are missing on the page (which is correct) but it also reduces the number of threads shown.

An example: The stats limit is set to 10 and a user has no permission to view 7 of the most viewed threads. Now only 3 subjects are shown on the stats page although the limit is set to 10.
That is how it works, unfortunately. That's a limitation for now.