Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Clearing Private Messaging Inbox Notification
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
May 22, 2016 - 10:05 pm

So...we had a spam user get through and compromise our PM system. I ran a db query to find the malicious message was sent to 12± members. So, I then deleted the messages from the pmmessages table.

A couple members, however, have reported that the Inbox button notification still indicates there is an unread message. But there is no message, since I deleted it.

How might I go about clearing that notice via PHP MyAdmin?

Thanks in advance for any direction!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 22, 2016 - 10:09 pm

a private message exists in more than just the pmmessages table...  there is also an entry in the pmthreads table (one per thread) and in the pmrecipients table (once per recipient)...  its a relational database, so each recipient points to the message table... and each message in a thread points to the threads table...  so you only partially cleaned it out - hence the counts...

usually easier to delete the admin interface on forum - private messaging - pm stats...  but given the instability in the db, may not work right now...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
May 22, 2016 - 10:57 pm

Mr Papa said
so you only partially cleaned it out - hence the counts...

I figured that much. But now that I've deleted the messages, and therefore don't know the recipients or threads, any way to clear the count? Can that be done globally?

given the instability in the db, may not work right now...  

Great, any suggestions?

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 23, 2016 - 12:32 am

look through the pmthreads table for the thread...  you should be able to find it by the title which should be recognizable since you deleted the message... record the thread id... then delete it and delete any rows in the pmrecipients table that have that thread id...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
May 23, 2016 - 6:23 pm

Thank you for the direction! That helps.

So far it has been easy enough to just tell members to click the Mark Inbox Read button!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 23, 2016 - 8:26 pm

okay...  let us know if you have anymore on this topic...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626