The main forum table looks good. It correctly displays forum name, topics, views, and latest post with all styles. However, everything under the "What's going on?" section is ONLY displaying in the naked adv_forum theme. This includes items like active users/guests, latest members, statistics there, and even the image legend.

FYI, I'm using the Newsflash theme for my site as well as the Author Pane module. For user profiles, I'm using the Drupal core profile, not APR (http://drupal.org/project/advanced_profile).

Comments

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm... That's very strange. Set it to one of the styles that isn't working and open up naked/advf-forum-list.tpl.php and scroll down to this bit:

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

Change it to:

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

Then clear your cache and look and see what it prints.

Michelle

aztechnetworks’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-rc1

Hi,

I have the exact same issue. I checked the code mentioned by Michelle above, but the code is different in the other themes. The code listed above is what is in the Naked theme (which works correctly).

This is what is in the "blue lagoon" theme, for the statistics display section:

<div id="forum-statistics">
  <div id="forum-statistics-header"><?php print t('What\'s Going On?'); ?></div>

  <div id="forum-statistics-active-header" class="forum-statistics-sub-header">
    <?php print t('Currently active users: !current_total (!current_users users and !current_guests guests)', array('!current_total' => $current_total, '!current_users' => $current_users, '!current_guests' => $current_guests)); ?>
  </div>

  <div id="forum-statistics-active-body" class="forum-statistics-sub-body">
    <?php print $online_users; ?>
  </div>

  <div id="forum-statistics-statistics-header" class="forum-statistics-sub-header">
    <?php print t('Statistics'); ?>
  </div>

  <div id="forum-statistics-statistics-body" class="forum-statistics-sub-body">
    <?php print t('Topics: !topics, Posts: !posts, Users: !users', array('!topics' => $topics, '!posts' => $posts, '!users' => $users)); ?>
    <br /><?php print t('Welcome to our latest member, !user', array('!user' => l($latest_user_name, 'user/' . $latest_user_id))); ?>
  </div>
</div>

Any assistance is appreciated.

Cheers,
Aaron

michelle’s picture

Still waiting on an answer to my question in #1. I can't help any further until I get that.

Michelle

michelle’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

It's been 10 days and no response from the OP. Nothing more I can do here.

Michelle

aztechnetworks’s picture

Michelle,

If I apply the changes you mentioned above to naked/advf-forum-list.tpl.php, I get the following results:

1. Naked Style: Shows "STATISTICS STATISTICS NOT EMPTY" above the "user stats area".

2. All other themes: No change.

This what I would have expected to happen. Naked style works correctly and shows stats, the other styles don't. I am not sure how changing the tpl for the naked theme would change anything in the other themes? Or do they all use the naked tpl as a source?

I guess, what I was asking in my post above is, what do I need to change in the tpl for the other themes as they aren't in the same format as the naked one in your quote?

Is there a difference in the way the other themes call the stats that my cause them to not be able to read them successfully?

Thanks for your assistance.

Cheers,
Aaron

aztechnetworks’s picture

Version: 6.x-1.0-rc1 » 6.x-1.0-rc3
Status: Closed (won't fix) » Active

Updated issue settings.

Note: Issue is still happening in RC3.

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

All the other styles inherit from the naked theme, except where they have files of their own to override them.

"what do I need to change in the tpl for the other themes as they aren't in the same format as the naked one in your quote" <-- That doesn't make sense. The other styles don't have advf-forum-list.tpl.php in them. If they do, then you have made changes to the module, which would be why this is broken. I suggest you re-install it and make changes the proper way by copying the .tpls you want to change to your theme.

Michelle

michelle’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further comment in a week. Closing.

Michelle