Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: Texan78 - toukokuu 24, 2012, 01:14:28 IP

Otsikko: Auto Delete/Prune Board
Kirjoitti: Texan78 - toukokuu 24, 2012, 01:14:28 IP
Hello, I thought I had saw something like this the other day but I can't find it so I could be wrong.

What I am looking for is something that will auto delete/prune a board after so many days. I know you can do this in the Admin panel but it is only for topics which hasn't been posted in for X number of days. I need it to delete all topics regardless in X number of days I set. Preferably by a set day.

Reason for this is a I have a testing board where users can testing things like signatures, avatars, forum functions etc. The posts are deleted every Sunday at midnight (which not actually at midnight since it has to be done manually). So looking for something that I can set up which will auto delete those posts after a set time. Any suggestions or could this be made?

-Thanks
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Arantor - toukokuu 24, 2012, 01:28:07 IP
Search for Auto Purge Old Topics.
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Texan78 - toukokuu 24, 2012, 01:49:56 IP
Looks promising, but the one thing I noticed that I can already do now in the admin panel is it says "check for topics that have not been replied to in a while". That means if a user posts something in a topic a day before it is deleted it will have to wait another 7 days based on how I have it scheduled. I am looking for something that will delete it regardless every 7 days even if it has new posts or not. So it would leave some behind if it has new posts. Am I understanding that correctly?

-Thanks
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Arantor - toukokuu 24, 2012, 02:25:23 IP
The idea behind the mod was to prune old topics, so yes, it won't delete a topic if it's had a recent post.

But why would you want to delete a topic even if it was only posted in the day before?
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Texan78 - toukokuu 24, 2012, 04:04:07 IP
Lainaus käyttäjältä: Arantor - toukokuu 24, 2012, 02:25:23 IP
But why would you want to delete a topic even if it was only posted in the day before?

As I stated in my first post I have this one board that is called "Testing Zone" the description is "Use this category to test banners, signatures, avatar's or features of this forum. Don't post anything that you don't want to lose. This board will be cleared once a week Sunday at midnight central time. " So there is nothing in there of relevance to the forum as it's just used as a testing board. So I wanted to clear it once a week and currently I have to do it manually and doesn't make sense to delete some and not others since they are all deleted once a week. Member can re-post anything but they know it will be deleted once a week. Just a way to get the forum organized and not cluttered with uses testing post. Does that make sense?

-Thanks

Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Arantor - toukokuu 24, 2012, 04:31:27 IP
It makes sense, but what you could actually do is what's done here. There is a test board here, IIRC no attachments are allowed, but members can delete anyone's post from there. Since anyone can delete posts, it is not long before it takes care of itself...
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Texan78 - toukokuu 24, 2012, 04:36:43 IP
LoL, I kind of like that idea, if enough people actually visit the board there it would self moderate itself. Still would be nice to have some kind of default method in place otherwise.
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Arantor - toukokuu 24, 2012, 04:38:50 IP
Well, this very forum is proof that it works ;)

Might be worth giving it a go, and if it doesn't work out I'll figure out how to change the mod I wrote years ago to not have that same restriction.
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Texan78 - toukokuu 24, 2012, 04:44:42 IP
Well right now the forum isn't "Officially" launched since I am doing some last minute testing and tweaking and I haven't advertised it so I don't have any members at the moment. I plan to launch it next weekend. So it would be slow at first for post to get deleted. That's why I was hoping there was something that could handle that. That one mod would be perfect if it didn't look for new posts and just deleted them regardless after X number of days. Then once it got going members could delete posts and the mod could handle what was left over.
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Arantor - toukokuu 24, 2012, 04:47:48 IP
Well, that mod was not written for your intended use, but it should be possible to change (though I suspect it will make it hard to uninstall later), but I don't have time to figure it out right now.
Otsikko: Re: Auto Delete/Prune Board
Kirjoitti: Texan78 - toukokuu 24, 2012, 07:55:01 IP
No problem, not a biggie at the moment. I will put it on my list to complete at a later time once the site gets busy and it becomes a problem. In the meantime I will just open it where members can delete posts and then set the auto prune in the Admin CP.

-Thanks