hi everyone,
My question is : can i program the publications of articles several weeks in advance by giving them date in the future ?
The purpose is to continue publishing when i am in holidays.
thx
Yes you can. If you set the date to a date in the future, that article won't be displayed on your site until that date is reached.
that's great, thank you for our work.
Hi, programing publication of the articles on my site work perfectly when i put a future date in my article but i've just see that the rss flux publish them automaticaly, without taking in account the real date. For exemple i've just program all the articles i want to publish in august with the futures dates, the site "waits" before publishing them, but the problem is all the articles are already in the rss flux. Do you have a solution to solve this ?
thx
You've found a bug I overlooked. If you edit rss.php
, around line 75~ you'll see this line of code
$sql .= "SELECT storyid FROM " . NEWS_GROUPCATS . " WHERE type = 'news' AND catid IN (SELECT catid FROM " . NEWS_GROUPCATS . " WHERE type = 'rss' AND storyid = ?) ) AND archived = '0' ORDER BY timestamp DESC LIMIT 0, $rssamount";
If you change it to the following
$sql .= "SELECT storyid FROM " . NEWS_GROUPCATS . " WHERE type = 'news' AND catid IN (SELECT catid FROM " . NEWS_GROUPCATS . " WHERE type = 'rss' AND storyid = ?) ) AND archived = '0' AND timestamp <= '" . time() . "ORDER BY timestamp DESC LIMIT 0, $rssamount";
The RSS feeds should now show the correct articles.
hi,
thx for the answer, i try your solution, the result is the rss flux show now no aticles at all, just the title of the flux.
You can see it there http://nevil.fr/news/rss.php?feed=Nevil-news
Is there something to do ?
thx
Whoops, typo on my part. Try this instead
$sql .= "SELECT storyid FROM " . NEWS_GROUPCATS . " WHERE type = 'news' AND catid IN (SELECT catid FROM " . NEWS_GROUPCATS . " WHERE type = 'rss' AND storyid = ?) ) AND archived = '0' AND timestamp <= '" . time() . "' ORDER BY timestamp DESC LIMIT 0, $rssamount";
great, it works
thx a lot.