home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FredP42" data-source="post: 484836" data-attributes="member: 91354"><p>MyScoreCenter is a plugin which displays sports results from "almost" any web sites.</p><p></p><p>Last version = 2.12.0.0 (4 May 2014) <a href="https://www.team-mediaportal.com/extensions/news-info/myscorecenter" target="_blank">Download</a></p><p>Version only compatible with MediaPortal 1.6/1.7.</p><p></p><p></p><p><strong>Important</strong> see installation note below.</p><p></p><p>[ATTACH]43390[/ATTACH][ATTACH]43391[/ATTACH][ATTACH]43392[/ATTACH]</p><p>[ATTACH]43395[/ATTACH][ATTACH]43396[/ATTACH]</p><p></p><p>The source is available on <a href="http://code.google.com/p/scorecenter/" target="_blank">GoogleCode</a>.</p><p></p><p><a href="http://code.google.com/p/scorecenter/wiki/ReleaseNotes" target="_blank">Release Notes</a></p><p></p><p><strong>Installation</strong></p><p>Download the file and install the plugin, then go to MediaPortal and the plugin will download the default configuration file from the online web site.</p><p></p><p><strong>Upgrade from 1.* to 2.0</strong></p><p>The schema of the settings has change in version 2.0 to introduce type of scores.</p><p>Don't panic the settings will not be erased since the settings file for version 2 is MyScoreCenter2.Settings.xml.</p><p>You will need to re-enter your settings with the configuration screen.</p><p>Open the old file settings with a text editor MyScoreCenter.Settings.xml and re-use the settings (URL, XPath expression ...) to create new scores (use the Generic type which correspond to the old format).</p><p></p><p>See instructions on the <a href="http://code.google.com/p/scorecenter/wiki/HowToUpgradeSettingsToV2" target="_blank">wiki page</a>.</p><p></p><p></p><p><strong>Description</strong></p><p>Since it was difficult to find a site which can give results for all sports, I decided to create a very generic plugin.</p><p>The principle is very simple, the plugin just renders HTML tables : a score is represented by an URL and an XPath expression to find the table in the page (see: <a href="http://www.w3schools.com/xpath/default.asp" target="_blank">XPath Tutorial</a> to learn about Xpath).</p><p>It works for almost everything displayed in a table.</p><p></p><p>The scores are displayed by category (or sport) and then by league.</p><p>For example: football (or soccer) is a category then each national championship is a league and then for a league you can display the current standings, the last results and the top scorer.</p><p>But this is totally configurable, and you can for example decide to display results by countries, then by sports...</p><p></p><p>The default configuration file contains definitions for many competitions, including:</p><ul> <li data-xf-list-type="ul">Football: all the major championships (29 leagues) + champions league and world cup qualifications,</li> <li data-xf-list-type="ul">Basketball: NBA (regular season), Euroleague</li> <li data-xf-list-type="ul">Motors: Formula 1, WRC, Nascar, Moto GP</li> <li data-xf-list-type="ul">Cycling (Tour de France, Giro, Vuelta)</li> <li data-xf-list-type="ul">Rugby: France, England, Tri Nations, SuperLeague, 6 Nations, European Cups</li> <li data-xf-list-type="ul">Tennis: ATP and WTA ranking, all grand slams (history tables)</li> <li data-xf-list-type="ul">US Football: college football and NFL standings</li> <li data-xf-list-type="ul">Baseball MLB</li> <li data-xf-list-type="ul">Cricket (ICC + last results)</li> <li data-xf-list-type="ul">Ice Hockey: NHL, DEL (Germany), France</li> <li data-xf-list-type="ul">World Records</li> <li data-xf-list-type="ul">Skiing: world cup calendar and standings</li> </ul><p>Here is a screen shot of the configuration dialog.</p><p>[ATTACH]49703[/ATTACH]</p><p></p><p>It also allows you to enter your own header row, set the size of the columns, enter rules to format the score (for example highlight your team).</p><p>When you set the size of the column, add a minus sign to align the column to the left and a plus sign to center it and nothing to align to the right.</p><p>The test button allows you to test your setting.</p><p>Note that an Xpath expression can return many tables. In this case they all of them will be displayed. So if it is not what you want be sure to give an Xpath that will return only the table you want.</p><p></p><p>For each items you can have an icon in the configuration screen.</p><p></p><p><strong>Skin controls</strong>:</p><p>There are two main controls:</p><p>the list control for the navigation</p><p>a textbox control which defines the display area and the font to use.</p><p></p><p>The following properties can be used to display names and icons:</p><ul> <li data-xf-list-type="ul"><strong>#ScoreCenter.Title</strong>: the name of the plugin,</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.Results</strong>: the current results path (ie: Level 1 > Level 2 > Level 3 ...),</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.Ico1, #ScoreCenter.Ico2, #ScoreCenter.Ico3 ...</strong>: current score icon for level n,</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.bd</strong>: the backdrop to display,</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.Source</strong>: the source (web site) of the score.</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.Live</strong>: the live status (on or off).</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.LiveOn</strong>: a flag to give the live status 0 = OFF, 1 = ON.</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.LiveIcon</strong>: the icon to display for live status.</li> <li data-xf-list-type="ul"><strong>#ScoreCenter.Round</strong>: the current round (used for scores allowing navigation through rounds).</li> </ul><p>This allows you for example to add a backdrop that matches the current sport.</p><p>Personally, I used backdrops from <a href="http://www.flash-screen.com/free-wallpaper/olympic-games-2008.html" target="_blank">Olympic Games 2008 - Free Wallpapers</a></p><p></p><p>[ATTACH]43393[/ATTACH][ATTACH]43394[/ATTACH]</p><p></p><p></p><p>Any critics on the plugin or the skin implementation are welcome.</p></blockquote><p></p>
[QUOTE="FredP42, post: 484836, member: 91354"] MyScoreCenter is a plugin which displays sports results from "almost" any web sites. Last version = 2.12.0.0 (4 May 2014) [URL='https://www.team-mediaportal.com/extensions/news-info/myscorecenter']Download[/URL] Version only compatible with MediaPortal 1.6/1.7. [B]Important[/B] see installation note below. [ATTACH]43390[/ATTACH][ATTACH]43391[/ATTACH][ATTACH]43392[/ATTACH] [ATTACH]43395[/ATTACH][ATTACH]43396[/ATTACH] The source is available on [URL='http://code.google.com/p/scorecenter/']GoogleCode[/URL]. [URL='http://code.google.com/p/scorecenter/wiki/ReleaseNotes']Release Notes[/URL] [B]Installation[/B] Download the file and install the plugin, then go to MediaPortal and the plugin will download the default configuration file from the online web site. [B]Upgrade from 1.* to 2.0[/B] The schema of the settings has change in version 2.0 to introduce type of scores. Don't panic the settings will not be erased since the settings file for version 2 is MyScoreCenter2.Settings.xml. You will need to re-enter your settings with the configuration screen. Open the old file settings with a text editor MyScoreCenter.Settings.xml and re-use the settings (URL, XPath expression ...) to create new scores (use the Generic type which correspond to the old format). See instructions on the [URL='http://code.google.com/p/scorecenter/wiki/HowToUpgradeSettingsToV2']wiki page[/URL]. [B]Description[/B] Since it was difficult to find a site which can give results for all sports, I decided to create a very generic plugin. The principle is very simple, the plugin just renders HTML tables : a score is represented by an URL and an XPath expression to find the table in the page (see: [URL='http://www.w3schools.com/xpath/default.asp']XPath Tutorial[/URL] to learn about Xpath). It works for almost everything displayed in a table. The scores are displayed by category (or sport) and then by league. For example: football (or soccer) is a category then each national championship is a league and then for a league you can display the current standings, the last results and the top scorer. But this is totally configurable, and you can for example decide to display results by countries, then by sports... The default configuration file contains definitions for many competitions, including: [LIST] [*]Football: all the major championships (29 leagues) + champions league and world cup qualifications, [*]Basketball: NBA (regular season), Euroleague [*]Motors: Formula 1, WRC, Nascar, Moto GP [*]Cycling (Tour de France, Giro, Vuelta) [*]Rugby: France, England, Tri Nations, SuperLeague, 6 Nations, European Cups [*]Tennis: ATP and WTA ranking, all grand slams (history tables) [*]US Football: college football and NFL standings [*]Baseball MLB [*]Cricket (ICC + last results) [*]Ice Hockey: NHL, DEL (Germany), France [*]World Records [*]Skiing: world cup calendar and standings [/LIST] Here is a screen shot of the configuration dialog. [ATTACH]49703[/ATTACH] It also allows you to enter your own header row, set the size of the columns, enter rules to format the score (for example highlight your team). When you set the size of the column, add a minus sign to align the column to the left and a plus sign to center it and nothing to align to the right. The test button allows you to test your setting. Note that an Xpath expression can return many tables. In this case they all of them will be displayed. So if it is not what you want be sure to give an Xpath that will return only the table you want. For each items you can have an icon in the configuration screen. [B]Skin controls[/B]: There are two main controls: the list control for the navigation a textbox control which defines the display area and the font to use. The following properties can be used to display names and icons: [LIST] [*][B]#ScoreCenter.Title[/B]: the name of the plugin, [*][B]#ScoreCenter.Results[/B]: the current results path (ie: Level 1 > Level 2 > Level 3 ...), [*][B]#ScoreCenter.Ico1, #ScoreCenter.Ico2, #ScoreCenter.Ico3 ...[/B]: current score icon for level n, [*][B]#ScoreCenter.bd[/B]: the backdrop to display, [*][B]#ScoreCenter.Source[/B]: the source (web site) of the score. [*][B]#ScoreCenter.Live[/B]: the live status (on or off). [*][B]#ScoreCenter.LiveOn[/B]: a flag to give the live status 0 = OFF, 1 = ON. [*][B]#ScoreCenter.LiveIcon[/B]: the icon to display for live status. [*][B]#ScoreCenter.Round[/B]: the current round (used for scores allowing navigation through rounds). [/LIST] This allows you for example to add a backdrop that matches the current sport. Personally, I used backdrops from [URL='http://www.flash-screen.com/free-wallpaper/olympic-games-2008.html']Olympic Games 2008 - Free Wallpapers[/URL] [ATTACH]43393[/ATTACH][ATTACH]43394[/ATTACH] Any critics on the plugin or the skin implementation are welcome. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7)
Contact us
RSS
Top
Bottom