News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Octoate

CPCWiki forum RSS feed

Started by Octoate, 13:29, 06 April 10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nich

Quote from: Gryzor on 07:55, 18 June 10PS2 Just read about GBCPC... what's the deal? :( When did the scene become that way?
I only learnt about this last Friday. :( Loïc, the maintainer of GBCPC, has posted a notice on the main GBCPC web site explaining the reasons behind his decision.

genesis8

I use Magpie RSS (you can download it here : http://sourceforge.net/projects/magpierss/files/), very simple to use :

require('rss_fetch.inc');
$rss = fetch_rss($url);
____________
Amstrad news site at Genesis8 Amstrad Page

Gryzor

Hm, can you do me a favor? Do you have a page online with that code? If not, can you create one and give me the url?

genesis8

____________
Amstrad news site at Genesis8 Amstrad Page

Gryzor

I see two separate errors:

The one you mentioned:
Warning: MagpieRSS: Failed to fetch http://cpcwiki.eu/forum/index.php?type=rss;action=.xml (HTTP Response: HTTP/1.0 403 Forbidden ) in /mnt/160/sda/1/7/genesis8/magpierss072/rss_fetch.inc on line 238

and, indeed
Warning</b>:  Invalid argument supplied for foreach() in <b>/mnt/160/sda/1/7/genesis8/indexwiki.php</b> on line <b>152.

I wonder what's on these lines??

genesis8

#30
As the fetch didnt work, the for each cant show the RSS data, quite normal :

foreach ($rss->items as $item) {
  $href = $item['link'];
   $title = $item['title'];
   echo "<li><a href=$href>$title</a></li>\n";
}
____________
Amstrad news site at Genesis8 Amstrad Page

Gryzor

Still looking into it.. I have asked for help in the forum's forums (ahem), let's see if anyone's got any idea.

Cheers
T

remax

While you're at it, can you set the rss feed at more than the last 5 new posts? (say at least 10)

Thank's in advance :)
Brain Radioactivity

Gryzor

That's an easy one - it's already there, and it's customizable by you; just add the following to the end of the URL you choose to parse:


;limit=xx


5 is both the default and the minimum, but you can specify, for instance:
http://cpcwiki.eu/forum/index.php?type=rss;action=.xml;limit=100

This will give you 100 posts.

And, by the way, I've upped the character limit from 255 to 350, what do you think about that?


Gryzor

#34
While we're at it:

All of the XML content is accessed via the ".xml" action...
Other   formats can be achieved by adding one of the following to the URL:
;type=atom   - Atom
;type=rdf - RDF
;type=rss - RSS   0.91
;type=rss2 - RSS 2.0

The default feed is the 5 most recent   posts:
http://cpcwiki.eu/forum/index.php?type=rss;action=.xml

There   are several "sub-actions" available to this action, specifying exactly   what to display:

Recent Posts (displays the most   recent posts that you can see)
"Sub-action": recent
Default:   Shows 5 most recent posts
Available options:
limit=x - display the   "x" most recent posts (if number is less than 5, it will display 5. If number   is larger than 255, it will display 255).
board=y - display only the   recent posts from board "y"
boards=x,y,z - display only the recent   posts from the specified boards
c=x or c=x,y,z - display only the   recent posts from boards in the specified category/categories
Example: http://cpcwiki.eu/forum/index.php?type=rss;action=.xml;sa=recent;board=72;limit=10

News   (displays the first post from the most recent topics that you can see)
"Sub-action":   news
Available options:
limit=x - display only "x" items
board=y   - display only news topics from board "y"
boards=x,y,z - display   only news topics from the specified boards
c=x or c=x,y,z - display   only news topics from boards in the specified category/categories
Example: http://cpcwiki.eu/forum/index.php?type=rss;action=.xml;
sa=news;board=72;limit=10

Members   (displays most recent members):
"Sub-action": members
Available   options:
limit=x - display only the "x" most recent members
Example:
http://cpcwiki.eu/forum/index.php?type=rss;action=.xml;sa=members;limit=10

Profile   (displays the "profile summary" data in a nice XML feed for the   specified user)
"Sub-action": profile
Required option:
u=x -   display the profile info for user whose ID is "x"
Example:
http://cpcwiki.eu/forum/index.php?type=rss;action=.xml;sa=profile;u=150

Also, have you tried using CaRP?

remax

Thanks i didn't knew that. It's perfect!

For the character limit, well, personnaly i click directly on the title to see the post here, but it can't do no harm to have a higher limit i think (eventhough of course, it is still not enough to see some post entirely, but as i said it doesn't bother me).
Brain Radioactivity

Gryzor

I think it may cause problems with some programs that aggregate feeds - like desktop widgets or IM proggies - that expect short texts, but otherwise it's ok.

Btw, I just noticed I've been talking to a different person :D Welcome then, remax (the real estate firm???)!!

remax

Thanks... well in fact remax has nothing to do with this firm. It is a contraction of two names (mine and my brother's) that i use as a nickname for ages. In france, noone knows this firm, but i learnt  about it when i first posted on forums where there are north american people, as it seems it is quite known there :D

But i'm going off topic  :P
Brain Radioactivity

genesis8

Dont ask me why, but magpie RSS code now works when the page is online, not just when I test locally on my computer. So it's now added on both english and french main page of my web site.
____________
Amstrad news site at Genesis8 Amstrad Page

Gryzor

Heheheh :D

Truth is, I tried finding some help on the forum's fora (er....), but noone had much of an idea... glad it's now working!

Grim

Not sure whether to create a new thread or necroposting. Oh well, necroposting it is! Muahaha!

I'm using the Recent Posts RSS feed but noticed it is frequently missing posts. I suspect it might be related to that other "forum grind to a halt" problem, but just in case it is something else, just reporting it here.

Gryzor

Ok, Necro Grim :D


This shouldn't happen. Even if the site went down for two weeks, assuming your RSS puller doesn't have very strict limits (like, in minutes) it shouldn't really matter... it just asks to fetch all the items since the last fetch or (in other cases) the last x items. So in both cases downtime shouldn't affect...


What RSS aggregator do you use?

Grim

I'm using FreshRSS. It's working OK on a bunch of other feeds I follow but, for some reasons, seems to be missing several posts a day on the feed here. Anyway, if the problem is on my end, I will get the candles and goat blood ready tonight! =)

Dubliner

Actually i have the same problem since forever. I use feedly.

Gryzor

Can you both give me the RSS address you're using?


Gryzor

Well, with limit=30 you're certain to miss posts when there's more of them...

Grim

The feed is fetched every hour. There are more than 30 posts / hour sometime? Darn!
I'm going to up the limit for a while. Will report back if it does not solve the missing posts issue.

Thanks!

Gryzor

Normally, no, but it could happen - some threads seem to be on fire some times with reply after reply...


Let me know how it goes after you've changed it and if it persists I'll monitor it and let's cross-check our notes!

Gryzor

Hey guys, do try the RSS icons next to each subforum at http://www.cpcwiki.eu/forum/forum/ :)

Powered by SMFPacks Menu Editor Mod