Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Clean Sweep Private Message Box Details »»
Clean Sweep Private Message Box
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #22  
Old 06-25-2003, 07:27 PM
dano dano is offline
 
Join Date: May 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect on 2.3.0 Nice work as usual. *clicks install*
Reply With Quote
  #23  
Old 06-28-2003, 05:11 AM
Sam FT's Avatar
Sam FT Sam FT is offline
 
Join Date: Apr 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #24  
Old 06-28-2003, 02:38 PM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exceptional combined with Improved PM Folderview.

/me clicks install
Reply With Quote
  #25  
Old 06-28-2003, 10:02 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Parker
Reply With Quote
  #26  
Old 06-29-2003, 09:36 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.

But your call anyway..
Reply With Quote
  #27  
Old 06-29-2003, 12:26 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logican:

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.

Parker
Reply With Quote
  #28  
Old 06-29-2003, 04:42 PM
-Sidekick- -Sidekick- is offline
 
Join Date: May 2002
Location: Cudahy, Wi
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:26 AM Parker Clack said this in Post #26
Logican:

I understand your reasoning. I don't put a limit on the number of private messages they can have.
Then why would you need this at all?
Reply With Quote
  #29  
Old 07-02-2003, 11:41 PM
Sam FT's Avatar
Sam FT Sam FT is offline
 
Join Date: Apr 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 07-03-2003, 01:52 PM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me gives a nod of acknowledgment
Reply With Quote
  #31  
Old 07-03-2003, 05:53 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07425 seconds
  • Memory Usage 2,307KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete