The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mass Delete Old Private messages
First, my apologies in advance if I'm posting this in the wrong place.
I'd like to adapt Amy's Mass Delete Old Private Messages script for vB 2.x to work with version 3.60. The existing version shows: Code:
<?php require ("global.php"); $time = time() - (60 * 24 * 60 * 60); $a = $DB_site->query("DELETE FROM privatemessage WHERE dateline < $time"); ?>
Can I just duplicate the a$ query above to prune each of those variables? That is: Code:
<?php require ("global.php"); $time = time() - (60 * 24 * 60 * 60); $a = $DB_site->query("DELETE FROM pm WHERE dateline < $time"); $a = $DB_site->query("DELETE FROM pmreceipt WHERE dateline < $time"); $a = $DB_site->query("DELETE FROM pmtext WHERE dateline < $time"); ?> |
#2
|
||||
|
||||
gez yet not finished..
a wrong place too |
#3
|
|||
|
|||
I'm aware of that - see above. Moderators, please move this to the apropriate forum.
|
#4
|
|||
|
|||
Hi,
I am confused a bit , does vb new vesion not come with the feature of mass delete where you check on box and all messages get checked and you delete them all ? Or are you trying to build cron to delete old messages? |
#5
|
|||
|
|||
Yes. I want to delete/prune all messages older than a certain date.
Discussion continuing at https://vborg.vbsupport.ru/showthrea...81#post1191881 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|