Comments prior to April 12, 2008 for Peter’s Sports League Standings
All comments are now made in the forums. The comments here are for archival purposes.
Back to Peter’s Sports League Standings
All comments are now made in the forums. The comments here are for archival purposes.
Back to Peter’s Sports League Standings
May 16th, 2007 at 3:35 am
Mark Delleman says:
Hey, I was hoping you could add Runs Scored and Runs against in the code somehow. I am just learning PHP so I have fiddled with your code a bit to work for me. I keep track of a church slo pitch league. There are alot of things I can learn form your code so I thank you. Let me know if this is possible.
Mark
May 16th, 2007 at 3:37 am
Mark Delleman says:
Oh and also if you could add Games Played that would be a cool addition as well.
May 16th, 2007 at 7:10 am
Peter says:
Yes, that is possible. Unfortunately, I’m going on vacation for a month, so I can’t do anything on the script until mid-June.
June 13th, 2007 at 7:40 am
Mark Delleman says:
Hey, I have added all the code myself, GP, RF, RA. Learned alot from your code. Thank you very much. If you would like me to send you what I did let me know.
Mark.
June 13th, 2007 at 3:56 pm
Jason says:
I started testing this software recently and really like it. The addition of divisions was very important to me. I’m hoping it can replace my copy of Nuke League running on my site.
June 13th, 2007 at 4:15 pm
Peter says:
I’m back from my vacation and am working on a custom implementation for a baseball league. Features from that, such as a GP column and a games behind calculation, will soon make their way into the public release.
Because the script is intended to be basic (thus needing some customization for most, if not all implementations), I’d love to see a bunch of branches off the base release catered to different sports.
I guess we’ll take it one day at a time! The day job always gets in the way, of course…
September 3rd, 2007 at 6:14 pm
Mike Fitz says:
Could you or Mark Delleman please post the code that Mark added?
Thanks,
September 3rd, 2007 at 6:34 pm
Peter says:
Maybe Mark can post what he did. The project I’m working on is *still* ongoing, so I can’t just put up a snippet as there’s a bit of an overhaul…
September 4th, 2007 at 9:36 am
Mike Fitz says:
Thanks Peter.
Do you have an est. completion time? I know this is not you day job — just curious.
thanks for you effort.
September 4th, 2007 at 9:44 am
Peter says:
I’m guessing within the next two weeks…
September 7th, 2007 at 3:11 pm
Jason says:
Can’t wait. I’m really looking forward to it. Thanks.
September 17th, 2007 at 4:01 pm
Peter says:
Version 0.4 is now finished. I need to do a bit more testing and hope to release it sometime this week.
September 19th, 2007 at 8:22 pm
Peter says:
Version 0.4 released!
September 20th, 2007 at 5:24 am
Jason says:
Excellent. Thanks for the hard work. Looking forward to installing the new version.
September 20th, 2007 at 1:35 pm
Jason says:
Divisions can only be added the conference 1 through the admin panel.
September 20th, 2007 at 8:20 pm
Peter says:
Fixed and updated in the download. Thanks for pointing that out!
September 21st, 2007 at 4:40 am
Jason says:
Thank you for the update and a great product. The new conference addition actually allows me to run a few simultaneous leagues at one time.
October 11th, 2007 at 6:06 am
Mitja says:
Hi Peter. Keep up the good work. I am running a static side for my icehockey/inline team. It’s a beer league consisting of two teams but with great rivalry :). I am updating the simple stats manually which can be a real pain in the ass sometimes, so I am thinking of putting a PHP site/portal or insert a piece of php in the existing site. I am a newbie in PHP, but technically I know how things (PHP and MYSQL) work. So I wonder if it would be very hard and time consuming if you incorporated a script (form) where you could first enter the names of the players, then a form through which you would be able to update goals and assists, which would be shown in the three tables. Separate stats for the players of each team, and a common one. I like your product because it’s simple and compact and I don’t want too much additional options. I am not skilled enough too make it myself, so I would be very glad if you could help me or at least give me some directions. Thanks in advance
October 13th, 2007 at 3:40 pm
Peter says:
Hi Mitja,
Unfortunately I cannot dedicate the time right now to any new projects. From what you are describing, if you were to use my standings script, you would need to add another database table — one with these fields: player ID, player first name, player last name, player team ID (linking to the teams table), goals, and assists. Points would be calculated via PHP when displaying stats. Then, yes you would need a script to add, edit, and delete players, one that adds an extra form to when adding, editing, and deleting a game, and then two for display: one that lists all the players on a team and one that lists all players in the league.
That is the simplest setup. However, suppose that a player current has 1 goal and 1 assist after 3 games. In the next game, he or she scores 2 goals. When you go to update that player, you simply update the total goals. You have no record of the count of goals or assists he or she had for each game. Therefore, this is prone to human error unless you’re very very careful. What you would need is a third database table: one with these fields: game ID, player ID, goals, assists. Then whenever you update a game, a script would add one entry per player per game. Total goals and assists per player are then tallied from this.
I hope that maybe someone else can contribute by adding this “plugin”? If so, please let me know.
October 15th, 2007 at 6:17 am
Mitja says:
Thanks a lot for the tips and to everybody who would sacrifice their time for trying to design such project. If I succeed, or come close to the solution I’ll let you guys know.
October 22nd, 2007 at 12:31 am
David says:
Great Work and really enjoy using this software.
I have a suggestion for something to add on the next verison. And that would be to have the schedule where you can click on a team name and just bring up their scheduled games only.
I run a City Adult Softball League Website and they like it where they can print out just their own team schedule and this would be a great asset if you could figure out how to add it to the code.
Here is a link to our website so you can see what I am talking about
http://irvingsoftball.com/tuesdayblue2.php
Again Thanks for the Great Work!!
November 11th, 2007 at 5:20 pm
Peter says:
Hi David. Thanks for the suggestion. I’ve just released version 0.5, where the main new feature is the ability to filter the schedule and scores by team.
November 14th, 2007 at 9:07 pm
Jason says:
Thanks again for the update!!!
December 9th, 2007 at 1:32 pm
ilcastro says:
Hi Peter, I love your script. It’s very usefull.
I like to suggest to add an option to generate automatic fixtures. I have a division with 10 teams and I must enter the matches one by one. I think that it would be very useful if the script could do the trick automatically.
thanks for this fantastic work
December 28th, 2007 at 3:03 pm
raul says:
The software is in spanish? or not?
January 25th, 2008 at 6:30 pm
Mark says:
Hello
Very cool software.
I put some teams in but can’t seem to delete them from the division. I did make them inactive but theres nothing to click on to delete them. So how do I delete them ?
Also what does the secure.php do ?
THanks
Mark
January 26th, 2008 at 2:07 pm
Peter says:
Hi Mark,
secure.php provides the password protection for the admin interface.
Unfortunately, the only way to delete a team is to remove its entry from the sportsdb_teams table. That, or simply rename an inactive team whenever you need to add a new team. I added this restriction so that you couldn’t delete teams that were already part of a past score or upcoming game (thus preserving any references to that team).
However, for the next version (whenever that is) I should add the delete team feature, but with a check that prevents you from deleting a team that are part of a past score or upcoming game. In such cases, you have to first delete any past scores or upcoming games involving the team before you can delete that team.
January 29th, 2008 at 3:19 pm
Mark says:
Hello
Thanks. That worked.
I am trying to put a banner at the top of the page
but can’t get it to show. It blows out the page.
Is this possible ?
Thanks again.
Mark
January 30th, 2008 at 1:10 pm
Peter says:
Yes, you should be able to modify anything on the page. In fact, you can strip out all of the surrounding html stuff and insert the standings code into an existing page design.
I’m not sure what you mean by “blow out the page”. I’m guessing that you just have to tweak nesting or order of tags somewhere in your code.
January 30th, 2008 at 7:31 pm
Jason says:
I was able to add my sites logo/banner to the top of the page:
http://www.sportsgamingnation.com/standings/index.php?conf=11
I added this code right under the tag in index.php:
Peter, looking forward to the next version.
January 31st, 2008 at 5:17 am
Mark says:
Hello
Yes I had something wrong cuz I got a error about unexpected something. (sorry can’t recall).
Jason thats nice. What did you do to get the games and schedule to come out like that. I like that alot.
I am not a good hacker at all.
THanks
Mark
January 31st, 2008 at 5:24 am
Mark says:
Parse error: syntax error, unexpected ‘<‘ in C:\Domains\thedewars.net\wwwroot\softball\standings\index.php on line 56
is what i get most of the time when I edit the index.php.
don’t know enough about php really.
Thanks
Mark
January 31st, 2008 at 10:11 am
Peter says:
Hi Mark,
If you want to add HTML code to a PHP file, the simplest methods are to use the print function or close the PHP block, print the HTML, and open it again:
<?php
php code goes here;
?>
<img src='blah.jpg' alt='Blah' />
<?php
more php code goes here;
?>
Also, most of the standings and schedule stuff on Jason’s page is default functionality.
January 31st, 2008 at 1:58 pm
Jason says:
Mark,
The form must have filtered out some of my reply. I entered the following code right after the <body> tag:
<p align="center">
<img src="your_logo.jpg" alt="My Web Site Name" align="center"
border="0"></p>
<hr />
As Peter mentioned, my site hardly has any changes made to it. I just changes the position of the home and away teams and added horizontal lines between each section using the command.
Hope this helps.
February 2nd, 2008 at 5:57 am
Jason says:
Peter,
Is there a way to have the Past Scores sorted so that the most current games are at the top instead of the bottom? Thanks.
February 2nd, 2008 at 10:44 am
Peter says:
Hi Jason,
Find this line:
$queryscores .= " ORDER BY wintime ASC";
Replace it with:
$queryscores .= " ORDER BY wintime DESC";
I'll make this the default for the next version (that could be next week or in three months).
February 2nd, 2008 at 12:34 pm
Jason says:
Thank you Peter.
February 22nd, 2008 at 10:13 am
trey says:
peter is this something that can be dropped in flash… i am looking to incorporate a flash standings within my flash movieclip…
trey
February 24th, 2008 at 9:54 pm
Peter says:
Hi Trey, someone more experienced with Flash would have to answer that. The standings output is a rather simple grab from the database, but I have very little experience with Flash. You or someone else can certainly hack away at my standings code of course!
March 4th, 2008 at 12:23 pm
Shades says:
First of all what a great script.
Just a couple of like to haves for the next version if possible.
1.Is it possible to have multiple logins so that users can only administer their own conference/league.
2. Different points for home/away game wins.
3. Different points structure for each conference/league.
4. Ability to add bonus points to the total i.e. an extra point for each 'For' scored.
Great stuff !!
March 14th, 2008 at 5:15 am
Keith says:
neat script! how do I import a part of the standings page to put the data on the front page of my site?
March 14th, 2008 at 7:05 am
Dave says:
This was easy to install. I have little knowledge of php or Mysql but was able to figure out how to load and get it up and running.
Using a Css file, I easily integrated it into my website. I did some formating on the table to change the look and centre the data
I plan to use it for a girls ball hockey site. I tested in on the 2007 data here
http://ggbhl.georginagoldenhawks.com/standings/index.php?conf=3
And have my 2008 season ready to go already
http://ggbhl.georginagoldenhawks.com/standings/index.php?conf=4
One workaround I used, was to use divisions to seperate Exhibition, Regular season and playoffs. I could have made these different conferences but I wanted to scho the complete schedule on one page. The software would allow you to duplicate the team names in different conferences but that makes it difficult to use the team filters for past and upcoming games. therefore, I differentiated the team names by add "Ex" for Exhibition games
Thanks this was very helpful and has me intersted in learning so I can write something for my Ice Hockey team. I currently track it all in excel and manually update Team and player stats
http://www.georginagoldenhawks.com
March 14th, 2008 at 3:30 pm
Peter says:
Keith: Unfortunately, the best way to go about it right now is to just hack out the parts you need from standings.php. The standings table ends before the header for "Past Scores".
Dave: Nice examples! I'll have to figure the ability to have multiple seasons into the long-term plans for the script.
March 15th, 2008 at 7:14 am
Jason says:
Nice site Dave.
March 24th, 2008 at 7:04 am
Susan says:
I am just learning PHP and found your sample. This is very helpful to me. Thanks so much for posting. Much appreciated!
March 26th, 2008 at 10:11 pm
Gil says:
Nice work Peter. Have you ever thought about adding an automatic fixture option? I mean once you have enter the all the teams it would go out and generate the games for you.
Again great work. I am going to try to incorporate this into a youth soccer league
March 27th, 2008 at 8:46 am
Peter says:
You mean a schedule generator? Yes, that would be cool, but would be on the long-term wish list unless other people want to help code!
April 2nd, 2008 at 7:09 am
Jason says:
Peter,
I added fixed sized table columns to the standings for better alignment. I can send you the code if interested. You can view what it looks like here:
http://www.sportsgamingnation.com/leagues/standings.php?conf=4
April 5th, 2008 at 11:46 am
Peter says:
Hi Shades,
Sorry for the slow reply, but for some reason my blog has been erroneously labelling a lot of comments as spam. Anyway, to go through your suggestions:
1.Is it possible to have multiple logins so that users can only administer their own conference/league.
– Happily, this was implemented in Version 1.0
2. Different points for home/away game wins.
3. Different points structure for each conference/league.
4. Ability to add bonus points to the total i.e. an extra point for each 'For' scored.
– Probably not high on my list, but noted.
Thanks for the feedback!
April 6th, 2008 at 3:46 pm
Mike says:
Absolutely love this app! Has made managing multiple divisions, and league scores easy.
Take a look:
http://www.rmsl-usssa.com
Mike
April 6th, 2008 at 7:28 pm
Peter says:
Jason — thanks for the example. What I should really do is make the script’s style as modifiable as possible. I will be sure to work with you when I start on the next version (no timeline yet).
Mike — wow, what can I say, that is really slick! Now I just need some time to push forward on the project!
April 7th, 2008 at 12:03 am
Shades says:
Peter,
Many thanks for your excellent work…
Gil asked for a fixture generator to be included.
I have coded a fixture generator and can send you the code if you wish, but have not worked out how to integrate it into your script.
http://www.leicesterpool.co.uk
Your script has certainly made our task of league management a lot easier.
Many thanks..
April 7th, 2008 at 5:08 am
Jason says:
Peter,
Forget about my layout, I’d use Mike’s at http://www.rmsl-usssa.com as a guideline.
That looks fantastic!!!
April 7th, 2008 at 6:24 pm
Brendan says:
I love the script. We’ve been using it to track standings for an ultimate frisbee league for two seasons now. Everyone really likes it.
One thing that’s been requested is having a little more logic in sorting. It would be so cool if I could set it to sort by Points, and in the case there were two or more teams with the same number of points, those teams could be sub-sorted by Runs For or some other column.