Recent Topics

1 Apr 27, 2009 16:07    

My b2evolution Version: Not Entered

Hello!

I tried the search but nothing came up with my search terms.
I have users trying to update the rss feed every minute, this is causing some traffic as well as the stats are way too high.

So someone told me I had to edit my RSS Feed and enter something like an UpdatePeriod so my blog would only "allow" an rss update like every 6 hours or so.

I found one thread in this forums via google but it was from 2005 so i thought i'd rather open a new thread.

Would be very nice if someone could help me here.

Thank you!

2 Apr 27, 2009 18:28

Your blog will "allow" every hit it gets, an ignorant RSS reader is an ignorant RSS reader eh? ;)

¥

3 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 Apr 27, 2009 19:09

Well, you can certainly try, you'd need to add that to /skins/_rss2/index.main.php ( and /skins/_atom/index.main.php ) and we'll hope for the best eh? :D

ohhhh, and comments.main.php ( in both folders )

¥

5 Apr 27, 2009 19:40

I'll give it a shot
thanks

6 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 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 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 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 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>

¥


Form is loading...