![]() |
When forums are set to show only message threads that are new or changed during the last 5 days, often a reader is shown an empty table on account of there being no new or changed message threads during the last 5 days.
I wanted to be able to help out the newbie users by displaying a message that told them what the "problem" is, and how to fix it (namely, adjust the lookback period upwards, to view message threads that are new or changed during the last 10 days, etc.). In forumthread.php, find this: Code:
} else { Code:
} else { Then go to the forumdisplay template and drop $noresults into an appropriate place -- I just changed "$pagenav" to "$pagenav$noresults" and the message seems to drop into the results table in the right place when there are no results (message threads new or changed) to display. Sample (link to a quiet message board, which probably has no new or changed messages during the last 5 days): http://benefitsboards.net/forumdispl...10&daysprune=5 |
Very nice. I have been looking to add something to tis effect since my UBB. Thanks.
|
All times are GMT. The time now is 10:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|