MyBB Community Forums

Full Version: Recounting statistics in _stats table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can we recount by-day statistics in mybb_stats table? I am shuffling my threads now a lot and it somehow got messed, some days have very high numbers.

I can't find it in "Recount & Rebuild" in admin panel.
Well, I did it myself.

Code is here if someone search this out. DB functions (db_select, db_column, db_execute) should be clear by name, just pure SQL and array preparing.

https://gist.github.com/anonymous/2cfd87...fbc1d4bf3f
(can't save it here)