I want to show stats from my board, like it's explained in this mod:
http://www.vbulletin.org/forum/showthread.php?t=95493
But, I want to save 3 of the 5 queries, refreshing stats every 5 minutes.
So, the only two stats whose stays "live" are the "online now"; the other 3 (total threads, total posts and total members) will be updated every 5 minutes and saved in datastore.
I did the following steps:
1) Create a ministats.php inside cron folder:
You must first be a
registered member to view any code.
2) Create a cron task to execute the php. I noticed that it works (the stats are saved in datastore table)
3) Create a plugin that:
a - execute a sql query to fetch the online members
b - retrieve info from datastore
The plugins is allocated in "global_start" hook, and this is the code:
You must first be a
registered member to view any code.
The online members info retrieves correctly, but the info from datastore not.
So, my question is: how I do to fetch that info in the plugin?
Thanks in advance,