Description: This is really JustDave's Genius. I'm just reposting to keep it current as it's so useful. Over time the Count in the w3t_Boards table of posts/replies can get off. This utility will update and fix it.
Working Under: UBB.Threads 6.2-6.3-6.4
Mod Status: Finished
Any pre-requisites:
Author(s): JoshPet
Date: 01/27/04
Credits: Dave_L, Gardener
Files Altered: /admin/menu.php
New Files: checkpostcount.php
Database Altered: none
Info/Instructions:
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
[]DLWebmaestro said: I run this, as well as the checklastpost, as cron jobs. Very handy! [/]
REALLY?? uhhh, could you post what you're doing here? I've always wanted to run that automated. How're you getting the checkpostcount to automatically update the corrected numbers?
On a side note, Why does it get way off the mark to begin with? Seems to occur mostly when moving posts.
I just took out some code so that it queries and changes the database without user intervention. I could have done a better job of cleaning out more unneccesary stuff, but it still works.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.