VR-T
CSS
HTML
Javascript
Paint Shop Pro
PHP
Misc.
Graphics
Interactions
Clear

Plug Board

This tutorial is based off of the plug board by Starlet.

First, download this zipped file.

Inside the zipped file are the following files: plug.php, plug.db.php, and readme.txt.

Open plug.php and edit the variables at the top.
$tablewidth = "185"; //Width of the plugboard's table
$maxdata = "8"; //Maximum plugs to show on the list at one time
$maxchars = "300"; //Maximum number of characters a person is allowed to use for their button url
$openfile = file("/PATH/TO/plug.db.php"); //the location of the file plug.db.php file
You can leave the first three variables the way they are if you wish. That's how it's set up on my index page of the tutorials menu. The openfile variable you have to edit. Change it to the path or the full url to where the plug.db.php file will be uploaded.

Upload the two .php files to your website. Just remember that both files have to be in the same directory as the .php page they are located on. So if you want to put the plugboard on your index.php page for example in your root directory, both plug.php and plug.db.php must be uploaded in that same root directory.

CHMOD the plug.db.php file to 666.

Put this following code where you want the plugboard to show up. For example, it can be on your index.php page.

One important point you will need to remember. If you do not put your plug board include on an index.php page, you will need to change one line in the plug board coding past the variables.

You will have to replace the 'index.php' part with the actual file where the plug include is located. If you put it on a plugboard.php page, you will change this line in the code to 'plugboard.php' for example.

<-back