Creating a component to show last-chance warning when replying to old topics

AI-generated summary

A user, CT075, seeks help creating a component to display a last-chance warning when replying to old topics, as their current solution no longer works. They express interest in building a custom plugin but struggle with documentation. Other users suggest moderation actions like PMs or announcements, while JammyDodger recommends moving the discussion to the Development category for better support. Moin points to a similar working component as a potential reference. The thread is eventually moved to Development for further development, with a follow-up discussion linked [here](/t/add-c onfirmation-box-when-replying-to-old-topics/384483).

Hello,

I’m running a community that historically has a bit of a problem with necro-bumping threads.

I am familiar with warn_reviving_old_topic_age (and we do have it set), but it seems that many users aren’t seeing the alert. We also don’t want to institute global topic timers because there really are use cases where reviving the old thread is useful.

Our previous solution was to block posting on an “are you sure” dialog based on this component:

however, both our necro-warning and the linked component above no longer seems to work (an out-of-the-box install of the admin-warnings thread allows me to post in closed topics unimpeded).

How should I proceed? I’m not afraid of getting my hands dirty and building my own component/plugin from the ground, but I’ve been struggling to find documentation on where to start.

is this not something that can be handled through moderation? Just send a PM with warning to the people doing the necrobumping to let them know not to do that?

If it persists, you can create an announcement topic and banner it, to reinforce the policy.

I think a little added friction with a confirmation pop-up is perhaps more proportionate than going straight in with a full-on official warning. :slight_smile:

Though if certain members routinely ignore the pop-up you may still need to reach out to find out what their thinking is. They may just need a friendly nudge to realise what’s expected. :crossed_fingers:

I think if you’re looking to build your own theme component for this you may be better slipping this over to the Development category to get more eyes on it. :eyes:

I haven’t checked to see if the necro warning still shows for me, but generally the Just In Time (JIT) messages don’t show up on mobile (which is unfortunate :frowning:). And it does look like the Warn admins/tl4 when replying to closed topics theme component is marked as broken now.

Dev is not my forte, so I’m afraid I’m not going to be a world of help, but you can find the official guides in Documentation > Developer Guides.

Hopefully David fixes Warn admins/tl4 when replying to closed topics and then you can see what needs changing in your own one. :slight_smile: :crossed_fingers:

Maybe Unformatted Code Detector could work as an example for a new component. That also shows a warning when you try to post.

Thanks! I’ll check it out and see what I can do!

I went ahead and moved this to Development where it can live as you move forward with your component. Let us know how you get on!

Continues in: