of course I use build_datastore(), tried both ways:
$vbulletin->total['totalposts'] = $totalposts;
$vbulletin->total['totalthreads'] = $totalthreads;
build_datastore('total', serialize($vbulletin->total));
and
build_datastore('total', serialize($totalposts));
build_datastore('total', serialize($totalthreads));
the first one, I can get the value right after I use build_datastore, but I can't get it anywhere else. with the 2nd I have no idea how to get it
well I made it.
I borrow one datastore: maxloggedin and add 2 new value totalposts and totalthreads.
I wonder if there is a way to define a brand new datastore.
|