Kevin Carwile

Automatically expire topics based on a forum setting

This recipe adds a custom data field to forums which can be used to make topics posted in the forum automatically expire after a set number of hours. A custom action is used to schedule the locking of the topic at the given time. This recipe could easily be tweaked to extend the scheduled lock time if the topic author re-posts or under some other condition.

Rule: Trigger scheduling custom action
  • Event: Topic has been created or updated
  • Conditions:
    • Truth Value (When topic is new only)
  • Actions:
    • Schedule automatic closing of a topic (Trigger the scheduling action)
Rule: Schedule topic expiration based on forum setting
  • Event: Action triggered: Schedule automatic closing of a topic
  • Conditions:
    • Number Value (Topic expiration setting is more than zero)
  • Actions:
    • Lock content (Lock the topic at the scheduled time)



  • Like 1
  Report Article

User Feedback

Kevin Carwile


After importing these rules, you will need to edit the permissions settings on the rules custom data field for the "Auto Expire Topic Time" to allow select member groups to see the field.

Share this comment

Link to comment
Share on other sites