The Spirit of British SimRacing   

Read this first!    
 
nonchalant-unilinear
April 19, 2024, 02:46:42 AM +0100 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Series
Recent
Forthcoming
News: Upcoming Events are as follows: 1 - RRE/AC/ACC Sunday - No event ; 2 - GTL Monday - No event 3 - AC Wed - No event 4 - RRE Thursday - No event

RACE SERIES KEY A19=Assetto Corsa, E10=Raceroom Experience, L23=UKGTL GT Legends, LN2=Legacy NoGrip GT Legends, LNE1=Legacy NoGrip GT Legends Endurance races
 
  Start Here      Home   Help Search Calendar Login Register     LM2 Replays Rules Links Circuits Teams  
Pages: [1] 2
  Print  
Author Topic: Team RSS feed  (Read 13261 times)
0 Members and 1 Guest are viewing this topic.
Dave 'Gizmo' Gymer
Director General
SimRacing.org.uk Staff
Hero Member
****
Posts: 15100


Currum auriga quasi furtivum


View Profile WWW
« 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 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. Wink
« Last Edit: February 13, 2007, 02:22:17 PM +0000 by Simon 'Shark' Gymer » Logged

To finish first, first you must have fins.
picnic
Director, Servers
SimRacing.org.uk Staff
Hero Member
****
Posts: 8114



View Profile
« Reply #1 on: June 18, 2006, 11:17:55 AM +0100 »

Nice feature Dave  Smiley
Logged

Simon Gymer
Former Moderators
Hero Member
**
Posts: 9021

Cool Bite


View Profile WWW
« Reply #2 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?
Logged

Intel I7-4790K @ 4.0Ghz
MSI NVidia 2080 Ti Gaming X TRIO
16GB DDR3 2400Mhz
3x 1920x1080 27" monitors
Thrustmaster T300GTE Wheel + T3PA Pro Pedals
greg130
Former Moderators
Full Member
**
Posts: 869



View Profile WWW
« Reply #3 on: June 18, 2006, 11:40:25 AM +0100 »

Nice one Dave, thanks.
Logged

28CDM : http://www.28cd.co.uk

GtrRank name = Greg130

" border="0
" border="0
Dave 'Gizmo' Gymer
Director General
SimRacing.org.uk Staff
Hero Member
****
Posts: 15100


Currum auriga quasi furtivum


View Profile WWW
« Reply #4 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. 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?
Logged

To finish first, first you must have fins.
Dave 'Gizmo' Gymer
Director General
SimRacing.org.uk Staff
Hero Member
****
Posts: 15100


Currum auriga quasi furtivum


View Profile WWW
« Reply #5 on: June 18, 2006, 12:00:29 PM +0100 »

RIght, as a bit of an experiment (like everything on SRou Tongue) 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. Roll Eyes
Logged

To finish first, first you must have fins.
greg130
Former Moderators
Full Member
**
Posts: 869



View Profile WWW
« Reply #6 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 ?
Logged

28CDM : http://www.28cd.co.uk

GtrRank name = Greg130

" border="0
" border="0
greg130
Former Moderators
Full Member
**
Posts: 869



View Profile WWW
« Reply #7 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 ?
Logged

28CDM : http://www.28cd.co.uk

GtrRank name = Greg130

" border="0
" border="0
picnic
Director, Servers
SimRacing.org.uk Staff
Hero Member
****
Posts: 8114



View Profile
« Reply #8 on: June 18, 2006, 01:38:27 PM +0100 »

My guess is https://www.simracing.org.uk/lm2/rss.php?team=12 Greg
Logged

greg130
Former Moderators
Full Member
**
Posts: 869



View Profile WWW
« Reply #9 on: June 18, 2006, 01:59:11 PM +0100 »

Yep worked, thanks mate. Grin Grin Grin Grin Grin
Logged

28CDM : http://www.28cd.co.uk

GtrRank name = Greg130

" border="0
" border="0
Dave 'Gizmo' Gymer
Director General
SimRacing.org.uk Staff
Hero Member
****
Posts: 15100


Currum auriga quasi furtivum


View Profile WWW
« Reply #10 on: June 18, 2006, 02:10:01 PM +0100 »

I've since found another couple of bugs in the MkPortal RSS reader. Angry I regret ever deciding to use a "proper" portal instead of making my own template system. :'(
Logged

To finish first, first you must have fins.
greg130
Former Moderators
Full Member
**
Posts: 869



View Profile WWW
« Reply #11 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.
Logged

28CDM : http://www.28cd.co.uk

GtrRank name = Greg130

" border="0
" border="0
Dave 'Gizmo' Gymer
Director General
SimRacing.org.uk Staff
Hero Member
****
Posts: 15100


Currum auriga quasi furtivum


View Profile WWW
« Reply #12 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.
Logged

To finish first, first you must have fins.
Truetom
Hero Member
*****
Posts: 5227

Ljubljana, Slovenia


View Profile
« Reply #13 on: June 19, 2006, 04:22:16 PM +0100 »

Too bad you missed UKGTR Endurance Season 3, NGT - pos. 1, points 24.  Wink

Now and never again.  Grin

TT
Logged
greg130
Former Moderators
Full Member
**
Posts: 869



View Profile WWW
« Reply #14 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  Wink
Logged

28CDM : http://www.28cd.co.uk

GtrRank name = Greg130

" border="0
" border="0
Pages: [1] 2
  Print  
 
Jump to:  

Hosted by DaveGymer.com
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.539 seconds with 24 queries.