MyBB Community Forums

Full Version: How to update MyBB forum statistics from an external script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well I'm creating a MyBB forum integration script for the software I am designing. So far I am able to bundle user registration from my site with MyBB successfully. Just got the cookies thing to work too, as new user will log into both the site and MyBB simultaneously.

The one last problem I have right now is that the new user registered from sites will not be automatically recognized from MyBB forum's newest user welcome block. This can be resolved by admins running statistic recount/rebuild tool manually, but apparently this is not what I want. Is there a function I can call from MyBB's class/function library so that statistics are automatically updated? And if so, what are the arguments and requirements for it to work. Please lemme know if you can, thx.
umm no one knows?
$cache->update_stats();