View Full Version : Delete All PMs - Let your members prune all their private messages automatically!
Erwin
04-05-2004, 10:00 PM
Delete All PMs v1.0 - by Dr Erwin Loh
Do not distribute or copy without the author's permission.
This hacks allows your members to automatically delete all their PMs with one-click. Very useful, since currently you have to go and click on each page of PMs one by one to empty your inbox. This will remove all PMs in the Inbox, Sent and all other folders.
Installation
1. Edit 1 PHP file.
2. Edit 1 template.
3. Add 2 phrases.
The option to delete all PMs will be in the dropdown menu at the bottom of the PM list.
The instructions are in the ZIPPED file below.
Screenshot:
Logikos
04-06-2004, 10:46 AM
Very Nice!
/me Clicks install!!
lasto
04-06-2004, 11:52 AM
/me clicks installs
(anyone noticed sometimes on vb3 u always get invalid thread when replying to posts - got it twice on this thread)
Boofo
04-06-2004, 12:04 PM
Erwin, is there a way to make this only delete the inbox and sent messages folders? I have some personal folders that I really don't want to lose when deleting them all. ;)
Boofo
04-06-2004, 12:05 PM
* lasto clicks installs
(anyone noticed sometimes on vb3 u always get invalid thread when replying to posts - got it twice on this thread)
It's a random thing that happens on my site as well as vb.com. They haven't been able to trace it down as of yet. ;)
datainternet
04-06-2004, 12:40 PM
<font color="red">* datainternet clicks install</font>
Great Hack! Very usefull!
MFG datainternet
Sweet. I've been waiting for this one.
Suggestion? :)
Expanding on Boofoo's idea, it would be nice if people could tick a box next to the folders that they wish to empty.
Sam FT
04-06-2004, 02:23 PM
Erwin, is there a way to make this only delete the inbox and sent messages folders? I have some personal folders that I really don't want to lose when deleting them all. ;)
I second that idea...
FleaBag
04-07-2004, 04:26 PM
Useful hack - thanks. I like the way you're putting your hacks into HTML docs too. :)
Erwin
04-07-2004, 10:53 PM
Erwin, is there a way to make this only delete the inbox and sent messages folders? I have some personal folders that I really don't want to lose when deleting them all. ;)
I can look into that. :) That should be easy to do actually.
SnowBot
04-07-2004, 11:33 PM
I can look into that. :) That should be easy to do actually.
That will be great, i will install when you done the tweaking, thanks Erwin :)
teksigns
04-08-2004, 12:05 AM
anyway to get a javascript confirmation when a user clicks this ......
it would be a shame to click it by accident .
Boofo
04-08-2004, 12:13 AM
I can look into that. :) That should be easy to do actually.
It should be a walk in the park for you, sir. Looking forward to it. ;)
ssabmud
04-09-2004, 09:15 PM
Any way to use this on older versions as well?
vbIce
04-17-2004, 09:30 AM
How about a way people can CHECK the ones they do NOT want deleted?
You know there are some PM's people might want to keep so would be great to have it so they could say create a FOLDER for all the ones they want to KEEP then CHECK the box, now when they run the Delete ALL it will delete ALL BUT the folder OR the pm's they have checked.
I knwo for myself there are PM's I want to KEEP on the system instead of downloading etc, but I get a lot more that I want deleted then those I want to KEEP so it would be grerat to CHECK the ones I want saved then say Dlete All.
Just an Idea
Or is this TOO MUCH work?
teksigns
04-17-2004, 09:41 AM
I can look into that. :) That should be easy to do actually.
did you ever complete this ?
Onkel_Tom
04-20-2004, 11:25 PM
there is one "}" too much in your installation instruction in the first part where to search for in private.php
Just remove the last } in the search string and let the last line as
unset ($pm, $pmid);
works on my vB3.0.1
thanks
BigJohnson
04-21-2004, 01:40 AM
How about a way people can CHECK the ones they do NOT want deleted?
You know there are some PM's people might want to keep so would be great to have it so they could say create a FOLDER for all the ones they want to KEEP then CHECK the box, now when they run the Delete ALL it will delete ALL BUT the folder OR the pm's they have checked.
I knwo for myself there are PM's I want to KEEP on the system instead of downloading etc, but I get a lot more that I want deleted then those I want to KEEP so it would be grerat to CHECK the ones I want saved then say Dlete All.
Just an Idea
Or is this TOO MUCH work?
I am confused isnt this already with default vbulletin installed.
I have check boxes where you cn click which ones u want to delete and which ones u want to stay.
Erwin
04-21-2004, 09:42 AM
there is one "}" too much in your installation instruction in the first part where to search for in private.php
Just remove the last } in the search string and let the last line as
unset ($pm, $pmid);
works on my vB3.0.1
thanks
You're right! :) Fixed the instructions.
Erwin, is there a way to make this only delete the inbox and sent messages folders? I have some personal folders that I really don't want to lose when deleting them all. ;)
being able to select which folder in which, all PMs to be deleted would be nice :)
alkahf
06-17-2004, 10:01 PM
Hello
Need The same hack for admin to delete all PM's for Usergroups form admin CP.
Thanx
Dean C
06-17-2004, 10:34 PM
Tis nice to see this one ported - will be a definate install when I upgrade in a few weeks :)
Nice one, works great on version 3.0.7! Thanks Erwin
Mysticales
08-15-2006, 12:32 AM
I had this on 3.0.9, loved it, however I am now 3.5.4, I thought I could try to manually recode it.. but Im afraid I would just mess something up..
Has anyone converted this to be used on 3.5.4 or know one that does it?
sv1cec
03-26-2008, 07:40 AM
Erwin, did you ever get the chance to make this hack delete only PMs in the folder you are in, instead of all folders of a member?
I know this is ancient, but some of us are still using vB 3.0.xx and do not plan to upgrade.
Many thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.