Page 1 of 1

Display some statistics in the sidebar

Posted: Sat Oct 28, 2006 9:41 pm
by Davy
As usual: Hi!

I want to display some things out of the Statistics plugin (event) in the sidebar. Not all, but just some stuff, like the most commenting people or something.

Is this possible? (If this is asked before: Sorry!)

Re: Display some statistics in the sidebar

Posted: Mon Oct 30, 2006 10:11 am
by garvinhicking
Hi!

You can do it, but it's very advanced stuff. You must make use of the s9y smarty function "serendipity_hookPlugin". Its parameters are documented on www.s9y.org in the technical documentation. You need to pass it the event hook name of the statistics plugin, and then it will display everything of the statistics plugin.

The other option is to use code of the statistics event plugin and create your own sidebar plugin with that code.

HTH,
Garvin