If you are lazy and didn't read that post I'll quote Richard's words so you see what this mod do:
Would it not make more sense to use the date as a trigger to release the news item on that date and keep it hidden from view until then? For instance if I am on holidays for Easter I can already write a Happy Easter message now and not worry about forgetting it later. This way the message is hidden and show up automatically on the date set for Easter.
To acheive that simply open your lib.news.php and ext.news.php and replace all instances of:
active='1'
with:
active='1' AND postdate < '" . time(). "'
Thank you Richard :)
UPD from Idealists
Also need to edit /includes/hp/hp.sitemap.php find the first active='1' (which should be in the News section of the sitemap) and replace it with:
active='1' AND postdate < '" . time(). "'





Comments
idealists
On that note, I'm heading to beach house this weekend, woot!
richardsut
Thanks to all who put their brains together for finding a solution to this.
Richard a.k.a. Little Moosie
radioact
gugu
idealists
active='1' AND postdate < '" . time(). "'
Log in to leave a comment