By OmarE on
Hi, everyone I am a beginner to Drupal and I would like some assistance with the following.
I would like to create a new block stating some like this:
"Hi everyone, in this week (or month) 100 images, 200 blogs and 400 comments have been posted and they are currently 20 persons online."
I would like to know how to retrieve the information on the 100 images, 200 blogs and 20 persons online etc. I have no problem with reading documentation, if possible could someone point me in the right direction it would seriously appreciated or assist with the code.
Note: if I have posted this in the wrong forum please tell me where to post it.
Thank You
Omar
Comments
api.drupal.org
The core modules create blocks that duplicate this function. Just look into how they do it and work backwards.
http://api.drupal.org/api/function/comment_get_recent/6
http://api.drupal.org/api/function/statistics_recent_hits/6
This is not all that you need to do what you are asking. Just search around a bit in the api for each stat you need.
http://inletmedia.com