Difference between revisions of "How To Load Board18 Game Boxes"

From BOARD18 Project WIKI
Jump to navigation Jump to search
Line 13: Line 13:
* Now you can follow the instructions in the Game Box Upload Process section of the [[BOARD18 Author's Guide]] to do any number of uploads.
* Now you can follow the instructions in the Game Box Upload Process section of the [[BOARD18 Author's Guide]] to do any number of uploads.


==How to load a new BOARD18 game box using Linux==
==How to mass load BOARD18 game boxes using Linux==


<span style="color: Red">Note: This procedure is depricated. It will soon be removed.</span>
These instructions assume that you are an administrator of a BOARD18 web site.  
 
These instructions assume that you already have a BOARD18 web site.
See [[How To Create a BOARD18 WEB Site]] if you don't yet have one.


===Perform these steps on your local PC===
===Perform these steps on your local PC===
* Browse to the [[Download Game Boxes]] page and find the game box that you want.
* Browse to the [[Download Game Boxes]] WIKI page and find the game boxes that you want to load.
* Download the zip file for this game box.  
* Create an empty directory which will become the game box directory used in this procedure.
* Using FTP or SCP, move this zip file to your web server.
* Download the zip file for each selected game box into this directory.  
* Using FTP or SCP, move this game box directory to your web server.


===Perform these steps on your Linux web server===
===Perform these steps on your Linux web server===
* Extract the zip file into your shell root directory.
* Move the sub directory [which contains the image files] to the images sub directory of your web root directory.
* Move the .json file to the control sub directory of the utility directory.
* Change to the utility directory.
* Change to the utility directory.
* Load the control file for the game box by entering on the command line:  
* Make sure that the massLoadBoxes.php file is marked as executable.
<pre>  
* Load the selected game boxes by entering on the command line:  
php loadGameBox.php control/boxname.json
<pre>php massLoadBoxes.php directory root player password rptfile
</pre>
</pre>
'directory' must be the fully qualified name of the game box directory.<br>
'root' must be the fully qualified name of the BOARD18 root directory.<br>
'player' must be the player ID of an admin level player for this BOARD18.<br>
'password' must be the password for this admin level player.<br>
'rptfile' must be the fully qualified name of the report file to be created.<br>
Note that 'root', 'directory' and 'rptfile' must all be local to this server. <br>
The 'rptfile' will be initialized and will contain the reports created by the call to loadGameBox.php made for each input  file.


[[Category:HowTo]]
[[Category:HowTo]]

Revision as of 12:42, 24 March 2017

How to load new BOARD18 game boxes using the Administration - Load Game Box feature

These instructions assume that you are an administrator or author of a BOARD18 web site.

Perform these steps on your local PC

  • Browse to the Download Game Boxes WIKI page and find the game boxes that you want.
  • Download the zip file for each of these game boxes.

Perform these steps on your web browser

  • Sign on to BOARD18.
  • Select MENU-Administration.
  • On left panel of Administration screen, select Load Game Box.
  • Now you can follow the instructions in the Game Box Upload Process section of the BOARD18 Author's Guide to do any number of uploads.

How to mass load BOARD18 game boxes using Linux

These instructions assume that you are an administrator of a BOARD18 web site.

Perform these steps on your local PC

  • Browse to the Download Game Boxes WIKI page and find the game boxes that you want to load.
  • Create an empty directory which will become the game box directory used in this procedure.
  • Download the zip file for each selected game box into this directory.
  • Using FTP or SCP, move this game box directory to your web server.

Perform these steps on your Linux web server

  • Change to the utility directory.
  • Make sure that the massLoadBoxes.php file is marked as executable.
  • Load the selected game boxes by entering on the command line:
php massLoadBoxes.php directory root player password rptfile

'directory' must be the fully qualified name of the game box directory.
'root' must be the fully qualified name of the BOARD18 root directory.
'player' must be the player ID of an admin level player for this BOARD18.
'password' must be the password for this admin level player.
'rptfile' must be the fully qualified name of the report file to be created.

Note that 'root', 'directory' and 'rptfile' must all be local to this server.
The 'rptfile' will be initialized and will contain the reports created by the call to loadGameBox.php made for each input file.