Version: 1.00, by Logician
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 05-09-2002
Last Update: Never
Installs: 30
No support by the author.
Hiyas,
Do you have users who cant clean their private message box? Do some of your users fail to erase messages in the "sent message box" and keep getting "your pm box full" notification? This hack can help you a bit to get rid of "HELP!! I CANT GET PMS!" messages.
This easy-to-implement hack will add a link in your board which will sweep-clean private messages by erasing all messages off the user's inbox AND sent box. By default hack will add this link to Private Message Window ("privfolder" template) and "pmbox full" notification email so that your users will be able to clean their pm box with 1 click (and a confirmation!). However you can add it to anywhere you like.
Tested in v.2.2.2 and will work with ALL versions > 2.0.3
If you install the hack, please click install. Thank you..
Enjoy..
Logician //=^))
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I think this is a great hack, but I wish the hack would just empty the indox, sent and message tracking only. Because I set up a custom folder called Saved Messages and those pms get deleted too. Is there a way to just delete pms from those three folder?
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid]");
to
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=0");
to erase just those messages that are saved in the main folder. If you create another folder ie: saved or trash or whatever it is assigned a folderid and those messages will not get deleted.
Today at 02:02 AM Parker Clack said this in Post #24 Logican:
I just changed
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid]");
to
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=0");
to erase just those messages that are saved in the main folder. If you create another folder ie: saved or trash or whatever it is assigned a folderid and those messages will not get deleted.
If this usage makes you happy, it is ok, enjoy. But IMO it defeats the primary reason why you need this hack: If user is advanced to delete PM folders individually then he doesn't need this hack anyway, he can just manually erase messages in the folders he wants.
But many users are newbies and just don't notice they have more than 1 PM box (inbox, outbox, other folders they created etc.). So when they get your PM folder full warning, they just delete the inbox and when this does not avoid the error, they complain. This hack is intended to cure this problem and if you exempt a certain folder, IMO it can not serve this purpose.
I understand your reasoning. I don't put a limit on the number of private messages they can have. The way that I have done it if there are members that want to keep a private message they have gotten, say it has a phone number in it, they can move it to a saved folder and then delete all the others.
Just another way of doing this.
Thanks again for a great hack. I really enjoy those that you come up with.
As anyone else had this problem..where the message tracking messages are not delete when using this hack. I have improved pm folder and improved pm folder addon installed for reference.
Today at 03:41 AM Music Pirate said this in Post #28 As anyone else had this problem..where the message tracking messages are not delete when using this hack. I have improved pm folder and improved pm folder addon installed for reference.
This is not needed..
Tracking messages are not seperate records in the database, they are just a field in the existing record so they don't hold a space in MYSQL.
Besides messages in the tracking screen is not regarded in the PM quote so even if user have 10000 tracked messages in that screen, she can send/receive PMs provided that she empty other pm folders with this hack.
So this hack is only deleting pms that fills pm quote and prevent user to receive new PMs.