Arrow

W/L | 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

W/L

Reply to Post Add a New Topic
UserPost

10:58 am
January 2, 2011


Kyle

Guest

Okay…just came across this…when viewing a team's full schedule and scores…is there a way to put in a W if the team won or a L if the lost in the results?

It would make it easier for the visitor to quickly see a team's wins and losses without having to decipher the score…

2:37 pm
January 2, 2011


Kyle

Guest

And, sorry for the many posts but I just started working with this and am posting as I notice any issues or wants…

This one isn't a big need, but I would like to be able to list Home wins/losses and Away wins/losses. So, in the end, I'd like my table to look like this:

OVERALL CONF HOME AWAY
TEAM GP W L W L RF RA GB PCT W L W L

Thanks in advance!
Cool

11:54 am
January 3, 2011


Peter

Admin

posts 732

In short, yes.

For the individual team table, see the sls_team_schedule function in standings_functions.php. In the loop of games, you can compare the $teamtosort value to the away team or home team (which are stupidly called "losingteam" and "winningteam" in the database).

As for showing home and away win-loss records, this is not stored in the sportsdb_teams table, so you'll either have to add those database fields and then tweak the edit actions to inject that information. Or, you will have to write your own queries in standings.php to dynamically fetch this information on every page load.

Reply to Post

Reply to Topic:
W/L

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:
12 + 11