miniBB ® 


Support Forums
 | Start | Register | Search | Statistics | File Bank | Manual |
News miniBB Support Forums / News /  

First page news add-on update: expiring outdated topics

Author Paul
Lead Developer 
#1 | Posted: 27 Aug 2019 14:10 
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 in addon_1stpagenews.php were also updated, to give a more wider overview of how this thing should be set up and work.

News miniBB Support Forums / News /
 First page news add-on update: expiring outdated topics
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.

Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.


miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.