While developing significant changes for our primary homepage
, that means, bringing the Tidings block from the left column to the middle part content, I have thought that it could be useful (and it actually has been requested a couple of time before by others) to expire outdated topics
, and hide
this block completely if there are no really up-to-date records.
That's why the newer version of the First page news add-on
now contains an option:
and it sets the amount of DAYS, which defines an expiration term of displayed topics. If this value is greater than 0, and if there are found no topics posted withing this amount of days, the whole block would be hidden.
This is however optional. Set it to 0 if you'd like to skip this condition, and display the topics disregarding when
they were posted (so only the total amount defined in $limit
would be taken into attention).
Available to check on our front page, I've set the default amount of days equal to 40 - so if we have nothing up within this amount of days, the first page will not contain any news block visible, and wouldn't create a feeling like nothing actual happens on miniBB - despite it does :)
The README for this add-on, and descriptions of Some options
were also updated, to give a more wider overview of how this thing should be set up and work.