1 nechan Apr 27, 2009 16:07
3 nechan Apr 27, 2009 19:05
So there is no way to stop that with a code like this
<channel>
<sy:updatePeriod>hourly</sy:updatePeriod>
</channel>
?
4 yabba Apr 27, 2009 19:09
5 nechan Apr 27, 2009 19:40
I'll give it a shot
thanks
6 edb Apr 27, 2009 23:27
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>2</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
Not sure if it'll actually stop hits though. I get the idea it is supposed to tell a feed reader how frequently to bother reading a feed. So the question is what happens if someone tells their feed reader "go get the feeds" more frequently than your sy bits tell it to be readed? Dunno. What happens if someone's feed reader doesn't bother listening to that bit? Dunno.
You might enjoy spending some time at http://web.resource.org/rss/1.0/modules/syndication/ or http://www.feedforall.com/syndication.htm or maybe http://search.cpan.org/~sburke/XML-RSS-Timing-1.07/lib/XML/RSS/Timing.pm but probably not http://www.youtube.com/watch?v=RSsJ19sy3JI because that one is really old now.
7 nechan Apr 28, 2009 01:23
i put the code into the _rss2 files but i can't find a <channel> tag in the atom files.
do I have to put a different code into the atom files?
ok just tested it in the rss2 files. if I add the code in the channel tag, the feed doesn't work anymore
8 edb Apr 28, 2009 01:49
Atom is a very different type of feed, so it's not surprising that you can't find a channel in there. I'd have to start looking at Atom protocols to see what it might take to maybe get it done. Or perhaps you shall?
On the rss2 thing, I actually didn't test anything so I dunno. All I know is a google of sy:whateveritwas showed me a couple of links that identified you need three bits to make it work. What exactly happened when you say it didn't work? Just stopped being, or threw an error, or ... ?
I gotta go to work soon, but perhaps others will try to learn something about this and get 'er going for you.
9 nechan Apr 28, 2009 02:31
ok atom isn't that important i think.
the rss feed "stopped". so there was no error when i tried to click the rss icon in the browser, i just got a blank site where the browser tried loading something. no error message.
10 yabba Apr 28, 2009 15:37
I'm betting it threw a php error and you have errors and warnings disabled ;)
Slap that code just after this section ( which in a cool prescient evo manner already has a TimeToLive == 60 tag ;) )
<link><?php $Blog->disp( 'url', 'xml' ) ?></link>
<description><?php $Blog->disp( 'shortdesc', 'xml' ) ?></description>
<language><?php $Blog->disp( 'locale', 'xml' ) ?></language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=<?php echo $app_version ?>"/>
<ttl>60</ttl>
¥
Your blog will "allow" every hit it gets, an ignorant RSS reader is an ignorant RSS reader eh? ;)
¥