Previous Thread
Next Thread
Print Thread
Rate Thread
#233270 01/14/2003 1:37 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I'd like to have one of my forums setup to purge messages every 30 days. Does anyone know if this also purges attachments?

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I used to. It should still do it. But it's something I don't use... lol

Anyone else?

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
I was thinking the same thing... only the board was set to purge every 60 days, and now I have an image folder with hundreds of images dating all the way back to 2001??


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Dave posted a utility for getting rid of orphans... I used it.... it worked well for me and got rid of thousands of orphan files.

I'll try and find it for you. Might need to be updated.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
6.2 doexpire.php and doexpire.pl both contain code to delete the attachments. I don't recall if it's actually been tested, but that would be easy enough to do with a test forum.

It's possible that earlier versions didn't delete the attachments.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Michael.... and Mike,

Check out this thread.

The script JustDave worked up worked great for me.

I had used threads for my photo forums before getting Photopost. It was an older version of threads. We reposted all pics to photopost... and when I deleted the threads forums... a couple of permission errors went by, and the forums were gone, but all the files remained, intermingled with other files.

I had like 3600 orphan files.

Hope this helps.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I made a change to the doexpire.php script to remove only posts with attachments (and their attachments) after the expiration date. (just added a B_File !="" to the query).

Basically I have a picture posting forum that people are uploading images to and because of the volume of posts (and uploads), I wanted to purge attachments after 30 days.

Tested and seems to work (using 6.1.1).

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmm....

You ought to try using photo post.

LOL


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)