Back. If you are using the mass PM hack by Chrispadfield, here is what you need to change.
Go look at his install instructions to see where this goes.
His code:
Code:
$forums=$DB_site->query("SELECT userid,username FROM user WHERE receivepm=1 ORDER BY userid");
Change to:
Code:
$datecut = time() - (48 *60*60);
$forums=$DB_site->query("SELECT userid,username FROM user WHERE receivepm=1 and lastactivity>$datecut ORDER BY userid");
That datecut gets you everyone who was active within the past 48 hours. You can tinker with it to get the time to what you desire.
NOTE: This code is untested. I don't have the hack installed myself and cannot test it.
Amy