vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Periodic Prune Pms [ Cron Job - Fully Controlable ] (https://vborg.vbsupport.ru/showthread.php?t=179879)

Omranic 05-19-2008 10:00 PM

Periodic Prune Pms [ Cron Job - Fully Controlable ]
 
1 Attachment(s)
/*================================================* \
|| ################################################ ||
|| # Product Name: Periodic Prune Pms ......................... Version: 1.0.0 # ||
|| # Licence Number: Free License .................................................. .... # ||
|| # --------------------------------------------------------------------------------- # ||
|| # .................................................. .................................................. # ||
|| # ..... Copyright ?2005-2008 PHP KingDom. Some Rights Reserved. ...... # ||
|| # .... This file may be redistributed in whole or significant part under ..... # ||
|| # .. "Creative Commons - Attribution-Noncommercial-Share Alike 3.0" ... # ||
|| # .................................................. .................................................. # ||
|| # ---------------- 'Periodic Prune Pms' IS FREE SOFTWARE ---------------- # ||
|| # .... http://www.phpkd.net | http://www.phpkd.net/info/license/free .... # ||
|| ################################################ ||
\*================================================ */



Please remember to click Mark as Installed if you use this modification.
Support questions from members who have not marked this as installed will be considered low priority.



Many thanks:
  • All vBulletin experts.
  • vBulletin.com for their professional products and premium support.
  • vBulletin.org for their articles, mods [Thanks also to articles' authors & mod coders].


Name: Periodic Prune Pms

Descreption: This mod allows forum administration to specify a period after which all pms of users will be deleted (Per Usergroup).

How it works:
Nothing complex, it's just a cronjob.

Features:
  • Specific Features:
    • Can enable/disable mod globally. v1.0.0
    • Can specify which folders to be pruned (All Folders / Just Inbox / Just Outbox / All folders other that inbox & outbox). v1.0.0
    • Can specify which PMs to be deleted [Message Status] (Read / Unread / Both). v1.0.0
  • Default Features:
    • Supported.
    • Fully phrased.
    • Uses Bitfields.
    • MD5 Hash checked.
    • Logging cronjob runs.
    • Fully controllable from AdminCP.
    • Doesn't require any manual edits.
    • Fully compatible with vBulletin 3.7.x series.
    • Will not alter environment of vb or other hacks.
    • cronjob controlled from Scheduled tasks as normal vB Crons.


Help Us:
  • With your brilliant suggestions, ideas to develop this mod.
  • With your appreciated translations (translation credits go to their owners).


Known Isues:
  • None till now.

History:
  • v1.0.0 20/5/2008 07:07 AM (EEST): First initial public release.


Notes:
  1. Mod is disabled by default, you should enable it from AdminCP options.
  2. cronjob run once daily (at midnight), you can configure it from 'Scheduled Task Manager'.
  3. Supported languages of this mod is available as a translated product not as language files, each product has an attribution at it's end defines the it's language (ie: -[English]).
  4. This mod is supposed to work with vBulletin 3.5.x & 3.6.x series, but we don't support versions prior 3.7.x series!


Files Tree:
  • import
    • product-phpkd_periodic_prune_pms-[Lang Name].xml
  • upload
    • includes
      • cron
        • prunepms.php
      • xml
        • bitfield_phpkd_periodic_prune_pms.xml
      • md5_sums_phpkd_periodic_prune_pms.php

Screen Shots:
  • Available down there.


Technical Notes:
  • Plugins: 0
  • New Files: 3
  • File Edits: 0
  • New Templates: 0
  • Template Edits: 0
  • New Database Tables: 0
  • Database Alterations: 1
  • New Phrases: 19
  • New Options: 3
  • Cron Jops: 1


Installation Procedure:
  • Import the product file from your AdminCP.
  • Upload all the content of the upload folder to your forum ROOT.
  • Done :cool: .


Control:
  • AdminCP -> vbulletin options -> Periodic Prune PMs Settings
  • AdminCP -> Usergroups -> Usergroup Manager -> Periodic Prune PMs Permissions
  • AdminCP -> Scheduled Tasks -> Scheduled Task Manager -> Prune PMs


At the end:
  • Thanks to all of you for supporting us by installing our products.


Other Products:

Keep Moving Forward!

bokmade 05-20-2008 04:59 AM

If It will Send a PM Message to user to inform them we gone to delete there PM's Just to let them get copy of any messages ..

Thanks ..

Omranic 05-20-2008 05:30 AM

Quote:

Originally Posted by bokmade (Post 1525430)
If It will Send a PM Message to user to inform them we gone to delete there PM's Just to let them get copy of any messages ..

Thanks ..

Thanks for your suggestion.
I think it should be an administration notice shown per usergroup if that usergroup's PMs setup to be deleted, may be shown in all pages or in the PM system.

It will be implemented in the next version.

Any other suggestions ...?

redlabour 05-20-2008 06:16 AM

Works great for me. :)

RedTrinity 05-20-2008 09:37 AM

Nice! Installed :)

Rickeo 05-20-2008 12:03 PM

Genius idea actually should clear up some space on my MYSQL :)

Greek76 05-20-2008 12:21 PM

Looks good thanks...

tirol07 05-20-2008 02:09 PM

thanks

Seb@ 05-20-2008 02:11 PM

thanks installed

gothicuser 05-20-2008 03:35 PM

Great job, thankyou.

Omranic 05-21-2008 01:39 AM

Quote:

Originally Posted by redlabour (Post 1525472)
Works great for me. :)

Quote:

Originally Posted by GamerGirl27 (Post 1525585)
Nice! Installed :)

Quote:

Originally Posted by Rickeo (Post 1525665)
Genius idea actually should clear up some space on my MYSQL :)

Quote:

Originally Posted by Greek76 (Post 1525677)
Looks good thanks...

Quote:

Originally Posted by tirol07 (Post 1525751)
thanks

Quote:

Originally Posted by Seb@ (Post 1525757)
thanks installed

Quote:

Originally Posted by gothicuser (Post 1525822)
Great job, thankyou.


You are welcome :).

msamm 05-24-2008 11:49 AM

thanks & it in ARABIC

thanks

thanks

Omranic 05-24-2008 02:23 PM

Quote:

Originally Posted by msamm (Post 1529930)
thanks & it in ARABIC

thanks

thanks

You are welcome.
There is two product in the 'import' folder, one in English & the other in Arabic.

product-phpkd_periodic_prune_pms-[English].xml
product-phpkd_periodic_prune_pms-[Arabic].xml

You can choose what you want.

Mark.B 05-24-2008 02:26 PM

Does this update the PM total counters afterwards?

Omranic 05-25-2008 04:39 AM

Quote:

Originally Posted by Mark.B (Post 1530059)
Does this update the PM total counters afterwards?

Yes, It updates counters for every user undergo this process :).

rapidphim 06-10-2008 05:21 AM

Good idea... does it work on 3.7.0 or later version?

Omranic 06-13-2008 01:42 AM

Quote:

Originally Posted by rapidphim (Post 1545591)
Good idea... does it work on 3.7.0 or later version?

Dear rapidphim, its for 3.7.x series:).

alehawk 06-24-2008 02:35 AM

Hi!
I was looking for this but can you make a tiny modification?
You'll see, I dont want to empty all users inbox, I just want to prune PM whose date is > today+10 days for example, so every user know that any PM will be deleted when it reaches 10 days old, so I always free space from PM form active and inactive users but it wont prune todays PM.
Tnx!

Omranic 06-28-2008 10:31 AM

Quote:

Originally Posted by alehawk (Post 1557365)
Hi!
I was looking for this but can you make a tiny modification?
You'll see, I dont want to empty all users inbox, I just want to prune PM whose date is > today+10 days for example, so every user know that any PM will be deleted when it reaches 10 days old, so I always free space from PM form active and inactive users but it wont prune todays PM.
Tnx!

Dear alehawk,
Do you checked out the product's features ? :)
It already allow you to determine which usergroups to prune their PMs, and after how much days (how much days old these PMs that should be pruned).

PoetJA-1975 06-28-2008 05:59 PM

Very nice - I suppose you can disable the automatic cron job via AdminCP and only run whenever you want to manually delete all PMs?

Nice hack though - I requested something like this a while ago - nice to see such a feature - should be good.

Thanx for sharing.

Jacquii.

ps - Install reserved for board upgrade.

alehawk 06-30-2008 01:08 PM

Quote:

Originally Posted by PHPKD (Post 1561109)
Dear alehawk,
Do you checked out the product's features ? :)
It already allow you to determine which usergroups to prune their PMs, and after how much days (how much days old these PMs that should be pruned).

ah ok, I thought it would prume all messages not x day ols msgs
Tnx

coffeefix 07-03-2008 06:24 PM

Quote:

Very nice - I suppose you can disable the automatic cron job via AdminCP and only run whenever you want to manually delete all PMs?
This is what I did. Works great. Nice product. installed :)

PoetJA-1975 07-04-2008 10:11 AM

Quote:

Originally Posted by coffeefix (Post 1566047)
This is what I did. Works great. Nice product. installed :)

Thanx ;)

Jacquii.

alqosman.net 07-06-2008 06:39 AM

Thanks for the good job.

It has been installed.

Q: Putting ZERO days at "Prune PMs X days" field of the usergroup settings, Does it disable the mod for a usergroup.


Thanks

Omranic 08-07-2008 09:40 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1561424)
Very nice - I suppose you can disable the automatic cron job via AdminCP and only run whenever you want to manually delete all PMs?

Nice hack though - I requested something like this a while ago - nice to see such a feature - should be good.

Thanx for sharing.

Jacquii.

ps - Install reserved for board upgrade.

Quote:

Originally Posted by alehawk (Post 1562997)
ah ok, I thought it would prume all messages not x day ols msgs
Tnx

Quote:

Originally Posted by coffeefix (Post 1566047)
This is what I did. Works great. Nice product. installed :)

Quote:

Originally Posted by PoetJA-1975 (Post 1566600)
Thanx ;)

Jacquii.

Quote:

Originally Posted by alqosman.net (Post 1567945)
Thanks for the good job.

It has been installed.

Q: Putting ZERO days at "Prune PMs X days" field of the usergroup settings, Does it disable the mod for a usergroup.


Thanks

You are welcome :up:
Yes, putting "0" days at the "Prune PMs X days" field of the usergroup permissions should disable the mod for this usergroup.

Artes_Marciales 08-13-2008 06:01 AM

great idea!
** install **

Omranic 08-16-2008 10:20 PM

Quote:

Originally Posted by Artes_Marciales (Post 1597525)
great idea!
** install **

You are welcome :).

Chachacha 08-25-2008 04:49 AM

Just so other 3.6.4 users will know not to waste their time, this mod is not compatible with your version of vbulletin.

BarelyHangingOn 09-02-2008 10:17 AM

Quote:

Originally Posted by Chachacha (Post 1606268)
Just so other 3.6.4 users will know not to waste their time, this mod is not compatible with your version of vbulletin.


Thats sucks, I really need to flush the pm system on my board.

qtify.com 10-06-2008 11:02 PM

Works great for me , Installed :)

uwebgg 01-20-2009 07:31 PM

it does not work with 3.8.x :-(

Mark.B 02-20-2009 06:45 PM

To me there seems to be on flaw in this, and that's that it only prunes from the pm table. It needs to do pmtext as well, otherwise you're leaving the bulk of the data in the database.

pedroenf 03-29-2009 04:50 PM

Could it be re-made to work in 3.8.X? It would be great. I have tried in 3.8.1 and no luck :(

pedroenf 03-31-2009 07:36 AM

Updating:

It does work on 3.8.1.

stamos2003 04-01-2009 10:32 AM

it's not working on 3.8x
though the pmtext table is not pruned too, this lets a mass of dead text in the database :(

pedroenf 04-01-2009 11:27 AM

For me it is working fine. It takes a while to get the job done but it does!

My PM tables before pruned (older than 1 year):

VBPM 26,6MB
Format fixed
Collation latin1_swedish_ci
Rows 520,364
Row length ø 21
Row size ø 54 Bytes
Next Autoindex 806,562

VBPMReceipt 21,7KB
Format dynamic
Collation latin1_swedish_ci
Rows 189
Row length ø 58
Row size ø 118 Bytes

VBPMText 63,3MB
Format dynamic
Collation latin1_swedish_ci
Rows 142,364
Row length ø 441
Row size ø 466 Bytes
Next Autoindex 233,864

My tables after pruned:

VBPM 12,6MB
Format fixed
Collation latin1_swedish_ci
Rows 245,613
Row length ø 21
Row size ø 54 Bytes
Next Autoindex 811,408

VBPMReceipt 20,9KB
Format dynamic
Collation latin1_swedish_ci
Rows 173
Row length ø 58
Row size ø 123 Bytes

VBPMText 32,8MB
Format dynamic
Collation latin1_swedish_ci
Rows 55,058
Row length ø 599
Row size ø 624 Bytes
Next Autoindex 236,758

As you can see lots of Mb where gone from my PM tables, and i didn't hand deleted them!!!

masterme 04-24-2009 12:45 PM

Does it work on 3.6.5?
If not, why is there a redirect from the 3.6 mods to this one telling we must use this one instead the 3.6.x version.

pedroenf 04-24-2009 11:44 PM

Quote:

4. This mod is supposed to work with vBulletin 3.5.x & 3.6.x series, but we don't support versions prior 3.7.x series!
Stated above.

masterme 04-26-2009 01:26 PM

And?
If you read the comments people who use it on older versions than 3.7 should work, but they often don't. And in the older versions of this mod they say we must use this version. So what is so strange about my question? If they say we must use this version, they must also give support. But he, that is my opinion...

Artes_Marciales 08-13-2009 07:50 AM

Great Mod!!!
¿work with 3.8.3???

Thanks!!


All times are GMT. The time now is 04:14 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.01758 seconds
  • Memory Usage 1,849KB
  • 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
  • (23)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
  • (40)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