Arrow

Past Scores Bug! | Peter's Sports League Standings | Forum

Back to the sports standings script page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Past Scores Bug!
May 26, 2009
1:57 pm
Ph
Guest

I have a problem.

When a score is added, for example, Team 1 beats Team 2 2-0. The result is correct in the table but on past scores table, The away teams seems to be showing as the home team. and vice versa.

I am unsure which file this would be in. the problem shows on the admin side of things under past scores as well as the standings page.

Hope you can help with my problem.

May 26, 2009
2:42 pm
Ph
Guest

I think i solved the problem. I am not sure if its the right thing to do.

In standings.php on line 461:
I switched losingteam and winningteam around

In mainview.php on line 104:
I switched losingteam and winningteam around

I know basic php, so if this is the incorrectway to do things, please let me know.

I couldnt quote the code.

May 27, 2009
12:52 am
Peter
Admin
Forum Posts: 841
Offline

Actually, I cannot reproduce this problem. In versions up to and including 1.4, the past scores table will always show the home team's score first, and then the away team's score, no matter who won or lost. I don't think you have to make the edits as specified (the naming for the variables should be made clearer -- the $winningteam and $losingteam variables actually refer to the home and away teams).

June 3, 2009
6:42 am
ph
Guest

It wasnt the score that was incorrect.

It was the actual team name under home.

Whichever team was set as home team would display as the away team..

Not sure why, but it works now after i changed them round [Image Can Not Be Found]