[XASECO] Plugin RSS Reader

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

[XASECO] Plugin RSS Reader

Post by nouseforname » 13 Jun 2010 06:50

due to a request i just made a quick and small plugin to display rss feeds ingame. eg for worldcup news.

its not tested very much, but at least i tried different rss feed without any problems.
including show/hide function.


little config included.

Image

EDIT: latest version here

finally the download available
Download here:
http://tmf.game-host.org/pages/tools.php



have fun
Last edited by nouseforname on 16 Jun 2010 20:14, edited 5 times in total.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

User avatar
iNDEX
cyclist
cyclist
Posts: 40
Joined: 13 Jan 2008 09:58
Owned TM-games: O,SX,2xUF,²C,²V
Manialink(s): ddstylemods
Contact:

Re: [XASECO]Plugin RSS Reader

Post by iNDEX » 13 Jun 2010 07:57

nouseforname wrote:due to a request i just made a quick and small plugin to display rss feeds ingame. eg for worldcup news.

its not tested very much, but at least i tried different rss feed without any problems.

little config included.

Image

plugin.nouse.rssreader.php:

have fun
Awesome, thank you very much!
iNDEX'''
Are you looking for coppers? I´ll trade my coppers for your planets.

Amisxp
road tourist
road tourist
Posts: 81
Joined: 26 Dec 2008 10:28
Owned TM-games: TMUF
Location: Slovenia, Maribor

Re: [XASECO]Plugin RSS Reader

Post by Amisxp » 13 Jun 2010 09:49

as always ... great job :D

edit: u know what would be awesome...if u could do like a button to click and rss would appear/hide :D

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO]Plugin RSS Reader

Post by Ant » 13 Jun 2010 15:25

Fantastic man, World cup news on the server - now I do like that ! :thumbsup:

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [XASECO]Plugin RSS Reader

Post by nouseforname » 13 Jun 2010 16:33

Amisxp wrote:as always ... great job :D

edit: u know what would be awesome...if u could do like a button to click and rss would appear/hide :D

i know that F7 function would be nice, but it was just a fast thing.
maybe i will do it when i have time :)
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Amisxp
road tourist
road tourist
Posts: 81
Joined: 26 Dec 2008 10:28
Owned TM-games: TMUF
Location: Slovenia, Maribor

Re: [XASECO]Plugin RSS Reader

Post by Amisxp » 13 Jun 2010 16:36

idk about F7 options :D
but atm theres almost no room for more plugins on my server, so option with hide/show would be awesomez0r :D

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [XASECO]Plugin RSS Reader show/hide

Post by nouseforname » 13 Jun 2010 17:45

here we go, now including show/hide function

let me know if you like it :)

SNIPPED: edited first post

EDIT: little changes inside code
funny, so many like this thing but is was a quick plugin^^
Last edited by nouseforname on 14 Jun 2010 17:24, edited 3 times in total.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO]Plugin RSS Reader

Post by Ant » 13 Jun 2010 18:05

Very handy man, as always :thumbsup:

Amisxp
road tourist
road tourist
Posts: 81
Joined: 26 Dec 2008 10:28
Owned TM-games: TMUF
Location: Slovenia, Maribor

Re: [XASECO]Plugin RSS Reader

Post by Amisxp » 13 Jun 2010 19:55

:thumbsup:

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO]Plugin RSS Reader

Post by Ant » 13 Jun 2010 21:02

Just one thing though, I had to change this section

Code: Select all

Aseco::registerEvent('onStartup', array($NRR, 'startUp'));
Aseco::registerEvent('onNewChallenge', array($NRR, 'getRSSfeed'));
Aseco::registerEvent('onBeginRound', array($NRR, 'getRSSfeed'));
Aseco::registerEvent('onPlayerConnect','rssfeed_deal_with_players');
Aseco::registerEvent('onPlayerDisonnect', 'rssfeed_remove_player');
Aseco::registerEvent('onEndRace', array($NRR, 'rssfeed_ml_off'));
Aseco::registerEvent('onPlayerManialinkPageAnswer', 'rssfeed_handle_buttonclick');
to look like this

Code: Select all

Aseco::registerEvent('onStartup', array($NRR, 'startUp'));
Aseco::registerEvent('onNewChallenge', array($NRR, 'getRSSfeed'));
Aseco::registerEvent('onNewChallenge','rssfeed_deal_with_players');
Aseco::registerEvent('onBeginRound', array($NRR, 'getRSSfeed'));
Aseco::registerEvent('onBeginRound','rssfeed_deal_with_players');
Aseco::registerEvent('onPlayerConnect','rssfeed_deal_with_players');
Aseco::registerEvent('onPlayerDisonnect', 'rssfeed_remove_player');
Aseco::registerEvent('onEndRace', array($NRR, 'rssfeed_ml_off'));
Aseco::registerEvent('onPlayerManialinkPageAnswer', 'rssfeed_handle_buttonclick');
because on a new map the feed would auto hide, but it doesn't with the code like this.

dukez30
sunday driver
sunday driver
Posts: 59
Joined: 23 Aug 2008 14:26
Owned TM-games: TMU

Re: [XASECO]Plugin RSS Reader

Post by dukez30 » 13 Jun 2010 22:09

V nice :thumbsup: except one thing :/

[PHP Warning] Invalid argument supplied for foreach() on line 46 in file C:\User
s\***\Desktop\Xaseco *severname*\plugins\plugin.nouse.rssreader.php
###############################################################################

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [XASECO]Plugin RSS Reader

Post by nouseforname » 14 Jun 2010 02:22

XXX-Ant wrote:Just one thing though, I had to change this section

because on a new map the feed would auto hide, but it doesn't with the code like this.

i tested it, and for me its ok, dont know why not for u. anyway. the changed u made basically shouldnt have an influence like that.

deal_with_players only put an cconnecting login into the "show" array and then display the ml to all active players.

on begin round and newchallenge it should display both ml (show/hide) to the appropriate players. thats done with getrssfeed and the same thing is doing the news update. i dont understand the sense of your changes atm.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [XASECO]Plugin RSS Reader

Post by nouseforname » 14 Jun 2010 02:26

dukez30 wrote:V nice :thumbsup: except one thing :/

[PHP Warning] Invalid argument supplied for foreach() on line 46 in file C:\User


this means there is no data coming from the link you gave.

did you change the url?
are there any spaces before or after url?
can your server connect to the url?

anyway for the spaces issue i added a function into the code. try it
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO]Plugin RSS Reader

Post by Ant » 14 Jun 2010 04:19

nouseforname wrote:
deal_with_players only put an cconnecting login into the "show" array and then display the ml to all active players.

on begin round and newchallenge it should display both ml (show/hide) to the appropriate players. thats done with getrssfeed and the same thing is doing the news update. i dont understand the sense of your changes atm.
Well, all I can say is that before I did that, on every map change the feeds would be hidden - and after it was ok.

I also just noticed this

Code: Select all

[PHP Warning] Invalid argument supplied for foreach() on line 46 in file /home/xxx-ant/XAseco/plugins/plugin.nouse.rssreader.php
but it still works and connects to the feeds just fine.

EDIT--> With your new version, I still get that php warning - but it doesn't affect the operation of the plugin (with my edit kept in)

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [XASECO]Plugin RSS Reader

Post by scg-flighthigh » 14 Jun 2010 07:25

Really nice idea for a plugin. It works but i get the same warning on line 46.


EDIT: if i change the Url an this Feed:

http://www.dfb.de/rss/
or this
http://www.sport1.de/de_1/fussball/rss.xml

Xaseco starts without the warningmessage. :!:

Post Reply