vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Clean Sweep Private Message Box (https://vborg.vbsupport.ru/showthread.php?t=38489)

dano 06-25-2003 07:27 PM

Works perfect on 2.3.0 Nice work as usual. *clicks install*

Sam FT 06-28-2003 05:11 AM

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?

Kriek 06-28-2003 02:38 PM

Exceptional combined with Improved PM Folderview.

/me clicks install

Parker Clack 06-28-2003 10:02 PM

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

Logician 06-29-2003 09:36 AM

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

Parker Clack 06-29-2003 12:26 PM

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

-Sidekick- 06-29-2003 04:42 PM

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?

Sam FT 07-02-2003 11:41 PM

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.

Kriek 07-03-2003 01:52 PM

/me gives a nod of acknowledgment

Logician 07-03-2003 05:53 PM

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.


All times are GMT. The time now is 06:16 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.01132 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete