vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PM Pruning ... (https://vborg.vbsupport.ru/showthread.php?t=181222)

PossumX 06-01-2008 05:51 PM

PM Pruning ...
 
This seems to be a topic that has been hashed over many places over time. It would be a great benefit to many of us if there was a mod available that correctly pruned Private Messages, based on age (primarily).

Has anyone made any real progress surrounding this type of mod, where it actually works, and reflects the proper PM counts for the user?

sR Craig 06-07-2008 09:20 PM

Quote:

Originally Posted by PossumX (Post 1538027)
This seems to be a topic that has been hashed over many places over time. It would be a great benefit to many of us if there was a mod available that correctly pruned Private Messages, based on age (primarily).

Has anyone made any real progress surrounding this type of mod, where it actually works, and reflects the proper PM counts for the user?

I've been considering writing something like this.

So, other than age what else do you think would be good to be able to parse by?

Also, the function to rebuild the proper PM counts is built into vBulletin, I've taken it and modified it in the past to rebuild PM counts for all users...

PossumX 06-08-2008 11:53 PM

Age and possibly last activity date (so as to be able to prune PM's of non-active users) is about all I can think of.

What function are you referring to in vB? I am unaware of anything other than possibly rebuild counters.

sR Craig 06-09-2008 04:56 PM

In private.php there is a function called build_pm_counters...

I have based work off of this function in the past when pruning old PM's...

If you check it out, its obvious that it requires very little work to modify it to rebuild the counters for all users...

Lynne 06-09-2008 05:19 PM

Have you looked at this mod? Prune Private Messages - Age Based

sR Craig 06-09-2008 06:54 PM

Quote:

Originally Posted by Lynne (Post 1545193)
Have you looked at this mod? Prune Private Messages - Age Based

I have...

This is what the developer has to say though:
Quote:

WARNING: I have discovered that, at present, the individual PM counts (user.pmtotal and user.pmunread) are not updated by this script and therefore running the script will leave members with inaccurate PM counts. I am currently seeking a way to fix this.

There is also this: https://vborg.vbsupport.ru/showthread.php?t=179879

However I haven't tried it yet...


All times are GMT. The time now is 01:06 PM.

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.01003 seconds
  • Memory Usage 1,724KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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