![]() |
Prune PMs older than 30 days
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. |
mmm.. this hack may come in handy ;) thanks GenSec for sharing ;)
|
This hack will be great for the Arcade mod - Most members never delete their old challenge pms-
|
He rock's
|
Nice hack :)
|
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 |
Run the cron job :)
|
Quote:
It is deleted PMs but the PM numbers count in Nav Bar not change :)!! Do you see?:) Regards |
This is great!.......Can't wait for more cron jobs to become available for download...
Thanks! |
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? |
Very useful .. thanks for the hack.
Clicked install |
Quote:
PHP Code:
PHP Code:
Have fun. |
Thankyou wowthatnice
I'll try this change. Regards:) |
The same problem,
Not change PM's counters. Is it working with you wowthatnice ? |
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.
|
Please let us know. I would like to install this as well.
|
Great work!! Thanks!!
|
Quote:
|
Quote:
thanks again, -Jason |
Quote:
PHP Code:
PHP Code:
|
hummm. ok.
|
Why this does not keep a log? I see G. was here but doesnt reply. I was intrested in this whole heartly.
No thanks. Happy holidays. |
Quote:
|
have the problems for this hack been fixed ?
Would be a great addition ( in fact should come standard in vb ) :D |
I have installed this a few months ago...And I have yet to see the cron job do its job! yet I get no errors on this...Why...
i.e.: I have had 157 PM's and I still have 157 PM's after a month and 1/2...the cron did not work... |
OK, Is there a way to change the 30 days to 15 days and how?
|
Hi,
Quote:
in this post, the User change the Time to 180 days U must be change the timenow variable to your time :) |
Thank You!!!!
|
Quote:
Private Messages: 0 Unread, Total 916. After installed hack: The same numbers: Private Messages: 0 Unread, Total 916. But I have now only 573 PMs:). How fix it ? |
306 - clicks install
|
If there is an equivalant mod like this for vB 3.5 someone please point me in the right direction.
Thanks. |
yes, please me too :) ;)
|
I am searching for such a sheduled task for vBulletin 3.6
Will this work? |
Any equivalant Hack for 3.6 existing? :)
|
Quote:
|
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|