vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   is there a Mod for deleting all the PM's (https://vborg.vbsupport.ru/showthread.php?t=159541)

basskiller 10-05-2007 03:27 PM

is there a Mod for deleting all the PM's
 
Not just one user's PM's, but board wide deletion. every pm in every user's box with one click

Paul M 10-05-2007 03:45 PM

I doubt any such mod exists, there isn't going to be much call for such a thing.

Vman 10-11-2007 06:53 PM

There was a hack a few years back made for the early versions that allowed you thru your AdminCP, to schedule daily, weekly or monthly mass PM's deletions. I remember it because I installed on 4 boards. But I can't seem to find it now.

Or Is there a way to manually purge the SQL PM Database with a query and if so, what whould that query code look like?

Or can you simply just goto your Database and just "Empty" that sql...

Thanks for the Help....

dismas 10-11-2007 07:04 PM

<a href="http://www.vbulletin.com/forum/showthread.php?t=231405" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=231405</a>

nexialys 10-11-2007 07:22 PM

i had this request yesterday: http://www.vbulletin.com/forum/showthread.php?t=245300

i released the answer here: http://www.vb-hacks.org/forum/showthread.php?t=656

Vman 10-12-2007 03:10 PM

Perfect, Thank You!!!!!

djbaxter 10-13-2007 10:56 PM

Quote:

Originally Posted by nexialys (Post 1357768)

Unfortunately, like an add-on I was working on a while back (see https://vborg.vbsupport.ru/showthread.php?t=142308), your solution doesn't update PM counts as it deletes PMs.

I've also looked for a database query that could be run separately to recount remaining PMs on a member by member basis, with no success yet.

Any thoughts?

nexialys 10-13-2007 11:00 PM

my script was built for mega large pm db, and for that i dropped the recount of pm... but it is simple... a lot... ;)

you will have to duplicate the function build_pm_counters(), because that actual one is working only with userinfo, the actual user, not in batch process...

i did not include it because it would overhead the server... and actually, each time a member will post or receive a new pm, the count is updated... that's why i did not do it.

djbaxter 10-13-2007 11:03 PM

Quote:

Originally Posted by nexialys (Post 1359354)
my script was built for mega large pm db, and for that i dropped the recount of pm... but it is simple... a lot... ;)

you will have to duplicate the function build_pm_counters(), because that actual one is working only with userinfo, the actual user, not in batch process...

i did not include it because it would overhead the server... and actually, each time a member will post or receive a new pm, the count is updated... that's why i did not do it.

How would you do that exactly? I'd be willing to share authorship or give authorship to you for that matter for a script that worked and that would run as a cron job.

See https://vborg.vbsupport.ru/showthread.php?t=142308

Lynne 10-14-2007 12:32 AM

You might want to take a look at the queries in this thread: http://www.vbulletin.com/forum/showt...light=pmunread

(Although, if you have actually deleted all the PMs, can't you just make a simple query and set pmtotal and pmunread both equal to zero for everyone?)


All times are GMT. The time now is 03:15 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.01987 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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