MyBB Hacks

Full Version: php code to run forum statistics recount as a cron job..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I merged mybb and joomla using the jfusion bridge, but it doesn't automatically rebuild the statistics (new registered users and such) and was wondering if anyone knew the php code to put inside a php file that I could call with a cron job to recount the forum statistics at a time I choose.
It would make a lot more sense for the bridging script to update the stats, rather than recount on a cron...
(09-04-2010 08:38 AM)ZiNgA BuRgA Wrote: [ -> ]It would make a lot more sense for the bridging script to update the stats, rather than recount on a cron...

and I agree, but the creators of the bridge seem to have a bad taste in their mouth because mybb apparently isn't taking well to the idea of integrating mybb with 3rd party applications.  I'm not sure if they're going to extend the bridge much more.
It's still their problem, so blame them.

If they're using MyBB insertion routines, the stats rebuild automatically.  If they're directly inserting into the DB, then they can simply add another query (not 100%) to update the stats.
actually..it does rebuild itself, but takes quite some time.
Reference URL's