MyBB Community Forums

Full Version: Clear Total Messages?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
UPDATE mybb_users SET totalpms = 0 WHERE totalpms != 0

UPDATE mybb_users SET unreadpms = 0 WHERE unreadpms != 0

That will set Total PMs and Unread PMs to 0 without deleting the private messages from the database. And all private messages will still be there, this just kind of resets the count.
You can just remove the total count from the language string.

ACP >> Configuration >> Languages >> yourlang >> global.lang.php >> welcome_pms_usage
(2011-04-27, 04:08 PM)faviouz Wrote: [ -> ]
UPDATE mybb_users SET totalpms = 0 WHERE totalpms != 0

UPDATE mybb_users SET unreadpms = 0 WHERE unreadpms != 0

That will set Total PMs and Unread PMs to 0 without deleting the private messages from the database. And all private messages will still be there, this just kind of resets the count.

Won't that reappear after a recount?
After rebuilding the cache, yes, it will.
Pages: 1 2