Arrow

asking for help | 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

asking for help

Reply to Post Add a New Topic
UserPost

8:01 pm
January 9, 2011


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

8:48 pm
January 13, 2011


Peter

Admin

posts 732

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.

10:23 am
January 15, 2011


khild

Guest

thank you peter
- regarding numer 1
I ried but I faild
- regarding to number 2 have a llok for this photo
http://img189.imageshack.us/img189/9602/16012011121513pm.png

2:02 pm
January 18, 2011


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

11:23 pm
January 20, 2011


Peter

Admin

posts 732

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

2:43 am
January 22, 2011


khalid

Guest

Thank you peter

8:13 am
January 23, 2011


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?

10:20 am
January 23, 2011


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.

12:21 pm
January 23, 2011


Peter

Admin

posts 732

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

11:03 pm
January 23, 2011


khalid

Guest

I hope someone help me

11:16 am
January 25, 2011


khalid

Guest

Hi peter,

Last Q,Embarassed

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

6:33 pm
January 27, 2011


Peter

Admin

posts 732

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

3:42 am
September 5, 2011


Base

Guest

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";
Reply to Post

Reply to Topic:
asking for help

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 + 3