Arrow

asking for help | 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
asking for help
January 9, 2011
8:01 pm
khild
Guest

Hi peter,

first of all I want to thank you very much for this lovely script

peter,
1- Just I want to ask if you can add another table for goal Diff.(F-A)
it is very important in soccer ( I tried but I failed)
2- another , would you please tell me how can I add another table for goalscores , just table I can write the players manual even in seperate page
3- I encoded the script to anothe language , every thangs went smooth except the months which still in englisg language despit I changed its to my language.
4- another thing : the script does not accept user registration other than english language (like arabic language)
5- I want add empty value in date ( months , days,years,time) cuaus I have some much i am not sure for date

your help will be appreciated

thank you

January 13, 2011
8:48 pm
Peter
Admin
Forum Posts: 841
Offline

My answers probably aren't very helpful, as I have no time to support this script at the moment.

1) Since you already get F and A in the result set, you can use PHP to just calculate the difference.
2) I don't understand what you're asking. You can extend the script to include a player module.
3) The dates are output via PHP. You could look into the function setlocale in PHP for controlling how it outputs date names.
4) That might be a database table encoding limitation. You might also have to use utf8_encode on some variables.
5) There's no quick solution for that other than putting in at least a guess of a year and month.

January 15, 2011
10:23 am
khild
Guest

thank you peter
- regarding numer 1
I ried but I faild
- regarding to number 2 have a llok for this photo
[Image Can Not Be Found]

January 18, 2011
2:02 pm
khild
Guest

hi peter,
I know that you are busy but I want your help

as I told you before I need a goal Diff.(F-A)
I tried but I can not do it
would you please write down the code and where can I put it

- also I still have same proble in manths's name , it still in English names

January 20, 2011
11:23 pm
Peter
Admin
Forum Posts: 841
Offline

Sorry, I am too swamped right now. If anybody else can help, please feel free to post in this thread.

January 22, 2011
2:43 am
khalid
Guest

Thank you peter

January 23, 2011
8:13 am
cromags21
Guest

Hey Pete

Having trouble with login ,I put the default user and password and It showing me this.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homepages/5/d341443114/htdocs/standings/secure.php on line 21
Sorry, the username you entered does not exist or your account is inactive.

Did I miss something?

January 23, 2011
10:20 am
cromags21
Guest

Sorry this might be useful

I moved my site and I created a new database.Now i upload all my files and when I went to sign in under username ADMIN and I get teh code above.

January 23, 2011
12:21 pm
Peter
Admin
Forum Posts: 841
Offline

Sounds like the database information wasn't properly transferred, or your database credentials need to be updated in secure.php.

January 23, 2011
11:03 pm
khalid
Guest
10

I hope someone help me

January 25, 2011
11:16 am
khalid
Guest
11

Hi peter,

Last Q,:oops:

my league is 16 teams / 30 week / nearly 126 matches
can I able to show only 8 games in current standing & past score table and hide the other games, cause 126 games in the same page are too much

thank you

January 27, 2011
6:33 pm
Peter
Admin
Forum Posts: 841
Offline
12

Yes, you should be able to limit the number of games shown by adding some MySQL LIMIT statements in standings.php. To produce a full schedule, check out the function sls_team_schedule (in standings_functions.php).

September 5, 2011
3:42 am
Base
Guest
13

khild said:

hi peter,
I know that you are busy but I want your help

as I told you before I need a goal Diff.(F-A)
I tried but I can not do it
would you please write down the code and where can I put it

- also I still have same proble in manths's name , it still in English names

Create new var like:

// Gol razlika
$gol_razlika_formula = '(teamrf - teamra)';

and output it in standings results... something like this:

$standings_sort = 0; $sort_order = "winningpct DESC, teamorder DESC, gol_razlika DESC";