AdminBoardRecount

Description

This function recounts many forum totals that can be recounted automatically without harm.

Syntax

void AdminBoardRecount ()


Notes

  • Requires the admin_forum permission.
  • Shows the maintain_forum admin area.
  • Fixes topics with wrong numReplies.
  • Updates the numPosts and numTopics of all boards.
  • Recounts instantMessages but not unreadMessages.
  • Repairs messages pointing to boards with topics pointing to other boards.
  • Updates the last message posted in boards and children.
  • Updates member count, latest member, topic count, and message count.
  • Redirects back to ?action=maintain when complete.
  • Accessed via ?action=boardrecount.

Context ($context) Variables
Name Description
$context['continue_countdown'] How long to wait (in seconds) after pausing before continuing (set to 3 by default)
$context['continue_get_data'] The querystring to be passed to the server after continuing
$context['continue_percent'] A rough approximation of the percentage of maintenance that has been completed
$context['continue_post_data'] Any POST data to be sent to the server after continuing
Advertisement: