mass mark pm as read

I came up with these queries for you. You can run these queries on your database to mark all PMs as read:

(added semicolons per DSF's post):

Code:
UPDATE xf_conversation_recipient
SET last_read_date = UNIX_TIMESTAMP();

UPDATE xf_conversation_user
SET is_unread = 0;

UPDATE xf_user
SET conversations_unread = 0;

I tested this and it works. But you should backup first to be safe.
 
But don't forget the ";"
biggrin.png
 
I just did this on a fresh SMF 2 import > XF1.5 upgraded to XF2 with 130,000 old Private Messages. I had 3000+ myself 'unread' after the conversion.

Executed the SQL above and all seems fine. No unread messages.
 
I came up with these queries for you. You can run these queries on your database to mark all PMs as read:

(added semicolons per DSF's post):

Code:
UPDATE xf_conversation_recipient
SET last_read_date = UNIX_TIMESTAMP();

UPDATE xf_conversation_user
SET is_unread = 0;

UPDATE xf_user
SET conversations_unread = 0;

I tested this and it works. But you should backup first to be safe.

Does this mark as read for every single user?

And to confirm (bc this is from 2011), this applies to xf2.2?
 
Top Bottom