Most forums have a statistics block, and I think having one created by the forum topic would be a good idea.

here is just something basic to start off with, to get ideas going.

The code for the queries was taken from advanced_forum.

Comments

naheemsays’s picture

StatusFileSize
new5.38 KB

aaand from drupal root.

naheemsays’s picture

StatusFileSize
new14.95 KB

screenshot

berdir’s picture

Status: Needs review » Needs work

Two things

a) You need to convert these db_result() to ->fetchField(), see http://drupal.org/node/310072

b) These queries need to be tested regarding performance...

michelle’s picture

I can already tell you performance is an issue. I don't remember which one off the top of my head but I know there's one in there that's not so good on huge forums. IIRC, AF uses caching to help with that. Or, if it doesn't, it's on my to do list...

Michelle

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.