My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7) (1 Viewer)

FredP42

MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Re : Re: Re : Re: My Score Center - version 1.4.0 - 1 May 2011 (MP1.2 compatible)

    Should be part of the setting. In Russia e.g. the league stated in March.

    Yes, but for Russia the season is the current year, so no need to set a rule.
    The question is for season on two years.

    It seems that some leagues already started, so I set the changed to be July.
    So YYYY-YYYY+1 from 07/2011 to 06/2012 = 2011-2012
    from 07/2012 to 06/2013 = 2012-2013 ...

    Is there a new setting file for all the soccer leagues?
    Thanks! =)

    I updated the settings by replacing all 2010-2011 with 2011-2012 and other forms to.
    I'm looking at the scores proposed by vrm42.
     

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Re : Re: My Score Center - version 1.4.0 - 1 May 2011 (MP1.2 compatible)

    Any plan to support score localisation?
    Currently I use mixed hungarian and english titles, it looks not so nice.
    Also, it would be nice to have one more level for scores.

    Localisation is on the way.
    There will be a new langugae file score_<language_code>.xml
    This file contains two sections. The first section is based on the id of the score and the second section is more general to translate strings that are recurrent (it is even working with regex).
    I'm attaching the French version if you want to start the translation in advance.

    View attachment score_fr.xml

    Code:
    <ScoreLocalisation>
      <Strings>
        <LocString id="Motors">Auto/Moto</LocString>
        ...
      </Strings>
      <Globals>
        <LocString id="Men">Hommes</LocString>
        <LocString id="Group[\s*](?&lt;grp&gt;\.*)" isRegEx="true">Groupe ${grp}</LocString>
        ...
      </Globals>
    </ScoreLocalisation>
     

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Re : My Score Center - version 2.0.0 - 25 July 2011

    I just uploaded the new version 2.0.0. See first page for the link or use the extension manager (I hope it is working).

    Be aware that the settings structure has changed.
    The new settings is named MyScoreCenter2.Settings.xml and will not erased the previous file (MyScoreCenter.Settings.xml).

    The new main features are:
    [*] Scores now have a type : Folder, Generic, Rss or Worldfootball.
    [*] Unlimited levels.
    [*] Worldfootball can be used to define a league from worldfootball.net (see the wiki page).
    [*] Rss type will show a rss feed. For now it will just show the titles it is not yet possible to navigate to the article or picture.
    [*] Support for score translation with files languages/scores_<lang>.xml.

    I reorganise the settings. All the football scores are using worldfootball results.

    If it is needed I can explain how to convert old scores, or even provide a converter.

    I hope everything is going to work.
     

    vrm42

    Portal Pro
    April 24, 2007
    131
    28
    Home Country
    Hungary Hungary
    Re: My Score Center - version 2.0.0 - 25 July 2011

    Sounds very good. In GUI I see scores, but in config I see only first 3 levels: category (football), country, league... but I can't get the page where I can modify xpath, etc.
    Pressing TEST button offers testing scores, but where to modify them?
     

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Re : Re: My Score Center - version 2.0.0 - 25 July 2011

    Sounds very good. In GUI I see scores, but in config I see only first 3 levels: category (football), country, league... but I can't get the page where I can modify xpath, etc.
    Pressing TEST button offers testing scores, but where to modify them?

    Yes because scores with Worldfootball will automatically creates the children.

    Type = League
    => Last, Next, Standings, Top Scorer, Archives
    + if details is not empty it will add a standings for each elements (separated with ';') check USA/MLS

    Type = Cup
    => Last, Archives
    + if details is not empty add for each elements (separated by ',') a score where url = worldfootball_url + '-' + elts
    The element needs to be found on worldfootball.net for the different rounds : viertelfinale, halbfinale. check France/Coupe de la ligue
    Examples are given by the combo at the end (I'm really lazy :))

    Type = Tournament
    => first elements of details gives the groups (ex:abcd) then same as cup it adds the rounds. Check UEFA champ league
    + archives and top scorer
     

    vrm42

    Portal Pro
    April 24, 2007
    131
    28
    Home Country
    Hungary Hungary
    Re: My Score Center - version 2.0.0 - 25 July 2011

    I see. Well, 'Last results', 'Next round' and 'History' don't work for Hungary, NB1.

    How can I add for example 'Top scorers history' to League type scores?
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,643
    775
    Göteborg
    Home Country
    Sweden Sweden
    Re: My Score Center - version 2.0.0 - 25 July 2011

    Football > UEFA > Euro 2012 doesn't look right. Will you help us fix it? :D
     

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Re : Re: My Score Center - version 2.0.0 - 25 July 2011

    I see. Well, 'Last results', 'Next round' and 'History' don't work for Hungary, NB1.

    How can I add for example 'Top scorers history' to League type scores?
    Shoot they are using two different URLs for NB1: opt-liga and monicomp-liga
    OTP Liga 2011/2012
    OTP Liga 2011/2012 > 2. Round
    I'm investigating.

    For the top scorer list, well you can create a new score with the url.
    Then edit the setting file manually with a text editor and change the parent to be the worldfootball score. Actually it is not possible to add children to a WF score but I will change that.
    OR you can wait for the next version, where I will add the top scorer history to the template.

    Football > UEFA > Euro 2012 doesn't look right. Will you help us fix it? :D
    I got a little carried away when I replaced all season 2010-2011 by the tag {YYYY-YYYY+1} this one shouldn't have been modified.
    Fixed in the online settings (reopen the plugin in MP).
     

    vrm42

    Portal Pro
    April 24, 2007
    131
    28
    Home Country
    Hungary Hungary
    Re: My Score Center - version 2.0.0 - 25 July 2011

    Yeah, monicomp was last year. This year is OTP. It depends on the sponsor.
    Next year there will be a new sponsor, new name, new url :)

    This is how to add a child score, if anyone interested. Red is what to change.
    Code:
     <Score Id="b4881fc7-dd3b-489b-a49f-6a65ccf391ec" Parent="[COLOR="Red"]1c212cba-3e91-4e69-9464-50c9a3d2a4f1[/COLOR]">
          <Name>Gólkirályok</Name>
          <Image>Misc\score</Image>
    	  <Url>http://hun.worldfootball.net/torschuetzenkoenige/hun-otp-liga/</Url>
          <XPath>//table[@class='standard_tabelle']</XPath>
          <Element>0</Element>
          <Headers>Év,,Gólkirály,, Csapat, Lőtt gól</Headers>
          <Sizes>-9,0,-17,0,-20,8,10</Sizes>
          <Skip>1</Skip>
         </Score>

    Tested RSS, works great. Can't wait to see when "jump to article" will work :)

    I just played a little with localisations, it also works well. I even can localize Countries.
    score_<lang>.xml is just a template, you need to add every strings. It is case sensitive!

    Good job, Fred! :D
     

    stdly

    MP Donator
  • Premium Supporter
  • April 19, 2008
    238
    41
    Home Country
    Canada Canada
    Re: Re : My Score Center - version 2.0.0 - 25 July 2011

    If it is needed I can explain how to convert old scores, or even provide a converter.

    Thanks for the update good stuff!

    I would like to import my Canadian Football, MMA/UFC and local teams to existing categories is this a simple task?
     

    Users who are viewing this thread

    Top Bottom