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"); ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|