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 :)
December 9, 2008
11:19 pm
Henky
Guest

Well, my friend google found this very promising script for me...
I have a few questions, but first, I just want an aswer to this one:

1) Does this script work with PHP5 ?

coz in my case, it doesn't :(

December 9, 2008
11:57 pm
Peter
Admin
Forum Posts: 841
Offline

Hi Henky, yes it does work with PHP 5. If you get an error message returned, that will help determine what the problem is.

December 10, 2008
5:30 am
Henky
Guest

Well Peter, this is what I get when I click on standindgs.php after installation:

Notice: Undefined index: conf in C:\\wamp\\www\\standings\\standings.php on line 45

Notice: Undefined index: team in C:\\wamp\\www\\standings\\standings.php on line 46

Notice: Undefined index: history in C:\\wamp\\www\\standings\\standings.php on line 47

And when I go to admin_files, i can't opet not even one file without errors. For example, this is what I get when I click on seasons.php:

Notice: Undefined variable: is_admin in C:\\wamp\\www\\standings\\admin_files\\seasons.php on line 6

Notice: Undefined variable: text_no_perm in C:\\wamp\\www\\standings\\admin_files\\seasons.php on line 61

December 10, 2008
7:01 am
Henky
Guest

Well, here are a couple of more questions:

1) Is there a admin panel at all ?
2) When I go to secure.php, and when i insert admin as a username, and theblog as the password, it just leaves me on secure.php

Then I try going into admin_files directory, and add a new conference, but it doesn't work. It just displays errors. Same thing goes when I try to add a league, or open any of admin files. They simply won't open :(

December 10, 2008
12:26 pm
Peter
Admin
Forum Posts: 841
Offline

Hi Henky, before trying to access anything else, please read and follow the "Fresh install instructions" on the main page or in readme.txt.

December 10, 2008
1:35 pm
Henky
Guest

I did. I know my php basics, i edited the settings.php, inserted the sql file. It created tables, added admin in the users, but still, i can't do anything right now...

December 10, 2008
1:44 pm
Peter
Admin
Forum Posts: 841
Offline

Hi, the admin panel is at update.php.

In standings.php, try replacing lines 45 through 47 with:

if (isset($_GET['conf'])) {
    $confid = intval($_GET['conf']);
}
else {
    $confid = 0;
}
if (isset($_GET['team'])) {
    $team = intval($_GET['team']);
}
else {
    $team = 0;
}
if (isset($_GET['history'])) {
    $history = intval($_GET['history']);
}
else {
    $history = 0;
}
December 10, 2008
3:52 pm
Henky
Guest

Well, that kinda helped, thx :)
But still got a few problems. I can't add a team. When I click on add new team, it displays this error:

Back\\n"; } else { die($text_no_perm); } ?>
December 10, 2008
3:56 pm
Peter
Admin
Forum Posts: 841
Offline

Sorry, I have no idea what could be causing that problem. From the sounds of it, you might either have modified some files or you have an odd PHP or server configuration.

December 10, 2008
4:05 pm
Henky
Guest
10

Haven't modifed anything, but I'm gonna keep trying to install this script.
Maybe my server is kinda odd, gonna try installing it to another server. I really appreciate all your help, and I'm gonna report here if I find a solution.

Cheers m8!