php code to run forum statistics recount as a cron job..
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #1
php code to run forum statistics recount as a cron job..
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.
09-04-2010 03:46 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: php code to run forum statistics recount as a cron job..
It would make a lot more sense for the bridging script to update the stats, rather than recount on a cron...

My Blog
09-04-2010 08:38 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #3
RE: php code to run forum statistics recount as a cron job..
(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.
09-04-2010 09:44 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: php code to run forum statistics recount as a cron job..
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.

My Blog
09-04-2010 11:11 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #5
RE: php code to run forum statistics recount as a cron job..
actually..it does rebuild itself, but takes quite some time.
09-05-2010 04:34 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: