SimRacing.org.uk

SRou => Announcements => Topic started by: Dave 'Gizmo' Gymer on June 18, 2006, 11:03:38 AM +0100



Title: Team RSS feed
Post by: Dave 'Gizmo' Gymer on June 18, 2006, 11:03:38 AM +0100
For those with their own team websites, I've developed a simple RSS feed for each team which gives a brief summary of the team's recents results which you can include automagically on your own site.

To get the URL for the feed, click on your team name on the Teams page (https://www.simracing.org.uk/index.php?ind=lm2&teams=null) and then on the RSS button next to the Statistics title.

I'll be adding more data, like championship positions, to the feed as I work out what and how. ;)


Title: Re: Team RSS feed
Post by: picnic on June 18, 2006, 11:17:55 AM +0100
Nice feature Dave  :)


Title: Re: Team RSS feed
Post by: Simon Gymer on June 18, 2006, 11:35:45 AM +0100
Added it to the Team Shark website.

Formatting is a bit odd, not very readable. Is there someway to improve that?


Title: Re: Team RSS feed
Post by: greg130 on June 18, 2006, 11:40:25 AM +0100
Nice one Dave, thanks.


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on June 18, 2006, 11:48:38 AM +0100
Added it to the Team Shark website.

Formatting is a bit odd, not very readable. Is there someway to improve that?

It's not really possible to do anything more than very basic formatting because most readers limit the amount of text in the description tag quite severely. Looking at the Team Shark site it's not doing a particularly good job of formatting the feed; check out the difference in formatting from the UKrF test page (https://www.simracing.org.uk/index.php?ind=lm2&group=16). It would appear that Mambo doesn't really cope very well with the title element which was new in RSS 2.0.

Is there a need for RSS 0.92 support I wonder?


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on June 18, 2006, 12:00:29 PM +0100
RIght, as a bit of an experiment (like everything on SRou :P) I've added an RSS 0.92 mode. Add "&rss=0.92" to the end of the URL, so for Team Shark use https://www.simracing.org.uk/lm2/rss.php?team=1&rss=0.92. That chops out the title link and title of each item.

The MkPortal RSS reader has its own problem in that the title doesn't work unless the link element is also present. ::)


Title: Re: Team RSS feed
Post by: greg130 on June 18, 2006, 12:56:04 PM +0100
Cant get the damn thing to work.
Correct me if i'm wrong.
Tried a new php block, no good.
Tried a new html block, no good.
Both of these just display all the xml version text ect.

Created a new .rss in the cache folder and pointed the original .rss block to it.  Great worked for about 30 secs then defaulted to reuters news feed.

What am I doing wrong Dave ?


Title: Re: Team RSS feed
Post by: greg130 on June 18, 2006, 01:25:56 PM +0100
Ok might have realised where i'm going wrong.
In the portal cp there are some options for rss, this was pointing to reuters for the feed.
I have changed it too :
https://www.simracing.org.uk/index.php?ind=lm2&team=12

However all it gives me is a pop up to the team page, where should it point for the feed ?


Title: Re: Team RSS feed
Post by: picnic on June 18, 2006, 01:38:27 PM +0100
My guess is https://www.simracing.org.uk/lm2/rss.php?team=12 Greg


Title: Re: Team RSS feed
Post by: greg130 on June 18, 2006, 01:59:11 PM +0100
Yep worked, thanks mate. ;D ;D ;D ;D ;D


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on June 18, 2006, 02:10:01 PM +0100
I've since found another couple of bugs in the MkPortal RSS reader. >:( I regret ever deciding to use a "proper" portal instead of making my own template system. :'(


Title: Re: Team RSS feed
Post by: greg130 on June 18, 2006, 03:31:55 PM +0100
Yeah i've found it a bit buggy, sometimes it works as advertised sometimes not, generally I put it down to my incompetence, lol.


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on June 19, 2006, 03:13:00 PM +0100
Okay, new version up now which includes the last few championship positions and points and the team immediately above and below the one in question.


Title: Re: Team RSS feed
Post by: Truetom on June 19, 2006, 04:22:16 PM +0100
Too bad you missed UKGTR Endurance Season 3, NGT - pos. 1, points 24.  ;)

Now and never again.  ;D

TT


Title: Re: Team RSS feed
Post by: greg130 on June 19, 2006, 05:25:28 PM +0100
Top job dave, much appreciated.  Now all youve got to do sort out is the team drivers leaderboard  ;)


Title: Re: Team RSS feed
Post by: Truetom on June 19, 2006, 05:46:42 PM +0100
You gotta have special witts to be able to make magic as you do Dave. Me I'm just happy to consume it all. Now I know why joined and why I stay in UKGTR. Top job, Dave, as allways.  :notworthy:

TT

P.S. Never mind my adverse posts. I'm just a grumpy old crow.  ;)



Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on June 20, 2006, 02:22:08 PM +0100
Now all youve got to do sort out is the team drivers leaderboard  ;)

Guess what. ;)


Title: Re: Team RSS feed
Post by: popabawa on February 13, 2007, 03:37:55 PM +0000
Dave, I'm not sure if you are aware of this but the team RSS feed as well as the calendar RSS feed are down.

I'm getting the following error;
Code:
Fatal error: Call to undefined function: db_query() in /home2/dmwbancj/public_html/simracing/lm2/include.php on line 121


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on February 14, 2007, 07:45:12 AM +0000
Both fixed, along with the Google Earth KML file generation. Thanks for the report.


Title: Re: Team RSS feed
Post by: popabawa on February 14, 2007, 08:27:10 AM +0000
Thanks Dave, all working again :)


Title: Re: Team RSS feed
Post by: Jure on February 18, 2007, 11:54:23 AM +0000
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.36 Server at simracing.ukgtr.org Port 80


------------------------

got this message last week (two days in a row, randomly, forgot to notify u)


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on February 18, 2007, 12:02:23 PM +0000
got this message last week (two days in a row, randomly, forgot to notify u)

The server had a wobble last week when the silly sods 'upgraded' MySQL without any warning.


Title: Re: Team RSS feed
Post by: Dave 'Gizmo' Gymer on May 25, 2009, 04:31:23 PM +0100
please give me some specifics - what browser are you using version number too please and whats the name of your RSS Feed Reader?

WTF?!