vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Delete All PMs - Let your members prune all their private messages automatically! (https://vborg.vbsupport.ru/showthread.php?t=63531)

Erwin 04-05-2004 10:00 PM

Delete All PMs - Let your members prune all their private messages automatically!
 
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

Quote:

Originally Posted by lasto
[high]* lasto clicks installs
[/high]

(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

VAN 04-06-2004 01:34 PM

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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by Erwin
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

Quote:

Originally Posted by Erwin
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

Quote:

Originally Posted by Erwin
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

Quote:

Originally Posted by vbIce
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

Quote:

Originally Posted by Onkel_Tom
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.

mtha 06-05-2004 06:06 AM

Quote:

Originally Posted by Boofo
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 :)

Polo 04-26-2005 01:18 PM

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.


All times are GMT. The time now is 04:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01200 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete