Bulk Flagging Old Threads as Read-Only

Steve Freides

Active member
I would like to prevent users from replying on threads older than a certain date. When we began using XF in 2015, our developer flagged everything we imported as R/O.

Is there a way I can create a cron job or otherwise do this in bulk? I would, right now, like to flag all my threads whose most recent updates are December 31, 2018 and earlier, as R/O, and see how that goes, and then regularly run a new job on January 1, 2021 to flag everything whose most recent updates are December 31, 2019, and so on.

Can I do this? Or do I need the developer, who in our XF install is the person to work with things at the database level, to do this for me?

Thanks in advance.


Mr Lucky

Well-known member
You should be able to do this in ACP with batch update threads.

  1. set the date criteria
  2. Click Search
  3. Lock Threads