Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Prune PMs older than 30 days Details »»
Prune PMs older than 30 days
Mod Version: 1.00, by GenSec (Coder) GenSec is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (3 votes - 3.67 average) Installs: 20
Released: 14 Oct 2004 Last Update: Never Downloads: 11
Not Supported  

These hack adds a cron job to prune old PMs for vBulletin 3.

======================
Upload the attached .php file
======================

includes/cron directory
cleanoldpm.php

========================
Make a vB-Cron entry
========================

Go to admin controlpanel

1) Scheduled Tasks
2) Add New Scheduled Task with the following data

Titel: Prune PMs older 30 days
weekday: *
day of month: *
hour: 0
minute: 0
enable log: no
filename: ./includes/cron/cleanoldpm.php



Thats all.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Prune PMs older than x days GenSec vBulletin 2.x Full Releases 6 15 Nov 2003 15:10
Date blinks to get attention if viewed message is older than X days Logician vBulletin 2.x Full Releases 11 07 Feb 2003 09:53

Comments
  #2  
Old 14 Oct 2004, 18:14
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
mmm.. this hack may come in handy thanks GenSec for sharing
__________________
God180 <--------------------- My Modified vBulletin
Reply With Quote
  #3  
Old 15 Oct 2004, 20:24
frankenberrie's Avatar
frankenberrie frankenberrie is offline
 
Join Date: Dec 2002
This hack will be great for the Arcade mod - Most members never delete their old challenge pms-
Reply With Quote
  #4  
Old 29 Oct 2004, 00:43
dssstorm dssstorm is offline
 
Join Date: Apr 2003
He rock's
Reply With Quote
  #5  
Old 21 Nov 2004, 01:41
paulyy paulyy is offline
 
Join Date: Jul 2004
Real name: Paul
Nice hack
Reply With Quote
  #6  
Old 26 Nov 2004, 16:30
alkahf alkahf is offline
 
Join Date: Mar 2004
Hello GenSec
Before install hack
Private Messages: 2 Unread, Total 280.
After installed hack:
The same numbers: Private Messages: 2 Unread, Total 280.
But I have now only 5 PMs.
How fix it ?

akahf
__________________
www.vBulletinClub.com
Reply With Quote
  #7  
Old 27 Nov 2004, 15:55
GenSec GenSec is offline
 
Join Date: Oct 2001
Run the cron job
Reply With Quote
  #8  
Old 28 Nov 2004, 06:21
alkahf alkahf is offline
 
Join Date: Mar 2004
Originally Posted by GenSec
Run the cron job
I run it.
It is deleted PMs but the PM numbers count in Nav Bar not change !!
Do you see?

Regards
__________________
www.vBulletinClub.com
Reply With Quote
  #9  
Old 28 Nov 2004, 06:41
Vman Vman is offline
 
Join Date: Apr 2004
This is great!.......Can't wait for more cron jobs to become available for download...

Thanks!
Reply With Quote
  #10  
Old 02 Dec 2004, 00:19
allhandl allhandl is offline
 
Join Date: Mar 2004
Real name: Ant
Anyone have thss problem

if I PM a user and they dont logon on within the 30 days the PM is wiped off the server as the hack states. However when they logon the navbar states they have a message. When you go to inbox it says it is empty.

Whats worse is there is no way to delete it out of there?

Im a newbie but it almost looks like the PM is getting deleted however the 'messageread' table in db isnt being effected. This only happens when a user does not view the message within the 30 days. If I read a PM and leave in inbox it deletes with no problems.

Anyone having similar problem or has a solution?
Reply With Quote
  #11  
Old 02 Dec 2004, 11:03
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Very useful .. thanks for the hack.
Clicked install
Reply With Quote
  #12  
Old 11 Dec 2004, 10:24
wowthatnice wowthatnice is offline
 
Join Date: Jan 2003
Originally Posted by alkahf
I run it.
It is deleted PMs but the PM numbers count in Nav Bar not change !!
Do you see?

Regards
Do this, open cleanoldpm.php find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

below add

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

My friend just fix that for me.

Have fun.
Reply With Quote
  #13  
Old 11 Dec 2004, 16:39
alkahf alkahf is offline
 
Join Date: Mar 2004
Smile

Thankyou wowthatnice
I'll try this change.

Regards
__________________
www.vBulletinClub.com
Reply With Quote
  #14  
Old 12 Dec 2004, 04:25
alkahf alkahf is offline
 
Join Date: Mar 2004
Question

The same problem,
Not change PM's counters.
Is it working with you wowthatnice ?
__________________
www.vBulletinClub.com
Reply With Quote
  #15  
Old 12 Dec 2004, 05:36
wowthatnice wowthatnice is offline
 
Join Date: Jan 2003
Yeah, I been test it out and it work great without any error. But what do you get? it not update at all? Let me ask him again becuase when I ask him he only take around 3 minutes to make it for me and he didn't even test it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 03:22.

Layout Options | Width: Wide Color: