The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
querie for deleting private messages by date
when i imported my old database, it messed up and only imported certain things. it DID import private messages, but unfortunately... it DIDN'T import my users.
so... i have a bunch of new users signing up, and for each new user, they find a cache of old pm's in their inbox that belong to whoever had their user id# on the old forum. this is going to keep happening right up through our 4000 and something registrations unless i can figure out how to kill them. is there a mysql querie i can use to delete pms from before a certain date? this is a very sensitive issue, as there are some fairly private pms in there. basically, i need to delete all private messages from before December 24, 2003. |
#2
|
||||
|
||||
Quote:
why didnt you just rever tot he back up and try to import again? |
#3
|
||||
|
||||
my backup was screwed.
|
#4
|
||||
|
||||
Quote:
im sure someone will come up with a querry to clear all the pm's by date but i know i cant you COULD just empty the table (not drop it) |
#5
|
||||
|
||||
This is easier said then done, due to the 3 PM tables in vB3. You'd need to get the PM's text based on date, then get the pm info for that single one, then delete the PM, PM Text and PM Recipt for that PM and then move onto the next one. I think thats right anyway.
|
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
i went ahead and did just that.
|
#9
|
||||
|
||||
hmm... and now i can't get rid of the Private Messages display:
"Private Messages: Unread 1, Total 61" |
#10
|
|||
|
|||
Upload this file as pmdelete.php and run it in your browser. Haven't tested it but it should do the trick.
PHP Code:
g-force2k2 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|