|
Post by trefilov22 on Jan 14, 2020 22:20:22 GMT
can I just copy over the new searchplayers.php over?
|
|
|
Post by eleclerc on Jan 14, 2020 23:39:31 GMT
trefilov22 Yes, also if you get an error, try to overwrite lang.php.
|
|
|
Post by trefilov22 on Jan 17, 2020 14:51:35 GMT
WOrks great for me! Thanks again Eric!
|
|
|
Post by Slanger on May 14, 2020 1:15:47 GMT
Hi,
This is my first foray into .php and I would really love to get this package working. I am probably doing something blatantly wrong here but I can't see it, any help would be greatly appreciated!
This is what I see when I go to the folder where the files are located, and the second is the server locations.
Attachments:
|
|
|
Post by eleclerc on May 14, 2020 11:16:35 GMT
Slanger Something wrong in your config.php In the first row, it should be <?php: In the 8th row: $leagueLang = 'EN';
|
|
|
Post by Slanger on May 14, 2020 15:26:35 GMT
Slanger Something wrong in your config.php In the first row, it should be <?php: In the 8th row: $leagueLang = 'EN'; OK somehow that got corrupted, thank you I corrected it.
But now I've run into another problem, this is what I see when I go into the TableSim directory
www.thecphl.com/WCLL/TableSim/
(also attached screenshot).
It says line 94, but my config file stops at line 93.
Attachments:
|
|
|
Post by eleclerc on May 14, 2020 17:36:50 GMT
Slanger You can bypass this, the code allow you to add a direct button GM EDITOR, but your server seems to do not like the research in directory. Edit index.php: Just add /* at : if(isset($_SERVER['DOCUMENT_ROOT'])) { /* if(isset($_SERVER['DOCUMENT_ROOT'])) { Add */ after : else echo '<br>$_SERVER[\'DOCUMENT_ROOT\'] not found!'; else echo '<br>$_SERVER[\'DOCUMENT_ROOT\'] not found!'; */ First time I saw so much errors related to the server. The only way to correct the page is to get on your server and make the fix from it.
|
|
|
Post by Slanger on May 14, 2020 18:40:57 GMT
Slanger You can bypass this, the code allow you to add a direct button GM EDITOR, but your server seems to do not like the research in directory. Edit index.php: Just add /* at : if(isset($_SERVER['DOCUMENT_ROOT'])) { /* if(isset($_SERVER['DOCUMENT_ROOT'])) { Add */ after : else echo '<br>$_SERVER[\'DOCUMENT_ROOT\'] not found!'; else echo '<br>$_SERVER[\'DOCUMENT_ROOT\'] not found!'; */ First time I saw so much errors related to the server. The only way to correct the page is to get on your server and make the fix from it. OK thanks - I changed 1 instance of each, I only found that.
It seems to have made a difference but I am just getting a 500 Internal server error message when I try to access the directory, and sometimes I get weird messages - some things are partially working like the chat box.
Do the html files have to have the LeaguePrefix removed?
One error I am getting is this, an attempt to access the rosters.php page (I've attached a screenshot of it to the post): But all my league files in that folder have the WCLL prefix. I removed the prefix and retried it, but no difference. The direct link to the GM page does work when I type in the url.
Attachments:
|
|
|
Post by eleclerc on May 14, 2020 19:11:37 GMT
Slanger I sent you an email... Also, your server doesn't met the minimum requirement of my add-on, PHP 5.4 (8 years ago) I hope you didn't pay for the server...
|
|
|
Post by Slanger on May 15, 2020 4:36:43 GMT
Slanger I sent you an email... Also, your server doesn't met the minimum requirement of my add-on, PHP 5.4 (8 years ago) I hope you didn't pay for the server... Thanks a lot Eric for your help.
My server has the option of switching to PHP 7.2.6, which I just did...that one's on me Is this an acceptable version?
I did
|
|
|
Post by eleclerc on May 15, 2020 13:55:13 GMT
PHP 5.6 and higher is a good version. The add-on supports PHP7.
|
|
|
Post by nashlcommish on May 15, 2020 17:41:41 GMT
I'm getting this warning on Linked Rosters but only for 2 teams (Dallas and NYI), any idea why? Warning: A non-numeric value encountered in /home/nashlhoc/public_html/nashlhockey.com/Page/LinkedRosters.php on line 711 Last Update on Friday, May 15 2020 nashlhockey.com/Page/LinkedRosters.php?plf=1&team=Dallas
|
|
|
Post by eleclerc on May 15, 2020 18:03:02 GMT
If you look at the Rosters page, Manny Fernandez has overall in DEF, so the code detect this is a regular player...
Same thing with Eric Fichaud, DEF at 2 and NA in OFF
Just put NA for goalthender in DEF and OFF
|
|
|
Post by nashlcommish on May 15, 2020 21:03:46 GMT
Couldn't get it to work by putting NA, but I changed them to 0 and now it shows as 25 instead of NA but the warning message is gone.
|
|
|
Post by Slanger on May 17, 2020 21:05:06 GMT
I'm trying to get the career stats working on this and I just cannot figure this out.
I have the most recent 2 seasons (2018 and 2019 - we have 10 but I just want to test it with the last 2) in a separate archive folder, in separate folders named Season 1 and Season 2 (attachment 1).
I name the seasons "CPHL####" with the years, our current year is 2020 and that is the name of the current league files ("CPHL2020Rosters.html"). We are in the off-season with this league and I created a new season that has not had any games played yet.
I renamed all the files in the season archive folders to match the current prefix - is that correct or do I just leave the years sequential, or remove the prefix completely?
Also in the config, how do I list multiple folders? I have tried all these and the best I can get is just the Season 1 folder being read:
$folderCarrerStats = '../archive/Season 1/'; '../archive/Season 2/';
$folderCarrerStats = '../archive/Season 1/', '../archive/Season 2/';
$folderCarrerStats = '../archive/Season 1/' '../archive/Season 2/';
$folderCarrerStats = '../archive/';
$folderCarrerStats = '../archive/Season 1/';
'../archive/Season 2/';
Are any of these correct? It really hangs a lot when clicking on the career stats links as well (it's currently set to the last one).
It was displaying the 2018 stats from the Season 1 folder only, as year 1, and not recognising any more files, with several different error messages and the main CareerStats.php showing blank.
It's kind of partially working so it looks like I just have a line or two wrong somewhere...any help would be greatly appreciated, this is the final thing on TableSim I am trying to get working.
Attachments:
|
|