Hi Michael,
great mod, i'm using a self-modded 1.x version for example to post news in a blog style.
V.2.0 features looking great.
To reduce server-load i'm caching the output of your news-script with a simple php-script, that stores the output and - once called - compares the file-date of this written output with the actual time. (I don't think that news have to be actual each and every minute ...)
Of course i have some wishes
1. outsourcing of settings - i'm using this in my modded news.mod with a new parameter -settings, because i want to be able to execute your news.pl in several ways with different parameters (blog-style, generating newsletter-links to threads and so on).
if ($INFO{'settings'} ne "" && -e $INFO{'settings'}) {
require $INFO{'settings'};
} else {
# default settings ...
$display = 10; # number of news to display
$sort_news_by_last_comment = 0; # 0/1 - if set to 1, news will be sorted by last comment, not by creation time
$max_number_of_words = 500; # set to 0 to disable cut-off of long messages
$only_first_paragraph = 0; # 0/1 - if set to 1, only the first paragraph will be displayed. Set to 0 to disable (note: this will disable $max_number_of_words)
$link_target = "_top"; # if set to "_blank", all links will open in a new window. Leave empty to let links open in the current window
$show_older_news_link = 0; # 0/1 - set to 1 to display a link to the news board at the bottom, 0 to disable
$older_news_link = qq~<center><a href="$scripturl?board=$currentboard" target="$link_target"><b>Older News</b></a></center>~;
}
Maybe you could alter the static cache-filename to the optional settings-filename in your V.2.xx-mod, if this multiple-usage-feature interferes the principle of your cache-system (dunno).
2. option to write news-mod output to file (so one can manage the caching self or manipulate the output in other ways)