Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2003
Posts: 21
Newbie
Newbie
Offline
Joined: Feb 2003
Posts: 21
Back again taking Joshpet's advice to post this query here as well.

With Classic I could go into my Admin and delete all the old posts very easily in chronological order.

The older threads which hadn't been posted to in some time appeared one after another at the bottom of the list and it was easy as pie to go in and delete.

Threads on the other hand is terrible
The threads started the longest time ago do indeed appear at the bottom of the prunage list regardless of whether they've been posted to recently??

"Help?"

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
If you have "date slip" enabled then even old threads will rise to the top if they are replied to.

Not sure if that helps or not though.

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
You can set a chron task - doexpire.php - and it will delete threads over a certain age. I'm not sure if it goes by last replied to or if it goes by creation date. I don't delete threads because they are old. Once its up its up. So I don't know the specifics. My computer with my files is out of town right now so I can't look. You might want to read throught the doexpire.php. Don't change anything without having a back up copy though. The files pretty document what they are doing pretty well so you might read through it and decide that is what you need.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
The doexpire goes by last reply date. I use this cron to delete threads in my off-topic forum that haven't been replied to in 7 days. You can access this setting in your admin section under "Edit or Delete a forum."

Last edited by AKD96; 06/09/2003 8:39 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you are viewing them from the admin menu - using the "viewexpthreads.php" script they will be ordered by the date posted and not reply.

Backup your script first - and try this:

Open /admin/viewexpthreads.php in a text editor.

## Change this:


ORDER BY t1.B_Posted DESC


## To this:


ORDER BY t1.B_Last_Post DESC


that should do the trick - sorting by the last post to the thread. If they seem "upside down" you can do this instead:

ORDER BY t1.B_Last_Post ASC

Sponsored Links
Joined: Feb 2003
Posts: 21
Newbie
Newbie
Offline
Joined: Feb 2003
Posts: 21
Many thanks folks and especially to Joshpet - it worked a treat, many thanks.


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)