Quote:
Originally Posted by Michael Morris
Just when you think everything's fine the file goes haywire when the month wraps over. New version uploaded. This one doesn't rely on the MySQL Unix Timestamp function but instead uses strtotime(); to find the UNIX timestamp for the start of each of the last 8 days (including today).
|
How difficult would it be to turn this into a weekly news digest?
I tried this:
PHP Code:
$timespan = strtotime('12:00 AM 2 weeks ago');
construct_newsdays();
And also changed the new query to:
PHP Code:
WHERE thread.dateline>$timespan AND thread.forumid IN($vba_options[portal_news_forumid])
AND thread.visible = 1 AND thread.open != 10 $notdeleted
But it doesn't work it is still showing digests from yesterday and today (I installed it yesterday)
**It also seems to be showing them in the wrong order (yesterday's first followed by today's underneath***
I would like it to only display one digest at a time, updated daily, which includes all news posts from the last X number of days (instead of one digest a day displaying just items from that day) is that easily possible?