2012-11-21, 03:35 PM
Well I am making an adoptables script right now, which features a MyBB forum bridge. A user account is automatically created in MyBB forum after he/she registers on the adoptables site.
So far I have been successful with user registration and cookie settings, but there's still a problem. The forum stat wont update automatically, so admins have to go to ACP to do this themselves. I have tried to find ways to implement this, no luck so far.
In fact, there are two functions in myBB's rebuild_forum_stats() and update_stats() functions that I need to look up. One of them requires database update in table mybbprefix__stats, which I actually have found a way to accomplish. The problem is with cache, I have no idea how cache works and how to use it with MyBB. It appears to be calling this method: $cache->update("stats", $stats, "dateline"), and its just so confusing what it does internally.
Can anyone please explain this to me? And if you do not mind answering, is there an easier way to rebuild MyBB's forum stats from a third party script or an external site? Please help.
So far I have been successful with user registration and cookie settings, but there's still a problem. The forum stat wont update automatically, so admins have to go to ACP to do this themselves. I have tried to find ways to implement this, no luck so far.
In fact, there are two functions in myBB's rebuild_forum_stats() and update_stats() functions that I need to look up. One of them requires database update in table mybbprefix__stats, which I actually have found a way to accomplish. The problem is with cache, I have no idea how cache works and how to use it with MyBB. It appears to be calling this method: $cache->update("stats", $stats, "dateline"), and its just so confusing what it does internally.
Can anyone please explain this to me? And if you do not mind answering, is there an easier way to rebuild MyBB's forum stats from a third party script or an external site? Please help.