Arrow

A few simple questions | 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
A few simple questions
March 14, 2010
6:51 pm
Andrew
Guest

Hello Peter,

I just installed the script and it looks great!
Here are a few things I would like to implement, and I ask for your guidance:

1) Team logo - I really need each team to have it's logo next to it's name. How could this be done simple? It should store the name of the image file in the db and display it in a table cell next to the team name. Could you please help regarding this? (most important!)

2) Is it possible to rewrite the url's using mod_rewrite? SEF url's would be a great feature.

3) It's late and I haven't found out yet - how do I sort the table by default using the nr. of points? I have a soccer league and it's sorted using PCT (I want to remove that column anyway, found how on the forum :D)

4) I need do display all the fixtures on a different page and all the results on another different page. How should I do this?

I'm sorry for the questions. The 1st and the 2nd are important, so if you really don't have the time, just help me with those and I'll be super happy! :)

Thank you for your support!

Andrew

April 2, 2010
3:16 pm
Peter
Admin
Forum Posts: 841
Offline

Team logo: Yup, you have the general outline correct.

Nicer URLs: Certainly a possibility but this takes quite a bit of work. Unfortunately the time I dedicate to this project has reached 0 and if I restart it, I might do a complete rewrite.

Standings sorting: You'll find this code in standings.php:

// Allow sorting to occur
if (isset($_GET['sort'])) {
$standings_sort = intval($_GET['sort']);
}
else {
$standings_sort = 0;
}

Change the default value to 10 instead of 0 and it will sort by points.

Separating standings from schedules: All of this code is in standings.php, and you can work through that file to split them up.