Stats Function

From GeeklogWiki
Revision as of 08:04, 6 May 2009 by Dirk (talk | contribs) (Fixed formatting)

Jump to: navigation, search

If you want your plugin to show up on the statistics page then you must implement this function.

Table 5. Stats function
Function Description of Function
plugin_showstats_<plugin name> This function takes a showsitestats flag. If set to 1, this function shows the overall stats for your plugin in the site statistics box.  If it is set to 2 it shows the statistic blocks for you plugin (similar to Top Ten Viewed Stories and Top Ten Commented Stories).