The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to auto delete pms older then x time?
Its to prevent members their inbox from getting full and not emptying themselves.
So I'm looking for some sort of automation tool that will delete messages from users who don't empty their own inbox. Maybe only when their inbox is full or in general when their message is older then x time. How could I set that up? I tried to find a setting for this in the ACP but couldn't find anything. Is there a plugin for it? |
#2
|
|||
|
|||
A plugin wouldn't be difficult. It just needs to execute one query, and you could put it on one of the cleanup hooks. But I hesitate to post code that deletes from the database without a chance to do at least a little testing, and I can't do that right now.
|
Благодарность от: | ||
MistViper |
#3
|
|||
|
|||
Quote:
Just need a query that deletes PM's from send and inbox that are older then x days. Also I just need clear and understandble instructions on how to add the code. A small plugin import file would be ideal ofc |
#4
|
|||
|
|||
I'm not able to confirm this right now, but I thought there was an option in the acp through the query area to clear out old pms.
|
#5
|
|||
|
|||
It's possible. I'm always forgetting about something in there. But I looked and couldn't find anything except the ability to delete all of a user's PMs.
|
#6
|
|||
|
|||
So that means its not possible to do it?
|
#7
|
|||
|
|||
No, I just meant that I couldn't find an existing way to do it in the admincp either. But even if there is one, that wouldn't make it happen automatically (assuming that's what you meant).
|
#8
|
|||
|
|||
So what is the next step then? To achieve what I want.
|
#9
|
|||
|
|||
Oh, well, I was going to try to find time to test it, and maybe make it in to a product with options and everything. Because it takes some time to set up a test and make fake PMs, and probably adjust the timestamps to look old, etc. I guess maybe I wasn't clear, when I said I didn't have time right now, I meant I wouldn't today.
|
#10
|
|||
|
|||
That is fine I got time. I think others might have a use for this to.
Its good to know you plan on doing this though. Say in a month do you think it should be ready by then? Or is it hard to give an estimate on this? Once again thank you, can't express my gratitude enough if I haven't done so already. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|