MyBB Community Forums

Full Version: Adding my own Stats to Stats Cache
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
You will have have to use the default classes declaration.

remove from your code

$cache = new dataCache(); 

along to those i have mentioned in my previous post.

and use the default declrations of MyBB

$cache->updatestats();
 $info = $cache->read("stats", 1);


remember to always add

global $cache;

When using $cache->somthing inside a function

regards
You need to also "global $db;" if you are using $db->??? methods inside your own function.
Hi !!!

Thanks a lot ! Everything's working fine ! Big Grin

Thanks for your help !!! Wink
Mensik Smile
Pages: 1 2 3