I. What do I need to make SIM Hockey League Web Portal work?
You need the following to make SIMHL work.
1. Website. If you don't have one, go to http://www.byethost.com and buy one for 1 year. You need to puchase a DOMAIN NAME and LINUX WEB HOSTING. I recomend LINUX hosting because it comes set up with PHP.
2. Your webhosting MUST have PHP 4 or greater and up and one MySQL 4.1 or greater database.
3. One copy of the most recent version of STHS v2. Please always use the most recent. Older versions do not work properly.
II. Do I need to know how to program websites to run SIMHL?
No you don't have to know how to program websites to install SIMHL. But... it is a major asset.
You should be familer of comfortable enough to use FTP software andd manager the CPanel controls that your web host will provide to you.
III. I was able to create the MySQL database but now when I load the website, why do I get a MySQL connection error?
PHP isn't able to connect to the new MySQL database you created. To connect PHP to your database, go into the 'Connections' folder and open 'simhl-setup.php' in Notepad or any HTML editor. Fill in the proper username and passwords in the following variables.
$hostname_simhl = "10.0.0.1";
$database_simhl = "SIMHL-DATABASENAME";
$username_simhl = "USERNAME";
$password_simhl = "PASSWORD";
V. I got the web portal to load, but were is my data from the STHS game?
Well, you need to upload the XML files generated from your STHS game which can be found in the 'CSVXML' folder of your game.
To upload those CSV/XML files, first log into the website with the administrator account that is in the 'simhl-setup.php' file.
Once your logged in, go to the 'Upload Files' page and upload the League, CSV and XML files.
VI. I got the web portal to load. But where are all the graphics?
The web portal does not come with any photographs, logos or graphics. You are responsible for populating the web portal with your own content.
VI. How do I upload new Header and logo graphics for the teams?
When you are logged in, go to the team page you want to upload graphics for and click "Edit GM". On that page you can upload the header and logos for that club.
VII. How to I upload photographs for the players?
When you are logged in, go to the players page and click "Modify". On that page you can upload the new photograph.
VIII. Why to I get a PHP error when I try to upload XML files or graphics?
Your server has permissions for all files and folders. You will have to logged onto your FTP server using a FTP client software like Filezilla or CuteFTP.
Once your logged on, select the 'File' and 'Image' folders. Then click the "Permissions".
Make sure you have 'READ' and 'WRITE' checked on.
VIDEO: FTP File and Folder Permissions
IX. Why to I get a PHP error when I try to create a season?
Your server has permissions for all files and folders. You will have to logged onto your FTP server using a FTP client software like Filezilla or CuteFTP.
Once your logged on, select the 'File' folder. Then click the "Permissions".
Make sure you have 'READ' and 'WRITE' checked on.
X. Why don't I see the game results when I click on the link?
You need to upload the HTML files generated by the STHS from the 'Output' folder of the game.
Use a FTP program like Filezilla or CuteFTP and log onto the FTP site. Go to your 'File' folder. In there, you should have a folder for each season you created. Upload your HTML files to the appropriate folder.
VIDEO: FTP File and Folder Permissions
XI. I've uploaded all the HTML files to the season folder and I also uploaded 'TodaysGames.xml' and 'Schedule.xml' files but when I click the link for the game results, the server says I don't have permission to view the file.
Your server has permissions for all files and folders. You will have to logged onto your FTP server using a FTP client software like Filezilla or CuteFTP.
Once your logged on, select the 'File' folder. Then click the "Permissions".
Make sure you have 'READ' and 'WRITE' checked on.
VIDEO: FTP File and Folder Permissions
XII. When I upload the 'TodaysGames.xml' file, it doesn't insert anything into the website and when I open the file in Notepad, it is blank. But I just simulated todays games, I don't get it?
You need to upload that file right away after you simmed todays games. If you do one transaction like a trade and you click 'Output' once again, the game treats it as a new day with no games played.
That is why the file it blank.
XIII. Why does the site stop importing my Players file half way through?
What is happening is the Host server is timing out the processing of the CSV file. All servers have a time limit so jackasses can't write code that will crash the server.
Now, I have a php.ini file in the root. You can play with the processing time in there and increasing it. ( max_exeuction_time = 60000)
If that does, nothing then you have four options.
-
Contact you web host and ask nicely if there will configure PHP to process longer. Thats a shot in the dark.
-
After each sim, you will have to manally split the one XML file into two files and upload one after the other. Its a pain but it will work.
-
Delete the extra players and reduce the players down to around 1000. That should reduce the players.xml file below 2MB and the severs will usually process that amount. If you run a farm league, then that may not be an option.
-
Find another host that will give you longer processing times.