]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added more stats
authorCash Costello <cash.costello@gmail.com>
Thu, 30 Jul 2009 11:38:40 +0000 (11:38 +0000)
committerCash Costello <cash.costello@gmail.com>
Thu, 30 Jul 2009 11:38:40 +0000 (11:38 +0000)
views/default/tidypics/stats.php

index ebaf9a06141be4b975552e8be02979647fc39bd0..8de3415a15958b43c20e3727c40b7bddff542f7f 100644 (file)
        $total = get_data_row($query);\r
        $num_albums = $total->total;\r
 \r
-       echo  $num_images . " Photos in " . $num_albums . " Albums";\r
-?>
\ No newline at end of file
+       $num_comments_photos = count_annotations(0, 'object', 'image', 'generic_comment');\r
+       $num_comments_albums = count_annotations(0, 'object', 'album', 'generic_comment');\r
+       \r
+       $num_views = count_annotations(0, 'object', 'image', 'tp_view');\r
+       \r
+       if (get_plugin_setting('tagging', 'tidypics') != "disabled")\r
+               $num_tags = count_annotations(0, 'object', 'image', 'phototag');\r
+?>\r
+<p>\r
+<br />\r
+Photos: <?php echo $num_images; ?><br />\r
+Albums: <?php echo $num_albums; ?><br />\r
+Comments on photos: <?php echo $num_comments_photos; ?><br />\r
+Comments on albums: <?php echo $num_comments_albums; ?><br />\r
+Total views: <?php echo $num_views; ?><br />\r
+<?php \r
+       if ($num_tags) {\r
+?>\r
+Photo tags: <?php echo $num_tags; ?><br />\r
+<?php\r
+       }\r
+?>\r
+</p>
\ No newline at end of file