Arrow

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

Back to the sports standings script page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Past Scores Bug!

Reply to Post Add a New Topic
UserPost

1:57 pm
May 26, 2009


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.

2:42 pm
May 26, 2009


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.

12:52 am
May 27, 2009


Peter

Admin

posts 732

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).

6:42 am
June 3, 2009


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 |

Reply to Post

Reply to Topic:
Past Scores Bug!

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 9