Hockey extension for Joomleague

Extensions / Customization for JoomLeague 1.6.
chemopetrol
Newbie
Posts: 17
Joined: Mon Jun 18, 2007 6:44 pm

Hockey extension for Joomleague

Postby chemopetrol » Tue Feb 08, 2011 1:39 pm

Hi,
i have Joomleague 0.93b with hockey extension, which can show wins in OT and looses in OT in a table. Is this function in Joomleague 1.5.x?
Thank you for your answers

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Tue Feb 08, 2011 3:09 pm

Discussed before....I know its not easy, but please use search next time.

No, there is no hockey extension available yet...a lot of people are waiting with great intrest for this....
So if someone is willing to create this........please let us know

User avatar
diddipoeler
.
Posts: 1152
Joined: Sun Feb 04, 2007 3:29 pm
Joomleague version: 2.0.x
Contact:

Re: Hockey extension for Joomleague

Postby diddipoeler » Sun Jan 29, 2012 1:09 pm

gibt es dafür ein beispiel, wie so etwas aussieht ?
über 8 Mio. Spielpaarungen auf http://www.laola-fussball-international.de/
über 8 Mio. Spielpaarungen auf http://www.**************.de/
Joomlaversion: 1.5.26
Testserver mit Joomleague Version 0.93
Tippspieltestseite: http://joomleague16.**************/
Das Komplettpaket: https://github.com/diddipoeler/joomleague-komplett
Das Komplettpaket 2.0: https://github.com/diddipoeler/joomleague-2-komplettpaket

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Sun Jan 29, 2012 1:32 pm

i also dont know, but i found the extension for 0.93
You do not have the required permissions to view the files attached to this post.
Joomla 1.5.x
Joomleague 1.5.....latest git version

User avatar
diddipoeler
.
Posts: 1152
Joined: Sun Feb 04, 2007 3:29 pm
Joomleague version: 2.0.x
Contact:

Re: Hockey extension for Joomleague

Postby diddipoeler » Sun Jan 29, 2012 8:14 pm

timoline wrote:i also dont know, but i found the extension for 0.93

danke für den link. werde mir das mal in ruhe anschauen ;)
über 8 Mio. Spielpaarungen auf http://www.laola-fussball-international.de/
über 8 Mio. Spielpaarungen auf http://www.**************.de/
Joomlaversion: 1.5.26
Testserver mit Joomleague Version 0.93
Tippspieltestseite: http://joomleague16.**************/
Das Komplettpaket: https://github.com/diddipoeler/joomleague-komplett
Das Komplettpaket 2.0: https://github.com/diddipoeler/joomleague-2-komplettpaket

User avatar
diddipoeler
.
Posts: 1152
Joined: Sun Feb 04, 2007 3:29 pm
Joomleague version: 2.0.x
Contact:

Re: Hockey extension for Joomleague

Postby diddipoeler » Sun Jan 29, 2012 9:08 pm

hallo,

sind das die punkte für die tabelle:

- Points -
3 pts - Win
0 pts - Loss
2 pts - Win in overtime
1 pts - Loss in overtime
2 pts - Win in shoutouts
1 pts - Loss in shoutouts
über 8 Mio. Spielpaarungen auf http://www.laola-fussball-international.de/
über 8 Mio. Spielpaarungen auf http://www.**************.de/
Joomlaversion: 1.5.26
Testserver mit Joomleague Version 0.93
Tippspieltestseite: http://joomleague16.**************/
Das Komplettpaket: https://github.com/diddipoeler/joomleague-komplett
Das Komplettpaket 2.0: https://github.com/diddipoeler/joomleague-2-komplettpaket

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Mon Jan 30, 2012 8:45 pm

check latest git, wins in OT and looses in OT is implemented, should be working well according test-user
Joomla 1.5.x
Joomleague 1.5.....latest git version

User avatar
diddipoeler
.
Posts: 1152
Joined: Sun Feb 04, 2007 3:29 pm
Joomleague version: 2.0.x
Contact:

Re: Hockey extension for Joomleague

Postby diddipoeler » Mon Jan 30, 2012 10:28 pm

timoline wrote:check latest git, wins in OT and looses in OT is implemented, should be working well according test-user

solch ich das jetzt testen oder nachschauen ?
oder der user, der den thread aufgemacht hat ?

bitte die poster etwas deutlicher ansprechen. so weiss keiner wer gemeint ist !!!!
über 8 Mio. Spielpaarungen auf http://www.laola-fussball-international.de/
über 8 Mio. Spielpaarungen auf http://www.**************.de/
Joomlaversion: 1.5.26
Testserver mit Joomleague Version 0.93
Tippspieltestseite: http://joomleague16.**************/
Das Komplettpaket: https://github.com/diddipoeler/joomleague-komplett
Das Komplettpaket 2.0: https://github.com/diddipoeler/joomleague-2-komplettpaket

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Tue Jan 31, 2012 7:00 am

check http://bugtracker.joomleague.at/issues/680#change-6564

The more testers the better.... ;)
Joomla 1.5.x
Joomleague 1.5.....latest git version

MOV
.
Posts: 42
Joined: Wed Apr 20, 2011 7:18 am

Re: Hockey extension for Joomleague

Postby MOV » Mon Mar 12, 2012 8:39 pm

I might be missing something, but I have a team who won in OT and they were not credited in the Win ("W") column. And while I was able to get the correct "OTL" (OT Loss) column to show the other team's loss, they are not credited with the 1 point for the OTL.

So for hockey, a Win OR an Overtime Win = 2 points and the win is added to the original Win column, not a separate OT Win column. Unless I'm doing something wrong, this may not be working correctly -- looks like the points are working, but not the correct column (as an OT win is not adding a win to the Win column).

But for an OT Loss, you get 1 point and it DOES go in its own separate OT Loss column. The column here appears to work correctly, but not the OT loser getting their 1 point -- is there somewhere to set that which I missed? I see under the Project > Competition tab that I have 2,1,0 for both "Regular points" and "Points after extra time" -- is there something here for OT Losses getting 1 point?

Thanks!
Joomla 1.6.0
Joomleague v1.5.4.f73dabe

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Mon Mar 12, 2012 8:44 pm

well thats possible,
I asked many times to test this, but only a few tested it....and they say it worked correct.
http://bugtracker.joomleague.at/issues/680#change-6564

I read your story but dont know what to change yet, because its not really clear for me

CURRENTLY is:
when you win, W=1
when you loose, L=1
when you WOT, WOT=1 , no W=1
when you LOT, LOT=1, no L=1
when you WSO, WSO=1 , no W=1
when you LSO, LSO=1, no L=1

BUT LIKE I ASKED BEFORE, should it be like:
when you win, W=1
when you loose, L=1
when you WOT, WOT=1 , and W=1 ?
when you LOT, LOT=1, and L=1 ?
when you WSO, WSO=1 , and W=1 ?
when you LSO, LSO=1, and L=1 ?

btw:
why 2,1,0 ?
that means win 2, draw 1, lost 0 .....points
Joomla 1.5.x
Joomleague 1.5.....latest git version

MOV
.
Posts: 42
Joined: Wed Apr 20, 2011 7:18 am

Re: Hockey extension for Joomleague

Postby MOV » Mon Mar 12, 2012 10:26 pm

timoline wrote:why 2,1,0 ?
that means win 2, draw 1, lost 0 .....points

Yeah, I set that way back when hockey OTL stats were scheduled for v1.6 (so I was going to try to use ties/draws as a workaround for giving an OT loser 1 point). But that never quite panned out, and looks like this feature was moved up from 1.6 to 1.54 a couple months ago. Looks like I missed the boat for that testing, but I'd be happy to help out now if I can. :)

It should be:

when you win, W=1
(CURRENTLY CORRECT)

when you lose, L=1
(CURRENTLY CORRECT)

when you WOT, WOT=1, and W=1
(CURRENTLY INCORRECT - an OT Win should also count as a Win)

when you LOT, LOT=1, no L=1
(CURRENTLY CORRECT)

when you WSO, WSO=1, and W=1
(CURRENTLY INCORRECT - a Shootout Win should also count as a Win)

when you LSO, LSO=1, and LOT=1, but no L=1
(CURRENTLY INCORRECT - the "LSO=1" and "no L=1" that you have now are correct, but a LSO also qualifies as an OT Loss, so it ALSO needs LOT=1).

So a win is a win, whether it's in regulation time, OT, or SO. No matter what, you still get a "W" and 2 points. In the rankings:
W or WOT or WSO = 2 points
L = 0 points
LOT or LSO = 1 point (where can this be set?)

I hope that helps!
Joomla 1.6.0
Joomleague v1.5.4.f73dabe

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Tue Mar 13, 2012 7:19 am

Hi, well lets work in this :)
you can set:(I set drawpoints = 0 ?)
-regular points -> 2,0,0
-Points after extra time [OT] -> 2,0,1
-Points after penalty shootout [SO]->-> 2,0,1

I'll look at this tonight
thx for helping so far...


Another question, you think this WOT/LOT/WSO/LSO calculation (not points calculation) is only for hockey , or more sports
Joomla 1.5.x
Joomleague 1.5.....latest git version

MOV
.
Posts: 42
Joined: Wed Apr 20, 2011 7:18 am

Re: Hockey extension for Joomleague

Postby MOV » Wed Mar 14, 2012 4:54 pm

timoline wrote:Hi, well lets work in this :)
you can set:(I set drawpoints = 0 ?)
-regular points -> 2,0,0
-Points after extra time [OT] -> 2,0,1
-Points after penalty shootout [SO]->-> 2,0,1

This worked great, thanks! I'm now getting the correct point totals for W-L-OTL in my rankings.

For future reference, what exactly do those three comma-separated numbers mean? 2,0,0 = 2 points for a win in regulation time... 0 points for a draw after regulation time... 0 points for a loss after regulation time? I think I got it, but just want to make sure -- I may re-word this in a "hockey language" extension to be more clear for those of us more familiar with hockey terminology. :)

timoline wrote:Another question, you think this WOT/LOT/WSO/LSO calculation (not points calculation) is only for hockey , or more sports

Off the top of my head I think it might only be for hockey. But I'm not really familiar with soccer or rugby or other sports where it might be the same. I'm pretty sure the 1 point for an OT Loss is unique to hockey (which you already have in there)... I would think that most sports with overtime would also be WOT = W, where a win is a win no matter whether it's in regulation or OT, and then each sport may just be unique in how it tallies those points.
Joomla 1.6.0
Joomleague v1.5.4.f73dabe

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Wed Mar 14, 2012 6:08 pm

ok thx,

well its committed to git,
you can test it ;)

and yes
W,D,L
-regular points -> 2,0,0
-Points after extra time [OT] -> 2,0,1
-Points after penalty shootout [SO]->-> 2,0,1

maybe we can add some sport settings here in the wiki
http://www.joomleague.at/dokuwiki/doku ... ompetition
Joomla 1.5.x
Joomleague 1.5.....latest git version

MOV
.
Posts: 42
Joined: Wed Apr 20, 2011 7:18 am

Re: Hockey extension for Joomleague

Postby MOV » Wed Mar 14, 2012 9:25 pm

Awesome - I'll test it as soon as I get a chance.

And I added some hockey info to the wiki page, so hopefully that helps. As I get more hockey-specific stuff set and working I'll definitely add it to the wiki, along with my hockey language extension.
Joomla 1.6.0
Joomleague v1.5.4.f73dabe

MOV
.
Posts: 42
Joined: Wed Apr 20, 2011 7:18 am

Re: Hockey extension for Joomleague

Postby MOV » Wed Mar 14, 2012 10:31 pm

Oops - I'm getting an error when extracting the latest git:

D:\...\joomleague-joomleague-master.tar.gz: Cannot create joomleague-joomleague\com_joomleague\administrator\components\com_joomleague\assets\updates\jl_create_15_standard_hockey_events_and_positions.php

D:\...\joomleague-joomleague-master.tar.gz: Cannot create joomleague-joomleague\com_joomleague\administrator\components\com_joomleague\assets\updates\jl_create_15_standard_soccer_events_and_positions.php

Not sure if I need those or not to upgrade, or if there's a minor issue with the .tar.gz file...
Joomla 1.6.0
Joomleague v1.5.4.f73dabe

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Thu Mar 15, 2012 6:02 pm

dont need those files, but that bug with .tar.gz file ,I noticed that before, dont know what that is
maybe try to unpack it with 7zip?
Joomla 1.5.x
Joomleague 1.5.....latest git version

MOV
.
Posts: 42
Joined: Wed Apr 20, 2011 7:18 am

Re: Hockey extension for Joomleague

Postby MOV » Fri Mar 16, 2012 7:16 pm

7-Zip did the trick, thanks. I was getting that error with WinRAR.

I've tested the updated point system, and so far it all looks good. I added an OTL column to my rankings -- looks like I'm getting the correct OTL when the team loses in Overtime OR a Shootout, as it should be... they are not given a loss, as it should be... they ARE given the correct 1 point... and the winner is getting a "W" (and 2 points) whether it's in regulation, OT, or SO.

I'll try a few more test scenarios just to change it up and make sure. And I also wondered about playing with some formulas for the rankings, like "Regulation + Overtime Wins" ("ROW" column, which counts all Wins excluding Shootout Wins to be used for tiebreaking purposes... i.e. W-WSO=ROW... did I see somewhere to create formulas for the rankings, or was that just for personal stats?) -- but that's not a big deal, and from what I can tell, looks like it's working great. Thanks for your work on this!

:thx:
Joomla 1.6.0
Joomleague v1.5.4.f73dabe

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Fri Mar 16, 2012 8:00 pm

hi, good to hear everything works fine,
about the formula's:
everything is possible once you have the correct data..... ;) :cool:
Joomla 1.5.x
Joomleague 1.5.....latest git version

vikingX
.
Posts: 28
Joined: Wed Jun 20, 2012 6:56 pm

Re: Hockey extension for Joomleague

Postby vikingX » Fri Aug 31, 2012 5:01 pm

Sorry for digging up this thread again. But exactly what was changed because of MOVs wishes is my problem now. Actually the system in Switzerland is like it was in this files at the begin:

You get 3 points for a win in regular time; but only 2 points for a win in overtime or shootout. So an overtime win is not a win in this case.
The points are not the problem 'cause i can set them myself. But now everytime a team wins in overtime the ranking says it is an overtime win AS WELL as a normal win.

Example: http://thl.ch/index.php/gruppe-a/tabelle

Can somebody help me? Thanks a lot!

-----------------------------------------------
joomleagueversion 1.6.0
joomlaversion 1.5

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Fri Aug 31, 2012 6:38 pm

hmm, hard to tell,(I mean I know whats changed)
Maybe someone (like you) tell exactly whats needed in every situation, then maybe its possible to create this feature for everybody's needs, Its hard to solve for an outsider...
Joomla 1.5.x
Joomleague 1.5.....latest git version

vikingX
.
Posts: 28
Joined: Wed Jun 20, 2012 6:56 pm

Re: Hockey extension for Joomleague

Postby vikingX » Fri Aug 31, 2012 6:49 pm

Well I actually dont know how complicated the whole joomleague system really is, but I think complicated enough. So you think there is no possibility to change this on my local files? If it would be just some lines in a file maybe i could manage that when I knew where it is set..

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Hockey extension for Joomleague

Postby timoline » Fri Aug 31, 2012 8:14 pm

components\com_joomleague\helpers\ranking.php

you have to change the code on
line ~375 to 580
Joomla 1.5.x
Joomleague 1.5.....latest git version

vikingX
.
Posts: 28
Joined: Wed Jun 20, 2012 6:56 pm

Re: Hockey extension for Joomleague

Postby vikingX » Fri Aug 31, 2012 8:51 pm

Thank you very much! Now everything works as it should :)
:thx:

http://www.thl.ch/index.php/gruppe-a/tabelle


Return to “Extensions / Customizations”

Who is online

Users browsing this forum: No registered users and 4 guests

cron