Hi Michelle

I just noticed on one of my forum pages that the statistics "block" is in what seems like an unusual place when there is a sub forum involved. In this particular forum, I have one sub forum, and the block is directly below the sub forum, but above the rest of the threads in the main part of that forum. It seems like the block should be at the very bottom of the threads, even when there's a sub forum there? Here is the actual forum to see it in action. Link

Comments

michelle’s picture

Status: Active » Fixed

You can remove

<?php if (!empty($forum_statistics)): ?>
  <?php print $forum_statistics; ?>
<?php endif; ?>

from advf-forum-list.tpl.php and add it to advf-forums.tpl.php

To get the variables set up, you need to either add

  if (user_access('view forum statistics')) {
    $variables['forum_statistics'] = theme('advf_forum_statistics');
  }

to advanced_forum_preprocess_forums() or just add this to advf-forums.tpl.php instead of using the variable:

  if (user_access('view forum statistics')) {
    print theme('advf_forum_statistics');
  }

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.