Difference between revisions of "Stats Function"

From GeeklogWiki
Jump to: navigation, search
m (Fixed formatting)
Line 1: Line 1:
If you want your plugin to show up on the stats page then you must  
+
If you want your plugin to show up on the statistics page then you must  
implement this function.</p>
+
implement this function.
  
 
       <table cellpadding="2" cellspacing="2" border="1" width="90%" align="Center">
 
       <table cellpadding="2" cellspacing="2" border="1" width="90%" align="Center">
Line 11: Line 11:
 
             <td valign="top" class="codeheader">plugin_showstats_&lt;plugin  
 
             <td valign="top" class="codeheader">plugin_showstats_&lt;plugin  
 
     name&gt;</td>
 
     name&gt;</td>
             <td valign="top" class="code">This function takes a showsitestats  
+
             <td valign="top" class="code">This function takes a showsitestats flag. If set to 1, this function shows the overall stats for your plugin in the site statistics box.&nbsp; If it is set to 2 it shows the statistic blocks for you plugin (similar to Top Ten Viewed Stories and  
    flag.&nbsp; If set to 1, this function shows the overall stats for your  
+
Top Ten Commented Stories).</td>
  plugin in the site statistics box.&nbsp; 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).</td>
 
 
           </tr>
 
           </tr>
 
       </table>
 
       </table>
 +
  
 
[[Category:Plugin Development]]
 
[[Category:Plugin Development]]

Revision as of 08:04, 6 May 2009

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).