XF 2.3 How to prevent Feature again after Unfeature content before a certain number of days have passed?

macroforum

Active member
I am trying to create my first addon even though I have very little programming knowledge.
I am asking for your advice.
What is the best logical way to prevent content from being set as Featured again after it has been set as Unfeatured, generating an error message that displays the time left before the content can be set as Featured again?
 
When a feature is removed we delete any corresponding records. You'd have to store the unfeature date in the database somewhere and check that.
 
Back
Top Bottom