I'm having two problems with the 4.6 RSS Feed. One is that the date appearing in the "PubDate" tags is not the date that the article was approved by the moderators (as it is on the site itself), but rather the date the article was originally submitted. How do I make it the date the article was approved?
Two, when I post an article on the site and set it to only be visible to certain users, it still appears in the RSS feed, which defeats the whole point of making it exclusive. How can I make the RSS feed not show articles that are supposed to be invisible to anonymous users?
Thank you so much in advance,
Eric Rosenfield
http://www.wetasphalt.com
Comments
Does no one have any advice
Does no one have any advice on this?
Guess not.
Guess not.
hmmm
this sounds like a pretty important feature or bug... heh heh...
restricted content being blasted out across the net to anyone who wants the RSS feed...
yikes...
that is what is happening right?
Yes, that's exactly what's
Yes, that's exactly what's happening. And the dates are wrong.
Okay, I solved the date
Okay, I solved the date problem thusly: It wasn't that it was showing when the items had been submitted rather than published, it was that it was formatting the date in the rss feed differently than on the site. So, in the node.module I changed this line:
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created))));
to this:
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => format_date($item->created,'custom','D, d M Y H:i:s O'))));
Which matches the date on the front page of the site, but in the RFC 2822 format used by the RSS feed.
I still can't figure out how to solve the anonymous user problem, however.
Simple Access will keep nodes from RSS
Simple Access will keep nodes from RSS. You can find it here:
http://drupal.org/project/simple_access